Skip to content

Commit 7864290

Browse files
committed
fix: wrap under 350px
1 parent a47d79b commit 7864290

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

014-animated navigation/style.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ nav {
3131
border-radius: 3px;
3232
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
3333
transition: width 0.6s linear;
34+
overflow-x: hidden;
3435
}
3536

3637
nav.active {
@@ -44,7 +45,7 @@ nav ul {
4445
margin: 0;
4546
width: 0;
4647
transition: width 0.6s linear;
47-
overflow-x: hidden;
48+
gap: 20px;
4849
}
4950

5051
nav.active ul {
@@ -66,7 +67,6 @@ nav ul a {
6667
position: relative;
6768
color: #000;
6869
text-decoration: none;
69-
margin: 0 10px;
7070
}
7171

7272
.icon {
@@ -105,3 +105,15 @@ nav.active .icon .line1 {
105105
nav.active .icon .line2 {
106106
transform: rotate(765deg) translateY(-5.5px);
107107
}
108+
109+
@media (max-width: 350px) {
110+
nav.active {
111+
width: 100%;
112+
height: 150px;
113+
}
114+
115+
nav.active ul {
116+
flex-direction: column;
117+
gap: 10px;
118+
}
119+
}

0 commit comments

Comments
 (0)