diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-20 17:13:15 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-20 17:20:56 +0100 |
| commit | df9e8b1985a0f1c71c0657e72fad008bf437faba (patch) | |
| tree | eeb2a066982a3e81836668ce9a5613cffc023e77 /src/components/MainNav/MainNav.module.scss | |
| parent | 8966fde6ff520cfbe74c031c8b2e3a66d298b172 (diff) | |
chore: add projects to main nav
I redesign a little the main nav on small screens so it can takes two
columns when the screen height is low. I change the 2xs breakpoint to
500px instead of 400px.
Diffstat (limited to 'src/components/MainNav/MainNav.module.scss')
| -rw-r--r-- | src/components/MainNav/MainNav.module.scss | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/components/MainNav/MainNav.module.scss b/src/components/MainNav/MainNav.module.scss index 21c5b9d..3cfb727 100644 --- a/src/components/MainNav/MainNav.module.scss +++ b/src/components/MainNav/MainNav.module.scss @@ -99,10 +99,17 @@ @extend %reset-list; @include mix.media("screen") { + @include mix.dimensions(null, "2xs", "height") { + display: grid; + grid-template-columns: min-content min-content; + max-height: calc(100vh - var(--toolbar-size)); + } + @include mix.dimensions("md") { display: flex; flex-flow: row wrap; align-items: center; + gap: var(--spacing-2xs); } } } @@ -111,6 +118,7 @@ --draw-border-width: #{fun.convert-px(4)}; display: block; + min-width: fun.convert-px(85); padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-2xs); background: var(--color-bg); background-repeat: no-repeat; @@ -120,12 +128,8 @@ text-decoration: none; @include mix.media("screen") { - @include mix.dimensions(null, "2xs", "height") { - padding: var(--spacing-2xs) var(--spacing-sm) 0; - } - @include mix.dimensions("md") { - margin: 0 var(--spacing-2xs); + margin: 0; background-color: inherit; border-radius: 8%; } |
