Skip to content

Commit c2b184b

Browse files
authored
Refactor margin styles for heading elements
1 parent cff8dde commit c2b184b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

styles.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,6 @@
229229
h3 {
230230
@apply text-2xl;
231231
}
232-
233-
h2:first-child, h3:first-child {
234-
@apply mt-0;
235-
}
236-
237-
h2:not(:first-child), h3:not(:first-child) {
238-
@apply mt-8;
239-
}
240232

241233
h4 {
242234
@apply text-xl;
@@ -250,6 +242,14 @@
250242
@apply text-base;
251243
}
252244

245+
h2:first-child, h3:first-child, h4:first-child, h5:first-child {
246+
@apply mt-0;
247+
}
248+
249+
h2:not(:first-child), h3:not(:first-child) {
250+
@apply mt-8;
251+
}
252+
253253
p {
254254
@apply mb-4;
255255
}

0 commit comments

Comments
 (0)