Skip to content

Commit 256fd0e

Browse files
Refactor .main-wrapper first child outsides .main-wrapper
1 parent a88f1d4 commit 256fd0e

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

Wireframe/style.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,25 @@ svg {
3838
}
3939

4040
.main-wrapper {
41+
display: grid;
42+
grid-template-columns: 1fr 1fr;
43+
gap: var(--space);
44+
4145
max-width: var(--container);
46+
4247
margin: 0 auto calc(var(--space) * 4) auto;
4348
}
49+
50+
.main-wrapper > *:first-child {
51+
grid-column: span 2;
52+
}
53+
4454
footer {
4555
position: fixed;
4656
bottom: 0;
4757
text-align: center;
4858
}
4959

50-
.main-wrapper {
51-
display: grid;
52-
grid-template-columns: 1fr 1fr;
53-
gap: var(--space);
54-
> *:first-child {
55-
grid-column: span 2;
56-
}
57-
}
5860

5961
article {
6062
border: var(--line);

0 commit comments

Comments
 (0)