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
ce7ce399
Commit
ce7ce399
authored
May 28, 2020
by
Lyza Danger Gardner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename highlight-color variables
parent
b4d654da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
highlights.scss
src/styles/annotator/highlights.scss
+4
-4
variables.scss
src/styles/variables.scss
+5
-4
No files found.
src/styles/annotator/highlights.scss
View file @
ce7ce399
...
...
@@ -10,7 +10,7 @@
// of the annotated document when highlights are enabled/disabled.
.hypothesis-highlights-always-on
{
.hypothesis-svg-highlight
{
fill
:
var
.
$
highlight-color
;
fill
:
var
.
$
color-highlight
;
&
.is-opaque
{
fill
:
yellow
;
...
...
@@ -18,7 +18,7 @@
}
.hypothesis-highlight
{
background-color
:
var
.
$
highlight-color
;
background-color
:
var
.
$
color-highlight
;
// For PDFs, we still create highlight elements to wrap the text but the
// highlight effect is created by another element.
...
...
@@ -44,7 +44,7 @@
// Give a highlight inside a larger highlight a different color to stand out.
&
.hypothesis-highlight
{
background-color
:
var
.
$
highlight-color
-second
;
background-color
:
var
.
$
color-highlight
-second
;
&
.is-transparent
{
background-color
:
transparent
;
}
...
...
@@ -66,7 +66,7 @@
// When an annotation card is hovered in the sidebar, the corresponding
// highlights are shown with a "focused" color.
&
.hypothesis-highlight-focused
{
background-color
:
var
.
$
highlight-color-focus
!
important
;
background-color
:
var
.
$
color-highlight-focused
!
important
;
.hypothesis-highlight
{
background-color
:
transparent
!
important
;
...
...
src/styles/variables.scss
View file @
ce7ce399
...
...
@@ -45,11 +45,15 @@ $color-notice: #fbc168;
$color-error
:
#d93c3f
;
$color-brand
:
#bd1c2b
;
$color-
highlight
:
#58cef4
;
$color-
quote
:
#58cef4
;
$color-focus-outline
:
#51a7e8
;
$color-focus-shadow
:
color
.
scale
(
$color-focus-outline
,
$alpha
:
-50%
);
$color-highlight
:
rgba
(
255
,
255
,
60
,
0
.4
);
$color-highlight-second
:
rgba
(
206
,
206
,
60
,
0
.4
);
$color-highlight-focused
:
rgba
(
156
,
230
,
255
,
0
.5
);
// Scaffolding
// -------------------------
$color-background
:
$white
;
...
...
@@ -98,9 +102,6 @@ $zindex-tooltip: 20;
// Other Variables
// -------------------------
$bucket-bar-width
:
22px
;
$highlight-color
:
rgba
(
255
,
255
,
60
,
0
.4
);
$highlight-color-second
:
rgba
(
206
,
206
,
60
,
0
.4
);
$highlight-color-focus
:
rgba
(
156
,
230
,
255
,
0
.5
);
$top-bar-height
:
40px
;
$popup-menu-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
0
.1
);
...
...
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