-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy path_menu.styl
More file actions
82 lines (70 loc) · 1.32 KB
/
_menu.styl
File metadata and controls
82 lines (70 loc) · 1.32 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
.site-nav-toggle {
left: 20px;
top: 50%;
transform: translateY(-50%);
+tablet() {
display: block;
}
}
.site-nav {
border-top: none;
+tablet() {
display: none;
}
}
.menu-item-active a {
background: #f9f9f9;
border-bottom-color: white;
$badges = hexo-config('menu_settings.badges');
if (!$badges) {
&::after {
background-color: $grey;
border-radius: 50%;
content: ' ';
height: 6px;
margin-top: -3px;
position: absolute;
right: 15px;
top: 50%;
width: 6px;
}
}
}
.menu .menu-item {
display: block;
margin: 0;
a, span.exturl {
box-sizing: border-box;
line-height: inherit;
padding: 5px 20px;
position: relative;
text-align: left;
transition-property: background-color;
the-transition();
&:hover {
@extend .menu-item-active a;
}
disable-touch-hover();
}
.badge {
background-color: $grey-light;
border-radius: 10px;
color: white;
display: inline-block;
float: right;
font-weight: $font-weight-bolder;
line-height: 1;
margin: .35em 0 0 0;
padding: 2px 5px;
text-align: center;
text-shadow: 1px 1px 0 rgba(0, 0, 0, .1);
vertical-align: middle;
white-space: nowrap;
}
br {
display: none;
}
}
.btn-bar {
background-color: white;
}