Skip to content

Commit

Permalink
Add style for super small devices (#2834) (#2835)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Sturm <[email protected]>
  • Loading branch information
taulinger and alsturm authored Jan 23, 2025
1 parent 2404050 commit 2f5fd01
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@
--animationtime-mainmenu: var(--animation-duration-large-open);
}

/*
Font size for super small screens
*/
@media only screen and (max-width: 320px) {
:root,
:host {
font-size: 0.65em;
}
}

.light-theme,
:host(.light-theme) {
/* brand */
Expand Down
9 changes: 9 additions & 0 deletions src/modules/header/components/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -519,3 +519,12 @@ input[type='search']::-webkit-search-results-decoration {
opacity: 1;
}
}

/*
No header for super small screens
*/
@media only screen and (max-width: 250px) {
#headerMobile {
display: none;
}
}

0 comments on commit 2f5fd01

Please sign in to comment.