Skip to content

Commit 652f3dc

Browse files
committed
Update CSS
1 parent 08072eb commit 652f3dc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

assets/css/main.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,16 @@ section:first-of-type {
157157
margin-top: 141px /* header height */
158158
}
159159

160-
section:has(.image-container img[src]) {
160+
section:has(.image-container img[src]),
161+
section:only-of-type {
161162
min-height: 100svh;
162163
margin-top: 0
163164
}
164165

166+
section:only-of-type h1 {
167+
margin-top: calc(2em + 141px) /* header height */
168+
}
169+
165170
hr {
166171
width: 100vw;
167172
height: 1px;
@@ -412,9 +417,9 @@ details[open] summary::before {
412417
height: 43px
413418
}
414419

415-
section:first-of-type {
420+
section:first-of-type:not(:only-of-type) {
416421
height: 100vh;
417-
margin-top: 0
422+
margin-top: 0;
418423
}
419424

420425
.image-container:has(.background) {

0 commit comments

Comments
 (0)