Skip to content

Commit ebd7b4f

Browse files
fix: prevent mobile header overlap with hamburger menu
1 parent 25a5025 commit ebd7b4f

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

website/index.css

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ header {
7373
padding: 1em;
7474
background-color: var(--color-background);
7575
text-align: center;
76+
position: relative;
7677
}
7778

7879
#container {
@@ -378,11 +379,22 @@ main {
378379
}
379380

380381
@media (0 <= width <= 800px) {
382+
header {
383+
padding-top: 2.8rem;
384+
}
385+
381386
#top-left {
382-
top: 5px;
383-
right: 5px;
384-
text-align: right;
387+
top: 0.45rem;
388+
left: 0.5rem;
389+
right: auto;
390+
text-align: left;
385391
color: var(--color-background-gray);
392+
max-width: calc(100% - 4rem);
393+
}
394+
395+
#top-right {
396+
top: 0.35rem;
397+
right: 0.35rem;
386398
}
387399

388400
#sort-container,
@@ -391,7 +403,7 @@ main {
391403
}
392404

393405
h1 {
394-
margin: 0.25em;
406+
margin: 0.25em 2.5rem 0.25em 0.5rem;
395407
}
396408

397409
#header-comment {

0 commit comments

Comments
 (0)