Skip to content

Commit c9a038f

Browse files
fix: fix mobile nav icon dimensions
1 parent ae3646f commit c9a038f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
</div>
216216
<div class="mobile-nav-icon pull-right">
217217
<span></span>
218+
<div class="fill"></div>
218219
</div>
219220
<nav class="mobile-nav">
220221
<div class="mobile-nav-head">

main.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,23 @@ a:active {
228228
bottom: -8px;
229229
}
230230

231-
.mobile-nav-icon span:hover {
232-
background: var(--primary-gradient);
231+
.mobile-nav-icon:hover {
232+
cursor: pointer;
233233
}
234234

235-
.mobile-nav-icon span:hover::before,
236-
.mobile-nav-icon span:hover::after {
235+
.mobile-nav-icon:hover span,
236+
.mobile-nav-icon:hover span::before,
237+
.mobile-nav-icon:hover span::after {
237238
background: var(--primary-gradient);
238239
}
239240

241+
.mobile-nav-icon .fill {
242+
height: 24px;
243+
width: 24px;
244+
margin-top: -12px;
245+
position: absolute;
246+
}
247+
240248
.mobile-nav {
241249
position: fixed;
242250
left: 0;

0 commit comments

Comments
 (0)