Skip to content

Commit c773866

Browse files
authored
Merge pull request #338 from ember-learn/header-spacing-fix
fix header spacing
2 parents 5724f13 + ca6087e commit c773866

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

addon/styles/typography.css

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,22 @@ h1 {
9898
line-height: var(--line-height-hero-2);
9999
}
100100

101-
h1,
102-
h2,
103-
h3 {
104-
margin-bottom: var(--spacing-1);
105-
}
106-
107-
.text-xl + *,
108-
h1 + * {
109-
margin-top: var(--spacing-3);
110-
}
111-
112-
* + .text-xl {
113-
margin-top: var(--spacing-6);
101+
h1 {
102+
margin-bottom: var(--spacing-2);
114103
}
115104

116-
* + .text-lg,
117-
* + h2 {
118-
margin-top: var(--spacing-5);
105+
h2,
106+
h3,
107+
h4,
108+
h5 {
109+
margin-bottom: var(--spacing-1);
119110
}
120111

121-
* + .text-md,
122-
* + h3 {
112+
* + h1,
113+
* + h2,
114+
* + h3,
115+
* + h4,
116+
* + h5 {
123117
margin-top: var(--spacing-3);
124118
}
125119

0 commit comments

Comments
 (0)