fix: revert math.div SASS fallback
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
// Icons
|
||||
// ==========================================================================
|
||||
|
||||
@use 'sass:math';
|
||||
|
||||
// Base size icon styles
|
||||
.icon {
|
||||
fill: currentColor;
|
||||
@ -19,5 +21,5 @@ label svg {
|
||||
|
||||
a .icon,
|
||||
.btn .icon {
|
||||
margin-right: div($spacing-base, 2);
|
||||
margin-right: math.div($spacing-base, 4);
|
||||
}
|
||||
|
@ -2,6 +2,8 @@
|
||||
// Examples
|
||||
// ==========================================================================
|
||||
|
||||
@use 'sass:math';
|
||||
|
||||
// Example players
|
||||
.plyr {
|
||||
border-radius: $border-radius-large;
|
||||
@ -31,6 +33,6 @@
|
||||
color: $color-gray-500;
|
||||
|
||||
.icon {
|
||||
margin-right: div($spacing-base, 6);
|
||||
margin-right: math.div($spacing-base, 6);
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,8 @@
|
||||
// Core
|
||||
// ==========================================================================
|
||||
|
||||
@use 'sass:math';
|
||||
|
||||
html,
|
||||
body {
|
||||
display: flex;
|
||||
@ -46,7 +48,7 @@ aside {
|
||||
|
||||
.icon {
|
||||
fill: $color-twitter;
|
||||
margin-right: div($spacing-base, 2);
|
||||
margin-right: math.div($spacing-base, 2);
|
||||
}
|
||||
|
||||
p {
|
||||
|
@ -2,6 +2,8 @@
|
||||
// Mixins
|
||||
// ==========================================================================
|
||||
|
||||
@use 'sass:math';
|
||||
|
||||
// Convert a <button> into an <a>
|
||||
// ---------------------------------------
|
||||
@mixin cancel-button-styles() {
|
||||
@ -32,7 +34,7 @@
|
||||
// Leave <body> at 100%/16px
|
||||
// ---------------------------------------
|
||||
@function calculate-rem($size) {
|
||||
$rem: div($size, 16);
|
||||
$rem: math.div($size, 16);
|
||||
@return #{$rem}rem;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user