Fixes a bunch of warnings in the webpack process stemming from the use of the now deprecated division operator.

This commit is contained in:
Dave Page 2022-08-26 12:34:48 +05:30 committed by Akshay Joshi
parent bbef9acaf6
commit 92741680b5
5 changed files with 9 additions and 8 deletions

View File

@ -3,13 +3,13 @@
}
.dashboard-container {
padding-top: $grid-gutter-width/2;
padding-bottom: $grid-gutter-width/2;
padding-top: math.div($grid-gutter-width, 2);
padding-bottom: math.div($grid-gutter-width, 2);
min-height: 100%;
}
.dashboard-row {
margin-bottom: $grid-gutter-width/2;
margin-bottom: math.div($grid-gutter-width, 2);
}
.graph-error {

View File

@ -12,8 +12,8 @@
%grid-column {
position: relative;
width: 100%;
padding-right: ($gutter / 2);
padding-left: ($gutter / 2);
padding-right: math.div($gutter, 2);
padding-left: math.div($gutter, 2);
}
@each $breakpoint in map-keys($breakpoints) {

View File

@ -194,7 +194,7 @@
}
.wcFrameEdgeN, .wcFrameEdgeS {
height: $splitter-hover-width/2 + 1;
height: math.div($splitter-hover-width, 2) + 1;
}
.wcFrameEdgeN {
@ -206,7 +206,7 @@
}
.wcFrameEdgeW, .wcFrameEdgeE {
width: $splitter-hover-width/2 + 1;
width: math.div($splitter-hover-width, 2) + 1;
}
.wcFrameEdgeW {

View File

@ -64,7 +64,7 @@ $font-family-base: $font-family-primary;
$body-color: $color-fg;
$font-size-base: 0.875rem;
$line-height-base: 1.5;
$text-height-calc: $line-height-base*$font-size-base/1rem;
$text-height-calc: math.div($line-height-base*$font-size-base, 1rem);
$grid-gutter-width: 15px;
$border-radius: 0.25rem;

View File

@ -1,3 +1,4 @@
/* All the global variables, mixins goes here */
@use "sass:math";
@import 'default.variables.scss';
@import 'default.style.scss';