fix: deprecated sass division warning (#2595)

Fix "deprecation Warning: Using / for division outside of calc() is
deprecated and will be removed in Dart Sass 2.0.0."
This commit is contained in:
Charles Kerr 2022-02-09 23:38:55 -06:00 committed by GitHub
parent b5247662d9
commit 663fba71c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,8 @@
/* @license This file Copyright (C) 2020-2022 Mnemosyne LLC.
It may be used under GPLv2 (SPDX: GPL-2.0), GPLv3 (SPDX: GPL-3.0),
It may be used under GPLv2 (SPDX: GPL-2.0-only), GPLv3 (SPDX: GPL-3.0-only),
or any future license endorsed by Mnemosyne LLC.
License text can be found in the licenses/ folder. */
/* @license This file Copyright © Charles Kerr, Dave Perrett, Malcolm Jarvis and Bruno Bierbaumer
It may be used under GPLv2 (SPDX: GPL-2.0).
It may be used under GPLv2 (SPDX: GPL-2.0-only).
License text can be found in the licenses/ folder. */

View File

@ -506,7 +506,7 @@ $popup-top: 61px; // TODO: ugly that this is hardcoded
background-position: center center;
background-repeat: no-repeat;
background-size: $pauseresume-size;
margin-left: math.floor($pauseresume-size-number / 2) * 1px;
margin-left: math.floor(math.div($pauseresume-size-number, 2)) * 1px;
width: $pauseresume-size;
&[data-action='pause'] {
@ -1159,7 +1159,7 @@ $popup-top: 61px; // TODO: ugly that this is hardcoded
.file-priority-radiobox {
$size-number: 20;
$size: $size-number * 1px;
$halfsize: math.floor($size-number / 2) * 1px;
$halfsize: math.floor(math.div($size-number, 2)) * 1px;
grid-area: priority;
@ -1387,7 +1387,7 @@ $popup-top: 61px; // TODO: ugly that this is hardcoded
/// DIALOGS
$dialog-padding-number: 20;
$dialog-logo-padding-number: $dialog-padding-number * 2 / 3;
$dialog-logo-padding-number: math.div($dialog-padding-number * 2, 3);
$logo-size: 64px;
@include for-phone-only {