-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathstyle.css
executable file
·66 lines (55 loc) · 1.25 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
p.caption {
color: #777;
margin-top: 10px;
}
p code {
white-space: inherit;
}
pre {
word-break: normal;
word-wrap: normal;
}
pre code {
white-space: inherit;
}
.rmdnote, .rmdtip, .rmdwarning, .rmdpackage {
padding: 1em 1em 1em 4em;
margin-bottom: 10px;
background: #f5f5f5 5px center/3em no-repeat;
}
.rmdnote {
background-image: url("images/note.png");
}
.rmdtip {
background-image: url("images/tip.png");
}
.rmdwarning {
background-image: url("images/warning.png");
}
.rmdpackage {
background-image: url("images/package.png");
}
/* -----------Section anchors -------------*/
.book .book-body .page-wrapper .page-inner section.normal {
overflow: visible !important; /*so anchor link doesnt get cut off */
}
a.anchor {
margin-left: -30px;
padding-right: 3px;
display:inline-block;
width: 30px;
height: 30px;
background-image: url(https://image.flaticon.com/icons/svg/34/34735.svg) !important;
background-repeat: no-repeat !important;
background-size: 20px 20px !important;
background-position: center bottom !important;
opacity: 0;
}
.hasAnchor:hover a.anchor, a.anchor:hover {
opacity: 0.6;
}
@media (max-width: 1144px) { /* dont show anchor link on small screens */
.hasAnchor:hover a.anchor {
visibility: hidden;
}
}