diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-20 23:11:08 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-20 23:11:08 +0100 |
| commit | 6092ad0c91e0dc268e5988174db87ded14e6c931 (patch) | |
| tree | dd3fc56ae9bde5aa4796bc3889927f55e411dc59 /src/styles | |
| parent | 168ed3215f659d44215fd02ac05cc1fe58be4e06 (diff) | |
chore: move toolbar size to global scope
It allows me to manage footer padding on small viewports.
Diffstat (limited to 'src/styles')
| -rw-r--r-- | src/styles/base/_spacings.scss | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/styles/base/_spacings.scss b/src/styles/base/_spacings.scss index 512b597..74c6fa9 100644 --- a/src/styles/base/_spacings.scss +++ b/src/styles/base/_spacings.scss @@ -1,3 +1,5 @@ +@use "@styles/abstracts/functions" as fun; +@use "@styles/abstracts/mixins" as mix; @use "@styles/abstracts/variables" as var; @use "sass:math"; @@ -22,4 +24,13 @@ --spacing-xl: clamp(#{var.spacing("lg")}, 1ex + 4vw, #{var.spacing("xl")}); --spacing-2xl: clamp(#{var.spacing("xl")}, 1ex + 5vw, #{var.spacing("2xl")}); --spacing-3xl: clamp(#{var.spacing("2xl")}, 1ex + 6vw, #{var.spacing("3xl")}); + --toolbar-size: #{fun.convert-px(60)}; +} + +@include mix.media("screen") { + @include mix.dimensions("sm") { + :root { + --toolbar-size: 0; + } + } } |
