diff options
| author | Arne Rief <arne.rief@gmail.com> | 2023-02-20 10:04:10 +0100 |
|---|---|---|
| committer | Arne Rief <arne.rief@gmail.com> | 2023-02-20 10:04:10 +0100 |
| commit | 11f8629251a63f3a3260b9ed28277ed312abd136 (patch) | |
| tree | 3a4d22b0ebad36ad9d492bae72ab308321bd22b8 /sass/layout/_nav.scss | |
| parent | 7439372f7100017e4c5f70bed42a601706106435 (diff) | |
Small media query adjustments
Diffstat (limited to 'sass/layout/_nav.scss')
| -rw-r--r-- | sass/layout/_nav.scss | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/sass/layout/_nav.scss b/sass/layout/_nav.scss index 8d03e69..e2d462e 100644 --- a/sass/layout/_nav.scss +++ b/sass/layout/_nav.scss @@ -6,6 +6,11 @@ nav { height: 10vh; width: 100vw; + // tablet & mobile + @include responsive(tablet) { + height: fit-content; + } + ul { display: flex; align-items: center; @@ -14,12 +19,25 @@ nav { list-style-type: none; padding: 0 3rem; width: 100%; + + // tablet & mobile + @include responsive(tablet) { + @include flex-column-center; + gap: 1rem; + padding: 0; + } } // logo to the left side of navbar li:first-child { text-align: left; margin-right: auto; + + // tablet & mobile + @include responsive(tablet) { + text-align: center; + margin-right: 1.5rem; + } } li a { @@ -35,27 +53,10 @@ nav { &:hover { @include main-link-hover; } - } -} - -// tablet & mobile -@media screen and (max-width: 980px) { - nav { - height: fit-content; - - ul { - @include flex-column-center; - gap: 1rem; - padding: 0; - } - li a { + // tablet & mobile + @include responsive(tablet) { font-size: $big-text; } - - li:first-child { - text-align: center; - margin-right: 1.5rem; - } } } |
