-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcnblogs-article-nav.css
195 lines (185 loc) · 4.52 KB
/
cnblogs-article-nav.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/**
功能: 为博客园自动生成的目录,样式表
参考: https://www.cnblogs.com/marvin/p/ExtendWizNoteAutoNnavigation.html
https://www.cnblogs.com/asxinyu/p/Bolg_Category_For_BlogBeauty.html
*/
#sideToolbar {
display: block;
position: fixed;
bottom: 26%;/*太小或太低部在手机上体验不是很好*/
right: 10px;
/*NOTE size和子节点保持一致 */
width: 320px;
height: 400px
}
#sideCatalog{
background-color:#fff;
padding-bottom:10px;
border-radius:5px;
}
/*TODO bar位置调整*/
#sideCatalog-sidebar {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
background-color: #eaeaea;
border-color: -moz-use-text-color #eaeaea;
border-image: none;
border-left: 1px solid #eaeaea;
border-right: 1px solid #eaeaea;
border-style: none solid;
border-width: 0 1px;
height: 380px;
left: 5px;
position: absolute;
top: 0;
width: 0
}
/*目录形成的范围,去掉滚动条,自动展开*/
#sideCatalog-catalog {
height: 360px;/*文章目录的高度*/
padding-top: 18px;
overflow-x: hidden;
overflow-y: auto;
padding-left: 23px;
position: relative
}
#sideCatalog #sideCatalog-sidebar .sideCatalog-sidebar-top {
cursor: pointer;
top: 0
}
#sideCatalog #sideCatalog-sidebar .sideCatalog-sidebar-bottom {
bottom: 0
}
#sideCatalog #sideCatalog-sidebar .sideCatalog-sidebar-top,#sideCatalog #sideCatalog-sidebar .sideCatalog-sidebar-bottom {
background: url("https://files.cnblogs.com/files/zhaoqingqing/sideToolbar.gif") no-repeat scroll 0 -199px transparent;
height: 10px;
left: -5px;
overflow: hidden;
position: absolute;
width: 10px
}
/*缩进1 根节点*/
#sideCatalog li {
margin: 0px;
padding: 0px;
text-align: left;
position: relative;
font-size: 14px;
}
#sideCatalog li:hover {
background-color: #f5f5f5
}
#sideCatalog-catalog ul .active {
background-color: #f5f5f5
}
#sideCatalog-catalog .active a {
color: #519cea
}
#sideCatalog-catalog a:hover {
color: #519cea
}
#sideCatalog span:first-child {
color: #999;
font-family: Arial;
font-size: 14px;
font-weight: bold;
padding-right: 5px;
}
/*padding-left(内白)和text-indent(缩进)可以不同时存在*/
/*缩进2: h1/h2 目录的缩进 都是二级节点*/
#sideCatalog li.h1Offset,#sideCatalog li.h2Offset {
text-indent: 16px;
font-size: 12px;
}
#sideCatalog li.h3Offset {
text-indent: 36px;/*文本缩进*/
font-size: 10px;
font-weight: normal;
}
#sideCatalog li.h4Offset {
text-indent: 60px;
font-size: 8px;
}
#sideCatalog li.h3Offset a{
font-weight: normal;
}
#sideCatalog a {
text-decoration: none;
color: #555;
font-weight: bold
}
/*目录前的小圆点*/
.sideCatalog-dot {
background: url("https://files.cnblogs.com/files/zhaoqingqing/sideToolbar.gif") repeat scroll 0 -222px transparent;
cursor: pointer;
font-size: 12px;
height: 10px;
left: -20px;
line-height: 12px;
overflow: hidden;
position: absolute;
top: 4px;
width: 6px
}
#sideCatalog .highlight .sideCatalog-dot {
background: url("https://files.cnblogs.com/files/zhaoqingqing/sideToolbar.gif") no-repeat scroll -271px -38px transparent;
height: 13px;
left: -23px;
top: 3px;
width: 18px
}
/*TODO 把此功能按钮提取出来*/
#sideCatalogBtn {
background: url("https://files.cnblogs.com/files/zhaoqingqing/sideToolbar.gif") no-repeat scroll 0 0 transparent;
cursor: pointer;
display: block;
position: fixed;/*位置根据情况*/
/*margin-bottom: 5px;
margin-left: 5px;
margin-top: 10px;*/
width: 45px;
height: 45px;
right: 16px;
bottom: 13.5%;
outline: 0;
}
#sideCatalogBtn:hover {
background: url("https://files.cnblogs.com/files/zhaoqingqing/sideToolbar.gif") no-repeat scroll -154px 0 transparent
}
.sideCatalogBtnDisable {
background: url("https://files.cnblogs.com/files/zhaoqingqing/sideToolbar.gif") no-repeat scroll -104px 0 transparent !important
}
#sideToolbar-up {
background: url("https://files.cnblogs.com/files/zhaoqingqing/sideToolbar.gif") no-repeat scroll -1px -62px transparent;
border-radius: 2px;
display: block;
height: 45px;
margin-left: 5px;
width: 45px;
outline: 0
}
#sideToolbar-up:hover {
background: url("https://files.cnblogs.com/files/zhaoqingqing/sideToolbar.gif") no-repeat scroll -74px -62px transparent
}
/*====== toc =======*/
.cnblogs_toc {
float:left;
min-width:200px;
padding: 4px 10px;
font-size: 12px;
background-color: #eee;
border: 1px solid #ccc;
}
.cnblogs_toc a {
color: #369;
border-bottom: 0px;
}
.cnblogs_toc ol {
margin: 5px 14px 5px;
line-height: 160%;
}
.cnblogs_toc li {
list-style: decimal;
}