Skip to content

Commit

Permalink
fix: margin top (nav-bar height for different resolution)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtMalina committed Jul 23, 2024
1 parent 227cc50 commit bb0ea9e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,38 @@
font: var(--telekom-text-style-body);
}

@media screen and (max-width: 1039px) {
:root {
--ifm-navbar-height: 62px;
/* here is the different nav height when scrolling */
/* --ifm-navbar-height--when-scrolling: 62px; */
}
}

@media screen and (min-width: 1040px) {
:root {
--ifm-navbar-height: 85px;
/* here is the different nav height when scrolling */
/* --ifm-navbar-height--when-scrolling: 72px; */
}
}

@media screen and (min-width: 1296px) {
:root {
--ifm-navbar-height: 98px;
/* here is the different nav height when scrolling */
/* --ifm-navbar-height--when-scrolling: 72px; */
}
}

@media screen and (min-width: 1680px) {
:root {
--ifm-navbar-height: 122px;
/* here is the different nav height when scrolling */
/* --ifm-navbar-height--when-scrolling: 72px; */
}
}

body:not(.navigation-with-keyboard) *:not(input):focus {
outline: var(--telekom-color-text-and-icon-standard);
}
Expand Down

0 comments on commit bb0ea9e

Please sign in to comment.