forked from qiubaiying/qiubaiying.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathside-catalog.less
81 lines (78 loc) · 1.72 KB
/
side-catalog.less
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
// Directory Section
.catalog-container{
padding: 0px;
}
.side-catalog {
&.fixed{
position: fixed;
top: -21px;
}
&.fold{
.catalog-toggle::before{
content: "+";
}
.catalog-body{
display: none;
}
}
.catalog-toggle::before{
content: "−";
position: relative;
margin-right: 5px;
bottom: 1px;
}
display: block;
overflow: auto;
height: 100%;
padding-bottom: 40px;
width: 195px;
.catalog-body{
position: relative;
list-style: none;
height: auto;
overflow: hidden;
padding-left: 0px;
padding-right: 5px;
text-indent: 0;
li{
position: relative;
list-style: none;
a{
padding-left: 10px;
max-width: 180px;
display: inline-block;
vertical-align: middle;
height: 30px;
line-height: 30px;
overflow: hidden;
text-decoration: none;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.h1_nav,.h2_nav,.h3_nav{
margin-left: 0;
font-size: 13px;
font-weight: bold;
}
.h4_nav,.h5_nav,.h6_nav{
margin-left: 10px;
font-size: 12px;
a{
max-width: 170px;
}
}
.active{
a{
color: #0085a1!important;
}
border-radius: 4px;
background-color: #F5F5F5;
}
}
}
@media (max-width: 1200px){
.side-catalog{
display: none;
}
}