-
Notifications
You must be signed in to change notification settings - Fork 2k
/
nav.less
52 lines (46 loc) · 1.15 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
.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;
line-height: 14px; // keeps the overall height an even number
}
.nav-simple > li.selected > a {
@inner-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35);
@outer-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
.border-radius(3px);
.box-shadow(@inner-shadow);
box-shadow: @inner-shadow, @outer-shadow;
cursor: default;
margin: 2px 5px 3px;
padding: 4px (@module-margin-x - 7);
background: #000;
color: #fff;
border: 1px solid black;
}
.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 {
content: "";
display: block;
position: absolute;
top: 50%;
right: 5px;
width: 17px;
height: 17px;
margin-top: -8px;
background: url("@{sprite-path}") no-repeat;
background-position: -17px 0;
}
.secondary .nav-simple > li.selected > a {
padding-left: @secondary-module-margin-x - 7;
padding-right: @secondary-module-margin-x - 7;
}