Skip to content

Commit 639ec30

Browse files
committed
Unify landing header
1 parent fa4cc9c commit 639ec30

2 files changed

Lines changed: 4 additions & 41 deletions

File tree

_sass/_page-header.scss

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* ============================================================
22
.page-header — Unified BEM Component
3-
Variants: --hero, --plain, --article, --split
3+
Variants: --plain, --article, --split
44
============================================================ */
55

66
/* ------------------------------------------------------------
@@ -17,12 +17,6 @@
1717
border-bottom: none;
1818
}
1919

20-
/* --hero: larger padding, tighter heading line-height */
21-
&--hero {
22-
padding-top: 88px;
23-
padding-bottom: 100px;
24-
}
25-
2620
/* --article: tighter top padding, used in post layout */
2721
&--article {
2822
padding-top: 64px;
@@ -93,12 +87,6 @@
9387
color: var(--color-black);
9488
margin-bottom: 20px;
9589

96-
.page-header--hero & {
97-
font-size: 64px;
98-
line-height: 1.0;
99-
margin-bottom: 28px;
100-
}
101-
10290
.page-header--article & {
10391
margin-bottom: 0;
10492
max-width: 800px;
@@ -114,11 +102,6 @@
114102
color: var(--color-muted);
115103
max-width: 560px;
116104

117-
.page-header--hero & {
118-
max-width: 460px;
119-
margin-bottom: 40px;
120-
}
121-
122105
a {
123106
color: var(--color-red);
124107
transition: opacity 0.15s ease;
@@ -130,13 +113,14 @@
130113
}
131114

132115
/* ------------------------------------------------------------
133-
Actions (hero CTA buttons)
116+
Actions (CTA buttons)
134117
------------------------------------------------------------ */
135118
.page-header__actions {
136119
display: flex;
137120
align-items: center;
138121
gap: 12px;
139122
flex-wrap: wrap;
123+
margin-top: 32px;
140124
}
141125

142126
/* ------------------------------------------------------------
@@ -168,10 +152,6 @@
168152
Responsive — ≤1024px
169153
------------------------------------------------------------ */
170154
@media (max-width: 1024px) {
171-
.page-header--hero .page-header__heading {
172-
font-size: 48px;
173-
}
174-
175155
.page-header__heading {
176156
font-size: 40px;
177157
}
@@ -187,27 +167,10 @@
187167
Responsive — ≤768px
188168
------------------------------------------------------------ */
189169
@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-
198170
.page-header__heading {
199171
font-size: 32px;
200172
}
201173

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-
211174
.page-header__aside {
212175
padding-bottom: 0;
213176
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
{% assign current_release = site.data.releases | where: "prerelease", false | first %}
77

8-
<section class="page-header page-header--hero">
8+
<section class="page-header">
99
<div class="page-header__inner">
1010
<div class="page-header__content">
1111
<span class="page-header__eyebrow"><span class="page-header__eyebrow-dot"></span> OPEN SOURCE · LIGHTWEIGHT · EMBEDDABLE</span>

0 commit comments

Comments
 (0)