Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
fe579297
Commit
fe579297
authored
Jun 24, 2020
by
Lyza Danger Gardner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract style patterns from AnnotationQuote
parent
4c6191b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
14 deletions
+22
-14
molecules.scss
src/styles/mixins/molecules.scss
+17
-0
annotation-quote.scss
src/styles/sidebar/components/annotation-quote.scss
+5
-14
No files found.
src/styles/mixins/molecules.scss
View file @
fe579297
...
...
@@ -72,6 +72,23 @@
filter
:
grayscale
(
100%
)
contrast
(
65%
);
}
/**
* Represent quoted text, as in an excerpt, with a hover or focused state.
*/
@mixin
quoted-text
{
border-left
:
3px
solid
var
.
$color-border
;
color
:
var
.
$color-text-light
;
font-style
:
italic
;
padding
:
0
var
.
$layout-margin
;
// Prevent long URLs etc. in quote causing overflow
overflow-wrap
:
break-word
;
&
.is-focused
,
&
:hover
{
border-left
:
var
.
$color-quote
3px
solid
;
}
}
/**
* Base styles for a "panel"-like element, with appropriate
* padding, heading and close-button styles.
...
...
src/styles/sidebar/components/annotation-quote.scss
View file @
fe579297
@use
'../../variables'
as
var
;
@use
"../../mixins/molecules"
;
.annotation-quote
{
&
.is-orphan
{
text-decoration
:
line-through
;
}
&
__quote
{
border-left
:
3px
solid
var
.
$color-border
;
color
:
var
.
$color-text-light
;
font-style
:
italic
;
padding
:
0
var
.
$layout-margin
;
// Prevent long URLs etc. in quote causing overflow
overflow-wrap
:
break-word
;
@include
molecules
.
quoted-text
;
}
&
.is-focused
&
__quote
{
border-left
:
var
.
$color-quote
3px
solid
;
&
.is-orphan
&
__quote
{
// In orphans, quotes should be rendered as if they're missing/redacted
@include
molecules
.
redacted-content
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment