Skip to content

Commit 32ddec6

Browse files
committed
lesson 4-3: responsive layout end
1 parent 86e50a8 commit 32ddec6

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

43-responsive-layout/scss/_layout.scss

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,26 @@
44
gap: 1rem;
55

66
.menu {
7-
flex-basis: 100%;
8-
9-
@media screen and (min-width: 40rem) {
10-
flex-basis: 25%;
11-
}
12-
13-
@media screen and (min-width: 58rem) {
14-
flex-basis: 20%;
15-
}
7+
flex-basis: 20rem;
8+
flex-grow: 1;
169
}
1710

1811
.gallery {
19-
flex: 1;
12+
flex-basis: 0;
13+
flex-grow: 999;
14+
min-width: 60%;
2015
}
2116
}
17+
18+
.menu {
19+
ul {
20+
display: flex;
21+
flex-wrap: wrap;
22+
gap: .5rem;
23+
24+
li {
25+
flex-grow: 1;
26+
flex-basis: 20rem;
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)