@@ -2,7 +2,7 @@ $svg-height: 24;
2
2
$trans-timing : 600ms ;
3
3
4
4
@mixin svgMenuIcon ($color : currentColor , $height : $svg-height ) {
5
- background : url (' data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/ svg" width="24" height=" ' + $height + ' " viewBox="0 0 24 24" fill="none" stroke=" ' + $color + ' " stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg> ' ) no-repeat 50% ;
5
+ background : url (/ assets/img/menu. svg ) no-repeat 50% ;
6
6
}
7
7
8
8
@mixin rotateSubmenuToggle () {
@@ -17,8 +17,6 @@ $trans-timing: 600ms;
17
17
width : 100% ;
18
18
.submenu {
19
19
background : $color-submenu-bg ;
20
- border-left : 1px solid $color-spacer ;
21
- border-right : 1px solid $color-spacer ;
22
20
flex : 0 0 100% ;
23
21
list-style : none ;
24
22
margin : 0 ;
@@ -100,13 +98,13 @@ $trans-timing: 600ms;
100
98
}
101
99
}
102
100
& -link {
103
- border-bottom : 1px solid $color-spacer ;
104
101
color : $color-nav ;
105
102
display : block ;
106
103
flex : 0 0 calc (100% - 2rem );
107
104
font-weight : normal ;
108
105
padding : 10px 10px ;
109
106
text-decoration : none ;
107
+ min-width : 180px ;
110
108
& :focus {
111
109
~.submenu-toggle {
112
110
@include rotateSubmenuToggle ();
@@ -142,15 +140,23 @@ $trans-timing: 600ms;
142
140
border-bottom : 2px solid $color-spacer ;
143
141
.submenu {
144
142
background : $color-bg ;
145
- border-left-width : 2px ;
146
- border-right-width : 2px ;
143
+ border-top : 2px solid $color-spacer ;
147
144
font-size : 16px ;
148
145
position : absolute ;
149
146
& -toggle {
150
147
display : none ;
151
148
}
149
+ & -item {
150
+ border-bottom : 1px solid $color-spacer ;
151
+ border-left : 4px solid $color-primary ;
152
+ }
152
153
& -item :last-child {
153
- border-bottom : 2px solid $color-spacer ;
154
+ border-bottom : 1px solid transparent ;
155
+ }
156
+ & -item :hover ,
157
+ & -item :focus {
158
+ min-width : 120px ;
159
+ display : inline-block ;
154
160
}
155
161
}
156
162
.menu {
@@ -176,17 +182,11 @@ $trans-timing: 600ms;
176
182
}
177
183
}
178
184
& -link {
179
- border-bottom : 4px solid transparent ;
180
185
flex : none ;
181
186
& :hover ,
182
187
& :focus {
183
- border-bottom-color : $color-primary ;
184
188
}
185
189
}
186
190
}
187
191
}
188
-
189
- @media (min-width : $bp-desktop ) {
190
- font-size : 24px ;
191
- }
192
192
}
0 commit comments