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

@ -1,3 +1,5 @@
@use "sass:math";
/**
* Card (<article>)
*/
@ -15,7 +17,7 @@ article {
> pre {
margin-right: calc(var(--block-spacing-horizontal) * -1);
margin-left: calc(var(--block-spacing-horizontal) * -1);
padding: calc(var(--block-spacing-vertical) / 1.5) var(--block-spacing-horizontal);
padding: calc(math.div(var(--block-spacing-vertical), 1.5)) var(--block-spacing-horizontal);
background-color: var(--card-sectionning-background-color);
}