aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/scss/_functions.scss
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-09-23 08:33:36 +0000
committerMario <mario@mariovavti.com>2021-09-23 08:33:36 +0000
commita451449766d581978068a5b8f8c1e27f50386ea7 (patch)
tree17388d0d116d3c3a3e14745397b5b3278e933d74 /vendor/twbs/bootstrap/scss/_functions.scss
parent3347fab105a01f38800a907e7d6281d835a29f5c (diff)
downloadvolse-hubzilla-a451449766d581978068a5b8f8c1e27f50386ea7.tar.gz
volse-hubzilla-a451449766d581978068a5b8f8c1e27f50386ea7.tar.bz2
volse-hubzilla-a451449766d581978068a5b8f8c1e27f50386ea7.zip
Revert "composer update bootstrap to version 5.1.1"
This reverts commit 89e4006b2d84d398e34d407a019854823b1dd37d.
Diffstat (limited to 'vendor/twbs/bootstrap/scss/_functions.scss')
-rw-r--r--vendor/twbs/bootstrap/scss/_functions.scss63
1 files changed, 12 insertions, 51 deletions
diff --git a/vendor/twbs/bootstrap/scss/_functions.scss b/vendor/twbs/bootstrap/scss/_functions.scss
index 30539b393..870f36790 100644
--- a/vendor/twbs/bootstrap/scss/_functions.scss
+++ b/vendor/twbs/bootstrap/scss/_functions.scss
@@ -32,47 +32,6 @@
}
}
-// Colors
-@function to-rgb($value) {
- @return red($value), green($value), blue($value);
-}
-
-// stylelint-disable scss/dollar-variable-pattern
-@function rgba-css-var($identifier, $target) {
- @if $identifier == "body" and $target == "bg" {
- @return rgba(var(--#{$variable-prefix}#{$identifier}-bg-rgb), var(--#{$variable-prefix}#{$target}-opacity));
- } @if $identifier == "body" and $target == "text" {
- @return rgba(var(--#{$variable-prefix}#{$identifier}-color-rgb), var(--#{$variable-prefix}#{$target}-opacity));
- } @else {
- @return rgba(var(--#{$variable-prefix}#{$identifier}-rgb), var(--#{$variable-prefix}#{$target}-opacity));
- }
-}
-
-@function map-loop($map, $func, $args...) {
- $_map: ();
-
- @each $key, $value in $map {
- // allow to pass the $key and $value of the map as an function argument
- $_args: ();
- @each $arg in $args {
- $_args: append($_args, if($arg == "$key", $key, if($arg == "$value", $value, $arg)));
- }
-
- $_map: map-merge($_map, ($key: call(get-function($func), $_args...)));
- }
-
- @return $_map;
-}
-// stylelint-enable scss/dollar-variable-pattern
-
-@function varify($list) {
- $result: null;
- @each $entry in $list {
- $result: append($result, var(--#{$variable-prefix}#{$entry}), space);
- }
- @return $result;
-}
-
// Internal Bootstrap function to turn maps into its negative variant.
// It prefixes the keys with `n` and makes the value negative.
@function negativify-map($map) {
@@ -96,16 +55,6 @@
@return $result;
}
-// Merge multiple maps
-@function map-merge-multiple($maps...) {
- $merged-maps: ();
-
- @each $map in $maps {
- $merged-maps: map-merge($merged-maps, $map);
- }
- @return $merged-maps;
-}
-
// Replace `$search` with `$replace` in `$string`
// Used on our SVG icon backgrounds for custom forms.
//
@@ -232,6 +181,14 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
@return $value1 + $value2;
}
+ @if type-of($value1) != number {
+ $value1: unquote("(") + $value1 + unquote(")");
+ }
+
+ @if type-of($value2) != number {
+ $value2: unquote("(") + $value2 + unquote(")");
+ }
+
@return if($return-calc == true, calc(#{$value1} + #{$value2}), $value1 + unquote(" + ") + $value2);
}
@@ -252,6 +209,10 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
@return $value1 - $value2;
}
+ @if type-of($value1) != number {
+ $value1: unquote("(") + $value1 + unquote(")");
+ }
+
@if type-of($value2) != number {
$value2: unquote("(") + $value2 + unquote(")");
}