aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/base/_spacings.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-20 23:11:08 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-20 23:11:08 +0100
commit6092ad0c91e0dc268e5988174db87ded14e6c931 (patch)
treedd3fc56ae9bde5aa4796bc3889927f55e411dc59 /src/styles/base/_spacings.scss
parent168ed3215f659d44215fd02ac05cc1fe58be4e06 (diff)
chore: move toolbar size to global scope
It allows me to manage footer padding on small viewports.
Diffstat (limited to 'src/styles/base/_spacings.scss')
-rw-r--r--src/styles/base/_spacings.scss11
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;
+ }
+ }
}