|
1 |
| -.title-header { |
2 |
| - text-align: center; |
| 1 | +.hero-buttons { |
| 2 | + display: flex; |
| 3 | + flex-wrap: wrap; |
| 4 | + justify-content: center; |
| 5 | + gap: var(--space-s); |
3 | 6 | border-bottom: 5px solid var(--gray-border);
|
4 |
| - margin-top: 25px; |
5 |
| - padding-bottom: 40px; |
6 |
| - |
7 |
| - @media only screen and (max-width: 570px) { |
8 |
| - margin-top: 0; |
9 |
| - } |
10 |
| - |
11 |
| - h1 { |
12 |
| - font-size: 50px; |
13 |
| - @media only screen and (max-width: 370px) { |
14 |
| - font-size: 40px; |
15 |
| - } |
16 |
| - } |
17 |
| - |
18 |
| - .links a:not(:first-child) { |
19 |
| - margin: 0 20px; |
20 |
| - @media only screen and (max-width: 570px) { |
21 |
| - clear: both; |
22 |
| - margin: 20px 0 0 0; |
23 |
| - } |
24 |
| - } |
| 7 | + margin-top: var(--space-s); |
| 8 | + padding-bottom: var(--space-l); |
25 | 9 | }
|
26 | 10 |
|
27 | 11 | .hero-button {
|
|
33 | 17 | }
|
34 | 18 |
|
35 | 19 | .blurb {
|
36 |
| - margin: 30px 0 40px 0; |
| 20 | + margin: var(--space-l) var(--space-s); |
37 | 21 | display: flex;
|
| 22 | + gap: var(--space-l); |
38 | 23 |
|
39 |
| - .intro { flex: 6; line-height: 25px; padding: 10px;} |
40 |
| - |
41 |
| - .stats { |
42 |
| - flex: 4; |
43 |
| - display: flex; |
| 24 | + @media only screen and (max-width: 650px) { |
44 | 25 | flex-direction: column;
|
| 26 | + align-items: center; |
| 27 | + } |
| 28 | +} |
45 | 29 |
|
46 |
| - padding: 10px; |
| 30 | +.intro { |
| 31 | + flex: 6; |
| 32 | + line-height: 1.5; |
| 33 | +} |
47 | 34 |
|
48 |
| - .crates { margin-top: 16px; } |
49 |
| - } |
| 35 | +.stats { |
| 36 | + flex: 4; |
| 37 | + display: flex; |
| 38 | + flex-direction: column; |
50 | 39 |
|
51 |
| - @media only screen and (max-width: 530px) { |
52 |
| - flex-direction: column; |
53 |
| - .stats { |
54 |
| - border: none; |
55 |
| - margin: 32px auto 0; |
56 |
| - } |
| 40 | + > * + * { |
| 41 | + margin-top: var(--space-s); |
57 | 42 | }
|
58 | 43 | }
|
59 | 44 |
|
60 | 45 | .lists {
|
61 |
| - display: flex; |
62 |
| - flex-wrap: wrap; |
63 |
| - justify-content: left; |
64 |
| - |
65 |
| - > section { |
66 |
| - margin: 0; |
67 |
| - padding: 0 15px; |
68 |
| - width: 33.33%; |
69 |
| - @media only screen and (max-width: 750px) { |
70 |
| - width: 50%; |
71 |
| - } |
72 |
| - @media only screen and (max-width: 550px) { |
73 |
| - width: 100%; |
74 |
| - } |
| 46 | + display: grid; |
| 47 | + grid-template-columns: 1fr 1fr 1fr; |
| 48 | + gap: var(--space-s); |
| 49 | + padding: 0 var(--space-s); |
| 50 | + |
| 51 | + @media only screen and (max-width: 750px) { |
| 52 | + grid-template-columns: 1fr 1fr; |
| 53 | + } |
| 54 | + |
| 55 | + @media only screen and (max-width: 550px) { |
| 56 | + grid-template-columns: 1fr; |
75 | 57 | }
|
76 | 58 |
|
77 | 59 | h2 {
|
78 |
| - font-size: 105%; |
79 |
| - line-height: 20px; |
| 60 | + font-size: 1.05rem; |
80 | 61 | }
|
81 | 62 | }
|
82 | 63 |
|
|
90 | 71 | }
|
91 | 72 |
|
92 | 73 | .error-message {
|
93 |
| - line-height: 25px; |
| 74 | + line-height: 1.5; |
94 | 75 | }
|
95 | 76 |
|
96 | 77 | .try-again-button {
|
97 | 78 | composes: yellow-button from './shared/buttons.module.css';
|
98 | 79 | align-self: center;
|
99 |
| - margin: 20px 0; |
| 80 | + margin: var(--space-s) 0; |
100 | 81 |
|
101 | 82 | .spinner {
|
102 |
| - margin-left: 7px; |
| 83 | + margin-left: var(--space-2xs); |
103 | 84 | }
|
104 | 85 | }
|
0 commit comments