fixed css

This commit is contained in:
2023-12-03 23:30:30 +01:00
parent f05c4517cd
commit d0ecf1aec4
10 changed files with 178 additions and 36 deletions

View File

@@ -1,6 +1,8 @@
//////////////////////////////
// Converts the input value to Base EMs
//////////////////////////////
@use "sass:math";
@function breakpoint-to-base-em($value) {
$value-unit: unit($value);
@@ -25,16 +27,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;

View File

@@ -1,6 +1,7 @@
////////////////////////
///////////////////////
// Settings //
////////////////////////
@use "sass:math";
// overlay
$mfp-overlay-color: #000; // Color of overlay screen
@@ -19,16 +20,16 @@ $mfp-controls-opacity: 1; // Opacity of
$mfp-controls-color: #fff; // Color of controls
$mfp-controls-border-color: #fff; // Border color of controls
$mfp-inner-close-icon-color: #fff; // Color of close button when inside
$mfp-controls-text-color: #ccc; // Color of preloader and "1 of X" indicator
$mfp-controls-text-color: #ccc; // Color of preloader and "1 of X" indicator
$mfp-controls-text-color-hover: #fff; // Hover color of preloader and "1 of X" indicator
$mfp-IE7support: true; // Very basic IE7 support
// Iframe-type options
$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-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

View File

@@ -23,7 +23,7 @@
/// @ignore _su-calc-sum
/// @ignore _su-needs-calc-output
@use "sass:math";
// Su Span
// -------
@@ -90,7 +90,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;
@@ -141,7 +141,7 @@
}
$container: _su-sum($columns, $gutters, $container-spread);
@return percentage($gutters / $container);
@return percentage(math.div($gutters, $container));
}