replace deprecated scss
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
@each $label, $value in $breakpoints {
|
||||
@use "../variables/breakpoints";
|
||||
|
||||
@each $label, $value in breakpoints.$breakpoints {
|
||||
.min-#{$label} {
|
||||
@media (min-width: $value) {
|
||||
display: none;
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
@use "../mixins/generate-button-classes";
|
||||
@use "../mixins/generate-colour-classes";
|
||||
@use "../variables/colours";
|
||||
|
||||
::selection {
|
||||
color: $white;
|
||||
background: $primary;
|
||||
color: colours.$white;
|
||||
background: colours.$primary;
|
||||
}
|
||||
|
||||
@each $color, $hex in $colors {
|
||||
@include generate_colour_classes($color, $hex);
|
||||
@include generate_button_colors($color, $hex);
|
||||
@each $color, $hex in colours.$colors {
|
||||
@include generate-colour-classes.generate_colour_classes($color, $hex);
|
||||
@include generate-button-classes.generate_button_colors($color, $hex);
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
@use "../variables/colours";
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
backface-visibility: hidden; // removes jagged edges on rotated elements
|
||||
@@ -11,7 +13,7 @@ body,
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: $white;
|
||||
background: colours.$white;
|
||||
}
|
||||
|
||||
.visually-hidden {
|
||||
|
||||
@@ -1,23 +1,26 @@
|
||||
@use "../variables/colours";
|
||||
@use "../variables/spacing";
|
||||
|
||||
.brand {
|
||||
display: block;
|
||||
width: $brandWidth;
|
||||
height: $brandHeight;
|
||||
width: spacing.$brandWidth;
|
||||
height: spacing.$brandHeight;
|
||||
|
||||
svg,
|
||||
img {
|
||||
display: block;
|
||||
width: $brandWidth;
|
||||
height: $brandHeight;
|
||||
width: spacing.$brandWidth;
|
||||
height: spacing.$brandHeight;
|
||||
}
|
||||
|
||||
.knockout & {
|
||||
@media screen {
|
||||
.fill-primary {
|
||||
fill: $white;
|
||||
fill: colours.$white;
|
||||
}
|
||||
|
||||
.fill-grey {
|
||||
fill: rgba($white, 0.8);
|
||||
fill: rgba(colours.$white, 0.8);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,28 +30,28 @@
|
||||
width: 90%;
|
||||
margin: auto;
|
||||
|
||||
&-large { max-width: $containerLarge; }
|
||||
&-medium { max-width: $containerMedium; }
|
||||
&-small { max-width: $containerSmall; }
|
||||
&-narrow { max-width: $containerNarrow; }
|
||||
&-large { max-width: spacing.$containerLarge; }
|
||||
&-medium { max-width: spacing.$containerMedium; }
|
||||
&-small { max-width: spacing.$containerSmall; }
|
||||
&-narrow { max-width: spacing.$containerNarrow; }
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: $sectionMedium 0;
|
||||
padding: spacing.$sectionMedium 0;
|
||||
|
||||
&-small { padding: $sectionSmall 0; }
|
||||
&-medium { padding: $sectionMedium 0; }
|
||||
&-large { padding: $sectionLarge 0; }
|
||||
&-small { padding: spacing.$sectionSmall 0; }
|
||||
&-medium { padding: spacing.$sectionMedium 0; }
|
||||
&-large { padding: spacing.$sectionLarge 0; }
|
||||
|
||||
&-zero-top { padding-top: 0; }
|
||||
&-zero-bottom { padding-bottom: 0; }
|
||||
}
|
||||
|
||||
.inner {
|
||||
padding: $innerMedium;
|
||||
padding: spacing.$innerMedium;
|
||||
|
||||
&-small { padding: $innerSmall; }
|
||||
&-large { padding: $innerLarge; }
|
||||
&-small { padding: spacing.$innerSmall; }
|
||||
&-large { padding: spacing.$innerLarge; }
|
||||
|
||||
&-zero-x {
|
||||
padding-left: 0;
|
||||
@@ -62,7 +65,7 @@
|
||||
}
|
||||
|
||||
.rounded {
|
||||
border-radius: $borderRadius;
|
||||
border-radius: spacing.$borderRadius;
|
||||
|
||||
&-top {
|
||||
border-bottom-right-radius: 0;
|
||||
@@ -77,12 +80,12 @@
|
||||
|
||||
.border {
|
||||
border-style: solid;
|
||||
border-width: $borderWidth;
|
||||
border-width: spacing.$borderWidth;
|
||||
|
||||
&-thin { border-width: 0.0625em; }
|
||||
&-regular { border-width: $borderWidth; }
|
||||
&-thick { border-width: $borderThick; }
|
||||
&-thicker { border-width: $borderThicker; }
|
||||
&-regular { border-width: spacing.$borderWidth; }
|
||||
&-thick { border-width: spacing.$borderThick; }
|
||||
&-thicker { border-width: spacing.$borderThicker; }
|
||||
|
||||
&-top {
|
||||
border-right-width: 0;
|
||||
|
||||
Reference in New Issue
Block a user