-
Notifications
You must be signed in to change notification settings - Fork 8
/
toc.css
124 lines (105 loc) · 1.92 KB
/
toc.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
@-webkit-keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
#TOC {
width: 20rem;
}
#TOC::before {
content: "☰ Contents";
font-size: 1.7rem;
font-variant: small-caps;
cursor: pointer;
display: inline-block;
padding-left: 10px;
width: calc(20rem - 10px);
border-radius: 5px 5px 0 0;
border-bottom: 2px double #fefefe;
}
#TOC:hover {
color: white;
}
#TOC:hover:before {
background: #2c2c2c;
border-bottom: 2px double #4f4f4f;
-webkit-animation: fadeIn .5s;
animation: fadeIn .5s;
}
#TOC ul {
padding: 0;
margin: 0;
display: none;
position: absolute;
font-size: 1.2rem;
}
#TOC:hover > ul {
display: block;
z-index: 1;
-webkit-animation: fadeIn .5s;
animation: fadeIn .5s;
}
#TOC li {
padding: 0 0 0 0;
position: relative;
display: block;
width: 20rem;
}
#TOC > ul > li {
border-bottom: 1px solid #4f4f4f;
}
#TOC ul ul {
position: absolute;
display: none;
left: 100%;
top: 0;
}
#TOC li:hover ul {
width: fit-content;
display: block;
-webkit-animation: fadeIn .5s;
animation: fadeIn .5s;
}
#TOC li:hover > ul {
display: block;
}
#TOC a, .part, .appendix {
background: #2c2c2c; /*linear-gradient(to bottom, #2c2c2c 0%, #141414 100%);*/
color: #ffffff;
display: block;
padding: 10px;
text-decoration: none;
text-shadow: none;
}
#TOC .part, .appendix {
background: #0fa1e0;
text-align: center;
font-size: 1.2rem;
}
#TOC > ul > li > a:hover{
background: #1e1e1e;
}
#TOC .has-sub ul li a {
background: #0fa1e0;
border-bottom: 1px dotted #31b7f1;
filter: none;
display: block;
line-height: 120%;
padding: 10px;
color: #ffffff;
}
#TOC .has-sub ul li:first-child a {
border-radius: 0 5px 0 0;
}
#TOC .has-sub ul li:last-child a {
border-radius: 0 0 5px 0;
}
#TOC .has-sub ul li:hover a {
background: #0c7fb0;
}
#TOC ul ul li:hover > a {
color: #ffffff;
}