Skip to content

Commit 960fd76

Browse files
committed
🔲 Fix inconsistency in solution
1 parent 50fccec commit 960fd76

File tree

1 file changed

+43
-41
lines changed

1 file changed

+43
-41
lines changed
Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,89 @@
11
body {
2-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
3-
margin: 0;
4-
min-height: 100vh;
2+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
3+
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
4+
margin: 0;
5+
min-height: 100vh;
56
}
67

78
.header {
8-
height: 72px;
9-
background: darkmagenta;
10-
color: white;
9+
height: 72px;
10+
background: darkmagenta;
11+
color: white;
1112
}
1213

1314
.footer {
14-
height: 72px;
15-
background: #eee;
16-
color: darkmagenta;
15+
height: 72px;
16+
background: #eee;
17+
color: darkmagenta;
1718
}
1819

1920
.sidebar {
20-
width: 300px;
21-
background: royalblue;
21+
width: 300px;
22+
background: royalblue;
2223
}
2324

2425
.card {
25-
border: 1px solid #eee;
26-
box-shadow: 2px 4px 16px rgba(0,0,0,.06);
27-
border-radius: 4px;
26+
border: 1px solid #eee;
27+
box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.06);
28+
border-radius: 4px;
2829
}
2930

3031
/* SOLUTION */
3132

3233
body {
33-
display: flex;
34-
flex-direction: column;
34+
display: flex;
35+
flex-direction: column;
3536
}
3637

3738
.header {
38-
display: flex;
39-
align-items: center;
40-
padding: 0 16px;
41-
font-size: 32px;
42-
font-weight: 900;
39+
display: flex;
40+
align-items: center;
41+
padding: 0 16px;
42+
font-size: 32px;
43+
font-weight: 900;
4344
}
4445

4546
.body {
46-
flex: 1;
47-
display: flex;
47+
flex: 1;
48+
display: flex;
4849
}
4950

5051
.sidebar {
51-
flex-shrink: 0;
52-
padding: 16px;
52+
flex-shrink: 0;
53+
box-sizing: border-box;
54+
padding: 16px;
5355
}
5456

5557
ul {
56-
list-style-type: none;
57-
margin: 0;
58-
padding: 0;
58+
list-style-type: none;
59+
margin: 0;
60+
padding: 0;
5961
}
6062

6163
li {
62-
margin-bottom: 16px;
64+
margin-bottom: 16px;
6365
}
6466

6567
a {
66-
color: white;
67-
text-decoration: none;
68-
font-size: 24px;
68+
color: white;
69+
text-decoration: none;
70+
font-size: 24px;
6971
}
7072

7173
.container {
72-
padding: 32px;
73-
display: flex;
74-
flex-wrap: wrap;
74+
padding: 32px;
75+
display: flex;
76+
flex-wrap: wrap;
7577
}
7678

7779
.card {
78-
padding: 16px;
79-
margin: 16px;
80-
width: 300px;
80+
padding: 16px;
81+
margin: 16px;
82+
width: 300px;
8183
}
8284

8385
.footer {
84-
display: flex;
85-
align-items: center;
86-
justify-content: center;
86+
display: flex;
87+
align-items: center;
88+
justify-content: center;
8789
}

0 commit comments

Comments
 (0)