Skip to content

Commit

Permalink
fix: fix sass
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoRibeiro7 committed Oct 19, 2024
1 parent f85567c commit e8dbc59
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion _sass/minimal-mistakes/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ form {
}

p {
margin-bottom: (5px / 2);
margin-bottom: calc(5px / 2);
}

ul {
Expand Down
9 changes: 5 additions & 4 deletions _sass/minimal-mistakes/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@use 'sass:math';
@use "sass:color";
/* ==========================================================================
MIXINS
========================================================================== */
Expand Down Expand Up @@ -62,11 +63,11 @@
$color,
$threshold: $yiq-contrasted-threshold
) {
$red: red($color);
$green: green($color);
$blue: blue($color);
$red: color.channel($color, "red", $space: rgb);
$green: color.channel($color, "green", $space: rgb);
$blue: color.channel($color, "blue", $space: rgb);

$yiq: (($red*299)+($green*587)+($blue*114))/1000;
$yiq: calc((($red * 299) + ($green * 587) + ($blue * 114)) / 1000);

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

Expand Down
6 changes: 3 additions & 3 deletions _sass/minimal-mistakes/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ html {
background-color: $background-color;
font-size: 16px;

-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;

@include breakpoint($medium) {
font-size: 18px;
}
Expand All @@ -21,9 +24,6 @@ html {
@include breakpoint($x-large) {
font-size: 22px;
}

-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}

/* Remove margin */
Expand Down
6 changes: 3 additions & 3 deletions _sass/minimal-mistakes/vendor/breakpoint/_helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
$unit: unit($value);
@if $unit == 'px' {
@return $value / 16px * 1em;
@return calc($value / 16px) * 1em;
}
@else if $unit == '%' {
@return $value / 100% * 1em;
@return calc($value / 100%) * 1em;
}
@else if $unit == 'em' {
@return $value;
}
@else if $unit == 'pt' {
@return $value / 12pt * 1em;
@return calc($value / 12pt) * 1em;
}
@else {
@return $value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $mfp-include-iframe-type: true; // Enable Ifra
$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
10 changes: 8 additions & 2 deletions _sass/minimal-mistakes/vendor/susy/susy/_su-math.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,15 @@
$span-width: _su-sum($span, $gutters, $spread, $validate: false);

@if unitless($span-width) {
// Ensure $container-spread is a valid spread, likely sanitizing or adjusting its value.
$container-spread: su-valid-spread($container-spread);

// Calculate the container's width based on columns, gutters, and container spread.
// This is a custom function that you need to have defined elsewhere.
$container: _su-sum($columns, $gutters, $container-spread, $validate: false);
@return percentage($span-width / $container);

// Finally, calculate the percentage value of the span-width relative to the container.
@return calc($span-width / $container);
}

@return $span-width;
Expand Down Expand Up @@ -143,7 +149,7 @@
}

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


Expand Down

0 comments on commit e8dbc59

Please sign in to comment.