Use sass division function instead of deprecated operator

This effectively make the SCSS code processable only by dart-sass
because neither libsass (and node-sass in consequence) nor ruby-sass
supports new syntax. See
https://sass-lang.com/documentation/breaking-changes/slash-div for more
information.

This fixes #27
This commit is contained in:
Jarek Zgoda 2021-08-18 12:44:54 +02:00
parent cc164857b9
commit cb5b746bbb
10 changed files with 30 additions and 26 deletions

View file

@ -18,12 +18,12 @@
// Swatch
&::-webkit-color-swatch {
border: none;
border-radius: calc(var(--border-radius) / 2);
border-radius: calc(var(--border-radius) * 0.5);
}
&::-moz-color-swatch {
border: none;
border-radius: calc(var(--border-radius) / 2);
border-radius: calc(var(--border-radius) * 0.5);
}
}
@ -51,7 +51,7 @@
// File
[type="file"] {
--color: var(--muted-color);
padding: calc(var(--form-element-spacing-vertical)/2) 0;
padding: calc(var(--form-element-spacing-vertical) * 0.5) 0;
border: none;
border-radius: 0;
background: none;
@ -61,7 +61,7 @@
--border-color: var(--secondary);
--color: var(--secondary-inverse);
margin-right: calc(var(--spacing) / 2);
padding: calc(var(--form-element-spacing-vertical) / 2) calc(var(--form-element-spacing-horizontal) / 2);
padding: calc(var(--form-element-spacing-vertical) * 0.5) calc(var(--form-element-spacing-horizontal) * 0.5);
border: var(--border-width) solid var(--border-color);
border-radius: var(--border-radius);
outline: none;
@ -162,7 +162,7 @@
-webkit-appearance: none;
width: $height-thumb;
height: $height-thumb;
margin-top: #{(-($height-thumb/2) + ($height-track/2))};
margin-top: #{(-($height-thumb * 0.5) + ($height-track * 0.5))};
border: $border-thumb solid var(--range-thumb-border-color);
border-radius: 50%;
background-color: var(--range-thumb-color);
@ -179,7 +179,7 @@
-webkit-appearance: none;
width: $height-thumb;
height: $height-thumb;
margin-top: #{(-($height-thumb/2) + ($height-track/2))};
margin-top: #{(-($height-thumb * 0.5) + ($height-track * 0.5))};
border: $border-thumb solid var(--range-thumb-border-color);
border-radius: 50%;
background-color: var(--range-thumb-color);
@ -196,7 +196,7 @@
-webkit-appearance: none;
width: $height-thumb;
height: $height-thumb;
margin-top: #{(-($height-thumb/2) + ($height-track/2))};
margin-top: #{(-($height-thumb * 0.5) + ($height-track * 0.5))};
border: $border-thumb solid var(--range-thumb-border-color);
border-radius: 50%;
background-color: var(--range-thumb-color);

View file

@ -112,7 +112,7 @@
&::before {
margin-right: 0;
margin-left: calc(#{$switch-width / 2} - var(--border-width));
margin-left: calc(#{$switch-width * 0.5} - var(--border-width));
}
}
}

View file

@ -131,7 +131,7 @@ fieldset {
label,
fieldset legend {
display: block;
margin-bottom: calc(var(--spacing) / 4);
margin-bottom: calc(var(--spacing) * 0.25);
vertical-align: middle;
}
@ -315,6 +315,6 @@ label {
& > input,
& > select,
& > textarea {
margin-top: calc(var(--spacing) / 4);
margin-top: calc(var(--spacing) * 0.25);
}
}

View file

@ -217,7 +217,7 @@ ol {
padding-left: var(--spacing);
li {
margin-bottom: calc(var(--typography-spacing-vertical) / 4);
margin-bottom: calc(var(--typography-spacing-vertical) * 0.25);
}
}
@ -241,7 +241,7 @@ blockquote {
border-left: .25rem solid var(--blockquote-border-color);
footer {
margin-top: calc(var(--typography-spacing-vertical) / 2);
margin-top: calc(var(--typography-spacing-vertical) * 0.5);
color: var(--blockquote-footer-color);
}
}