refactor: separate CSS variables into file

This commit is contained in:
2023-06-11 19:46:55 +02:00
parent 66bb40471c
commit 4dce8354f7
3 changed files with 22 additions and 23 deletions

View File

@@ -1,29 +1,13 @@
// CSS Variables
:root {
// Sizes
--container-width: #{$container-width};
// Offsets
--switcher-offset: 16px;
// Animation
--ease-quart: cubic-bezier(.165, .84, .44, 1);
--ease-cubic: cubic-bezier(.785, .135, .15, .86);
--ease-inout-quart: cubic-bezier(.76, 0, .24, 1);
}
@include bp (sm) {
:root {
// Offsets
--switcher-offset: clamp(20px, 3vw, 40px);
}
}
html { html {
font: #{$base-font-size}/1.2 $font-sans; font: #{$base-font-size}/1.2 $font-sans;
font-weight: 400; font-weight: 400;
color: #fff; color: #fff;
min-width: 320px; min-width: 320px;
word-break: normal; word-break: normal;
&.block-scroll {
overflow: hidden;
}
} }
body { body {
@include font-smooth; @include font-smooth;
@@ -33,9 +17,6 @@ body {
overflow-x: hidden; overflow-x: hidden;
overscroll-behavior: none; overscroll-behavior: none;
&.block-scroll {
overflow: hidden;
}
&.is-loading * { &.is-loading * {
cursor: wait !important; cursor: wait !important;
} }

View File

@@ -0,0 +1,17 @@
:root {
// Sizes
--container-width: #{$container-width};
// Offsets
--switcher-offset: 16px;
// Animation
--ease-quart: cubic-bezier(.165, .84, .44, 1);
--ease-cubic: cubic-bezier(.785, .135, .15, .86);
--ease-inout-quart: cubic-bezier(.76, 0, .24, 1);
@include bp (sm) {
// Offsets
--switcher-offset: clamp(20px, 3vw, 40px);
}
}

View File

@@ -7,6 +7,7 @@
@import "tools/helpers"; @import "tools/helpers";
// Base // Base
@import "variables-css";
@import "base"; @import "base";
@import "fonts"; @import "fonts";
@import "typography"; @import "typography";