replace deprecated slash division with math division in Sass
Change-Id: I664c367e06eb166f74197ac50ef90dc24a7b5ef9
diff --git a/dev/scss/main/main.scss b/dev/scss/main/main.scss
index e2bb6be..bf6e2dc 100644
--- a/dev/scss/main/main.scss
+++ b/dev/scss/main/main.scss
@@ -1,3 +1,4 @@
+@use 'sass:math';
@import "highlight"; // JSON highlighting
@import "kwic"; // Kwic view information
@import "logos"; // Logo images
@@ -21,11 +22,11 @@
main {
- padding-bottom: $footer-height + ($standard-margin / 2);
+ padding-bottom: $footer-height + math.div($standard-margin,2);
margin: {
left: $standard-margin;
- right: ($standard-margin / 2);
+ right: math.div($standard-margin,2);
}
&.embedded {
diff --git a/dev/scss/main/pagination.scss b/dev/scss/main/pagination.scss
index d09162d..f261fc7 100644
--- a/dev/scss/main/pagination.scss
+++ b/dev/scss/main/pagination.scss
@@ -1,4 +1,5 @@
@charset "utf-8";
+@use 'sass:math';
@import "../util";
/**
@@ -22,8 +23,8 @@
*/
position: fixed;
font-size: 0;
- right: ($standard-margin / 4);
- bottom: ($standard-margin / 2);
+ right: math.div($standard-margin,4);
+ bottom: math.div($standard-margin,2);
z-index: 35;
padding: 0;
height: auto;
diff --git a/dev/scss/main/view/matchtable.scss b/dev/scss/main/view/matchtable.scss
index 6239c61..ef01955 100644
--- a/dev/scss/main/view/matchtable.scss
+++ b/dev/scss/main/view/matchtable.scss
@@ -1,3 +1,4 @@
+@use 'sass:math';
@import "../../util";
/**
@@ -10,7 +11,7 @@
> div {
z-index: 20;
- margin-left: $left-distance - ($border-size / 2);
+ margin-left: $left-distance - math.div($border-size,2);
margin-right: $right-view-distance;
padding: 0;
overflow-x: auto;
@@ -86,13 +87,13 @@
}
> th:nth-of-type(2) {
- left: ($left-width / 2) + $border-size;
+ left: math.div($left-width,2) + $border-size;
}
// Includes header line as well
> * {
@include cell-info;
- border: ($border-size / 2) solid $dark-orange;
+ border: math.div($border-size,2) solid $dark-orange;
}
> td {