-
Notifications
You must be signed in to change notification settings - Fork 2k
/
nav.less
69 lines (59 loc) · 1.32 KB
/
nav.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
.nav-simple {
.clearfix();
padding-bottom: 7px;
}
.nav-simple > li {
border-bottom: 1px dotted #ccc;
}
.nav-simple > li > a {
color: @nav-link-color;
padding: 7px 25px;
font-size: 12px;
line-height: 14px; // keeps the overall height an even number
}
.nav-simple > li > a .ckan-icon {
position: relative;
top: -1px;
}
.nav-simple > li.active {
background-color: #f2f2f2;
}
.nav-simple > li.active > a {
.tag;
.box-sizing(border-box);
font-size: 12px;
font-weight: bold;
position: relative;
left: 4px;
margin-left: 0;
margin-right: 7px;
padding-left: 10px;
padding-right: 0px;
padding: 1px (@module-margin-x - 7);
}
.secondary .nav-simple > li > a {
padding-left: @secondary-module-margin-x;
padding-right: @secondary-module-margin-x;
position: relative;
}
.secondary .nav-simple > li > a:hover:after,
.secondary .nav-simple > li.active > a:hover:after {
.ckan-icon;
.ckan-icon-circle-add;
content: "";
position: absolute;
top: 50%;
right: 5px;
margin-top: -8px;
}
.secondary .nav-simple > li > a:hover:after {
.ckan-icon-circle-add;
}
.secondary .nav-simple > li.active > a:hover:after {
.ckan-icon-circle-cross;
right: 3px;
}
.secondary .nav-simple > li.selected > a {
padding-left: @secondary-module-margin-x - 7;
padding-right: @secondary-module-margin-x - 7;
}