-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcontent.css
More file actions
131 lines (102 loc) · 2.1 KB
/
content.css
File metadata and controls
131 lines (102 loc) · 2.1 KB
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
125
126
127
128
129
130
131
#panel {
position: fixed;
width: 400px;
min-height: 200px;
z-index: 999;
right: 0px;
top: 60px;
background: gainsboro;
}
#panel ul {
list-style: none;
}
#panel ul li {
list-style: none;
}
#panel ul li a {
display: block;
text-overflow: ellipsis;
}
/* 目录栏的样式 */
.div_toc {
width: -webkit-calc(100% - 5px);
height: 100%;
float: left;
padding: 20px;
overflow: auto;
overflow-x: hidden;
/* background-color: #fafbfc; */
/* border: 1px solid #d1d5da; */
border-right-width: 0;
}
.div_right_bar {
/* width: 5px; */
height: 100%;
/* background-color: #fafbfc; */
cursor: col-resize;
float: left;
border-right: 1px solid #e1e4e8;
}
:root[data-color-mode="dark"] .div_toc {
background-color: #141b20;
}
:root[data-color-mode="dark"] .div_right_bar {
background-color: #141b20;
}
:root[data-color-mode="light"] .div_toc {
background-color: #fafbfc;
}
:root[data-color-mode="light"] .div_right_bar {
background-color: #fafbfc;
}
/* 这个地方 */
.toc {
position: fixed;
width: 350px;
min-height: 200px;
z-index: 999;
min-width: 200px;
left: 0px;
top: 0px;
border-radius: 0px;
height: 100%;
bottom: 100px;
float: right;
/* border: 1px solid brown; */
}
body {
margin-left: 350px;
}
/* #div_toc li a:link {
text-decoration: none;
} */
/* 滚动条 */
/*水平滚动条的样式*/
.toc ::-webkit-scrollbar-thumb:horizontal {
width: 5px;
background-color: #CCCCCC;
-webkit-border-radius: 6px;
}
.toc ::-webkit-scrollbar-track-piece {
background-color: #fff;
-webkit-border-radius: 0;
}
.toc ::-webkit-scrollbar {
width: 10px;
height: 8px;
}
/*垂直滚动条的样式*/
.toc ::-webkit-scrollbar-thumb:vertical {
height: 50px;
background-color: #999;
-webkit-border-radius: 4px;
outline: 2px solid #fff;
outline-offset: -2px;
border: 2px solid #fff;
}
/*滚动条的hover样式*/
.toc ::-webkit-scrollbar-thumb:hover {
height: 50px;
background-color: #9f9f9f;
-webkit-border-radius: 4px;
}