Skip to content

Commit 8e37d7a

Browse files
committed
Quick fix for nav buttons overlapping on mobile
1 parent 83a8bc1 commit 8e37d7a

File tree

1 file changed

+12
-1
lines changed
  • SporeCommunity.ModBrowser.Blazor/wwwroot/style

1 file changed

+12
-1
lines changed

SporeCommunity.ModBrowser.Blazor/wwwroot/style/style.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ nav a:hover {
6464
}
6565

6666
#main-nav-buttons {
67-
/* Need to hide this if window width is under 768px, and switch to menu button */
6867
width: 300px;
6968
position: absolute;
7069
top: -48px;
@@ -75,6 +74,18 @@ nav a:hover {
7574
border-radius: 0 0 0 24px;
7675
}
7776

77+
@media (max-width: 768px) {
78+
/* Quick and simple fix for mobile - not the prettiest but it works */
79+
#main-nav-buttons {
80+
width: calc(100vw - 16px);
81+
position: relative;
82+
top: -16px;
83+
left: -24px;
84+
border-left: 0;
85+
border-radius: 0;
86+
}
87+
}
88+
7889
#main-nav-buttons a {
7990
padding: 0;
8091
}

0 commit comments

Comments
 (0)