refactor: separate CSS variables into file
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
17
apps/website/src/style/_variables-css.scss
Normal file
17
apps/website/src/style/_variables-css.scss
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user