Skip to content

Commit 6d31135

Browse files
committed
Tweak heading styles
1 parent 4456de9 commit 6d31135

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

src/css/custom.css

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
--ifm-code-font-size: 85%;
2121

22+
--ifm-heading-font-weight: 700;
23+
--ifm-heading-line-height: 1.618;
24+
--ifm-heading-margin-top: 1.618rem;
25+
2226
--ifm-color-primary: hsl(
2327
var(--primary-hue),
2428
var(--primary-saturation),
@@ -132,45 +136,31 @@
132136
h1 {
133137
font-size: 2.618rem;
134138
letter-spacing: -0.02em;
135-
line-height: 1.618;
136-
margin-bottom: 0.5rem;
139+
margin-top: 0;
140+
margin-left: -0.09rem;
137141
}
138142

139143
h2 {
140144
font-size: 1.618rem;
141145
letter-spacing: -0.02em;
142-
font-weight: 700;
143-
line-height: 1.618;
144-
margin: 2.618rem 0 0 -0.09rem;
146+
margin-left: -0.09rem;
145147
}
146148

147149
h3 {
148150
font-size: 1.382rem;
149151
letter-spacing: -0.01em;
150-
font-weight: 700;
151-
line-height: 1.618;
152-
margin: 1.618rem 0 0 0;
153152
}
154153

155154
h4 {
156155
font-size: 1.145rem;
157-
font-weight: 700;
158-
line-height: 1.618;
159-
margin: 1.618rem 0 0 0;
160156
}
161157

162158
h5 {
163159
font-size: 1rem;
164-
font-weight: 700;
165-
line-height: 1.618;
166-
margin: 1.618rem 0 0 0;
167160
}
168161

169162
h6 {
170163
font-size: 0.85rem;
171-
font-weight: 700;
172-
line-height: 1.618;
173-
margin: 1.618rem 0 0 0;
174164
}
175165

176166
p {

0 commit comments

Comments
 (0)