Skip to content

Commit 1f6dd22

Browse files
committed
chore:Made Navbar responsive
Signed-off-by: anirudh-bukka <[email protected]>
1 parent 9f4ba0c commit 1f6dd22

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/assets/css/stellarnav.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,16 @@ body.stellarnav-noscroll-x { overflow-x: hidden; }
155155
/* mega dd */
156156

157157

158-
/* Fallback for slow javascript load */
159-
@media only screen and (max-width : 768px) {
160-
.stellarnav { overflow: hidden; display: block; }
161-
.stellarnav ul { position: relative; display: none; }
162-
}
158+
163159

164160
/* mobile nav */
165-
@media only screen and (max-width : 420px) {
161+
@media only screen and (max-width : 768px) {
166162
.stellarnav.mobile .call-btn-mobile.third span, .stellarnav.mobile .location-btn-mobile.third span { display: none; }
167163
.stellarnav.mobile ul {
168-
position: absolute;
164+
position: absolute;
165+
width: fit-content;
166+
display: block;
167+
right: 1%;
169168
}
170169
.stellarnav.mobile ul li:hover{
171170
background-color: #d0fcf4;

0 commit comments

Comments
 (0)