Skip to content

Commit 490c0cf

Browse files
committed
lesson 3-2: order end
1 parent af98d0b commit 490c0cf

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

32-order/scss/_base.scss

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ a {
5454

5555
&__title {
5656
margin-bottom: 0.5rem;
57+
margin-top: 0.5rem;
5758
font-size: 1.5rem;
5859
font-weight: 400;
5960
line-height: 1.3;

32-order/scss/_flex.scss

+18
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,25 @@
55

66
.card {
77
width: 20rem;
8+
display: flex;
9+
flex-direction: column;
10+
gap: 0.5rem;
11+
12+
&__img {
13+
order: -2;
14+
}
15+
16+
&__category {
17+
order: -1;
18+
align-self: flex-end;
19+
}
820
}
921

22+
.card:nth-child(1) {
23+
order: 1;
24+
}
1025

26+
.card:nth-child(3) {
27+
order: 3;
28+
}
1129
}

0 commit comments

Comments
 (0)