Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
reading-scholarly-articles
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jean Michel Rouly
reading-scholarly-articles
Commits
a61ca1fb
Commit
a61ca1fb
authored
Aug 18, 2014
by
Jean Michel Rouly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduced 'inline' triggers, allow for co-existing and unique styling.
parent
a7abbdb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
17 deletions
+36
-17
static/css/annotations.css
static/css/annotations.css
+36
-17
No files found.
static/css/annotations.css
View file @
a61ca1fb
...
...
@@ -4,12 +4,34 @@
text-align
:
center
;
}
/* Common styles to all annotation display types. */
[
rel
~=
"annotation"
]
{
box-sizing
:
border-box
;
display
:
block
;
cursor
:
pointer
;
text-decoration
:
none
;
background-color
:
rgba
(
255
,
255
,
0
,
0.2
);
-webkit-transition
:
all
0.4s
ease
;
-moz-transition
:
all
0.4s
ease
;
-o-transition
:
all
0.4s
ease
;
transition
:
all
0.4s
ease
;
}
/* Active/Hover styles common to any annotation. */
[
rel
~=
"annotation"
]
.active
,
[
rel
~=
"annotation"
]
:hover
{
background-color
:
rgba
(
255
,
255
,
0
,
0.6
);
}
/* Styles for block display annotations. */
[
rel
~=
"annotation"
]
:not
(
.inline
)
{
box-sizing
:
border-box
;
display
:
block
;
margin
:
5px
0px
;
padding
:
10px
0px
;
...
...
@@ -19,14 +41,11 @@
border-top
:
1px
solid
#FFFFFF
;
border-bottom
:
1px
solid
#FFFFFF
;
-webkit-transition
:
all
0.4s
ease
;
-moz-transition
:
all
0.4s
ease
;
-o-transition
:
all
0.4s
ease
;
transition
:
all
0.4s
ease
;
}
[
rel
~=
"annotation"
]
.active
,
[
rel
~=
"annotation"
]
:hover
{
/* Active/Hover styles for block display annotations. */
[
rel
~=
"annotation"
]
.active
:not
(
.inline
),
[
rel
~=
"annotation"
]
:hover:not
(
.inline
)
{
border-top
:
1px
solid
#C9C9C9
;
border-bottom
:
1px
solid
#C9C9C9
;
...
...
@@ -34,18 +53,18 @@
border-right
:
5px
solid
#C9C9C9
;
}
/*
* Enable this code block for simple inline text highlighting.
*/
/*
[rel~="annotation"] {
background-color: #FFFF00;
cursor: pointer;
}
*/
/* Styles for inline-only annotations. */
[
rel
~=
"annotation"
]
.inline
{
}
/* Active/Hover styles for inline-only annotations. */
[
rel
~=
"annotation"
]
.inline.active
,
[
rel
~=
"annotation"
]
.inline
:hover
{
}
/* Popover styling. */
.popover
{
font-family
:
"Source Code Pro"
,
monospace
;
max-width
:
80%
;
...
...
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