Skip to content

Commit

Permalink
fix: sticky header for md screens
Browse files Browse the repository at this point in the history
This fixes #1495
  • Loading branch information
malfynnction committed Jan 27, 2024
1 parent 3a7e71a commit f805c85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
}

.header {
@apply fixed left-0 right-0 top-[1.625rem] z-10 m-auto flex items-center justify-center text-center md:relative md:top-0 md:h-12;
@media (max-width: 767px) {
@apply fixed left-0 right-0 top-[1.625rem] z-10 m-auto flex items-center justify-center text-center lg:relative lg:top-0 lg:h-12;
@media (max-width: 1023px) {
width: calc(100% - 9rem);
}

Expand All @@ -51,7 +51,7 @@
}

.header--action {
@apply fixed right-6 flex gap-x-2 text-red-800 dark:text-red-600 md:absolute md:right-0;
@apply fixed right-6 flex gap-x-2 text-red-800 dark:text-red-600 lg:absolute lg:right-0;

.header--action__secondary {
@apply text-gray-600 dark:text-gray-400;
Expand Down

0 comments on commit f805c85

Please sign in to comment.