Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@use sass:math; error remove #4858

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
source "https://rubygems.org"
gemspec
group :jekyll_plugins do
gem "jekyll", ">= 4", "< 6.0"
gem "jekyll-paginate", "~> 1.1"
gem "jekyll-sitemap", "~> 1.3"
gem "jekyll-gist", "~> 1.5"
gem "jekyll-feed", "~> 0.1"
gem "jekyll-include-cache", "~> 0.1"
gem "faraday-retry", "~>2.0"
end
4 changes: 2 additions & 2 deletions _sass/minimal-mistakes/_forms.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ==========================================================================
Forms
========================================================================== */

@use "sass:math";
form {
margin: 0 0 5px 0;
padding: 1em;
Expand All @@ -25,7 +25,7 @@ form {
}

p {
margin-bottom: (5px / 2);
margin-bottom: math.div(5px, 2);
}

ul {
Expand Down
5 changes: 2 additions & 3 deletions _sass/minimal-mistakes/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ==========================================================================
MIXINS
========================================================================== */

@use "sass:math";
%tab-focus {
/* Default*/
outline: thin dotted $focus-color;
Expand Down Expand Up @@ -56,7 +56,6 @@
Compass YIQ Color Contrast
https://github.com/easy-designs/yiq-color-contrast
========================================================================== */

@function yiq-is-light(
$color,
$threshold: $yiq-contrasted-threshold
Expand All @@ -65,7 +64,7 @@
$green: green($color);
$blue: blue($color);

$yiq: (($red*299)+($green*587)+($blue*114))/1000;
$yiq: math.div((($red * 299) + ($green * 587) + ($blue * 114)), 1000);

@if $yiq-debug { @debug $yiq, $threshold; }

Expand Down
7 changes: 4 additions & 3 deletions _sass/minimal-mistakes/vendor/breakpoint/_helpers.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//////////////////////////////
// Converts the input value to Base EMs
//////////////////////////////
@use "sass:math";
@function breakpoint-to-base-em($value) {
$value-unit: unit($value);

Expand All @@ -25,16 +26,16 @@
$unit: unit($value);

@if $unit == 'px' {
@return $value / 16px * 1em;
@return math.div($value, 16px) * 1em;
}
@else if $unit == '%' {
@return $value / 100% * 1em;
@return math.div($value, 100%) * 1em;
}
@else if $unit == 'em' {
@return $value;
}
@else if $unit == 'pt' {
@return $value / 12pt * 1em;
@return math.div($value, 12pt) * 1em;
}
@else {
@return $value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Magnific Popup CSS */

@use "sass:math";
@import "settings";

////////////////////////
//
// Contents:
Expand Down Expand Up @@ -52,7 +51,7 @@ $mfp-include-iframe-type: true !default;
$mfp-iframe-padding-top: 40px !default;
$mfp-iframe-background: #000 !default;
$mfp-iframe-max-width: 900px !default;
$mfp-iframe-ratio: 9/16 !default;
$mfp-iframe-ratio: (9, 16) !default;

// Image-type options
$mfp-include-image-type: true !default;
Expand Down
3 changes: 2 additions & 1 deletion _sass/minimal-mistakes/vendor/magnific-popup/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ $mfp-controls-text-color-hover: #fff; // Hover color o
$mfp-IE7support: true; // Very basic IE7 support

// Iframe-type options
@use "sass:math";
$mfp-include-iframe-type: true; // Enable Iframe-type popups
$mfp-iframe-padding-top: 40px; // Iframe padding top
$mfp-iframe-background: #000; // Background color of iframes
$mfp-iframe-max-width: 900px; // Maximum width of iframes
$mfp-iframe-ratio: 9/16; // Ratio of iframe (9/16 = widescreen, 3/4 = standard, etc.)
$mfp-iframe-ratio: math.div(9, 16); // Ratio of iframe (9/16 = widescreen, 3/4 = standard, etc.)

// Image-type options
$mfp-include-image-type: true; // Enable Image-type popups
Expand Down
5 changes: 3 additions & 2 deletions _sass/minimal-mistakes/vendor/susy/susy/_su-math.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
///
/// @return {length} -
/// Relative or static length of a span on the grid
@use "sass:math";
@function su-span(
$span,
$columns,
Expand Down Expand Up @@ -90,7 +91,7 @@
@if unitless($span-width) {
$container-spread: su-valid-spread($container-spread);
$container: _su-sum($columns, $gutters, $container-spread, $validate: false);
@return percentage($span-width / $container);
@return percentage(math.div($span-width, $container));
}

@return $span-width;
Expand Down Expand Up @@ -141,7 +142,7 @@
}

$container: _su-sum($columns, $gutters, $container-spread);
@return percentage($gutters / $container);
@return percentage(math.div($gutters, $container));
}


Expand Down
Loading