|
1 | 1 | /* ============================================================ |
2 | 2 | .page-header — Unified BEM Component |
3 | | - Variants: --hero, --plain, --article, --split |
| 3 | + Variants: --plain, --article, --split |
4 | 4 | ============================================================ */ |
5 | 5 |
|
6 | 6 | /* ------------------------------------------------------------ |
|
17 | 17 | border-bottom: none; |
18 | 18 | } |
19 | 19 |
|
20 | | - /* --hero: larger padding, tighter heading line-height */ |
21 | | - &--hero { |
22 | | - padding-top: 88px; |
23 | | - padding-bottom: 100px; |
24 | | - } |
25 | | - |
26 | 20 | /* --article: tighter top padding, used in post layout */ |
27 | 21 | &--article { |
28 | 22 | padding-top: 64px; |
|
93 | 87 | color: var(--color-black); |
94 | 88 | margin-bottom: 20px; |
95 | 89 |
|
96 | | - .page-header--hero & { |
97 | | - font-size: 64px; |
98 | | - line-height: 1.0; |
99 | | - margin-bottom: 28px; |
100 | | - } |
101 | | - |
102 | 90 | .page-header--article & { |
103 | 91 | margin-bottom: 0; |
104 | 92 | max-width: 800px; |
|
114 | 102 | color: var(--color-muted); |
115 | 103 | max-width: 560px; |
116 | 104 |
|
117 | | - .page-header--hero & { |
118 | | - max-width: 460px; |
119 | | - margin-bottom: 40px; |
120 | | - } |
121 | | - |
122 | 105 | a { |
123 | 106 | color: var(--color-red); |
124 | 107 | transition: opacity 0.15s ease; |
|
130 | 113 | } |
131 | 114 |
|
132 | 115 | /* ------------------------------------------------------------ |
133 | | - Actions (hero CTA buttons) |
| 116 | + Actions (CTA buttons) |
134 | 117 | ------------------------------------------------------------ */ |
135 | 118 | .page-header__actions { |
136 | 119 | display: flex; |
137 | 120 | align-items: center; |
138 | 121 | gap: 12px; |
139 | 122 | flex-wrap: wrap; |
| 123 | + margin-top: 32px; |
140 | 124 | } |
141 | 125 |
|
142 | 126 | /* ------------------------------------------------------------ |
|
168 | 152 | Responsive — ≤1024px |
169 | 153 | ------------------------------------------------------------ */ |
170 | 154 | @media (max-width: 1024px) { |
171 | | - .page-header--hero .page-header__heading { |
172 | | - font-size: 48px; |
173 | | - } |
174 | | - |
175 | 155 | .page-header__heading { |
176 | 156 | font-size: 40px; |
177 | 157 | } |
|
187 | 167 | Responsive — ≤768px |
188 | 168 | ------------------------------------------------------------ */ |
189 | 169 | @media (max-width: 768px) { |
190 | | - .page-header--hero { |
191 | | - padding: 56px var(--container-padding) 64px; |
192 | | - } |
193 | | - |
194 | | - .page-header--hero .page-header__heading { |
195 | | - font-size: 36px; |
196 | | - } |
197 | | - |
198 | 170 | .page-header__heading { |
199 | 171 | font-size: 32px; |
200 | 172 | } |
201 | 173 |
|
202 | | - .page-header--hero .page-header__actions { |
203 | | - flex-direction: column; |
204 | | - align-items: stretch; |
205 | | - } |
206 | | - |
207 | | - .page-header--hero .page-header__actions .btn { |
208 | | - justify-content: center; |
209 | | - } |
210 | | - |
211 | 174 | .page-header__aside { |
212 | 175 | padding-bottom: 0; |
213 | 176 | } |
|
0 commit comments