From 9ccf652c00457e46eaf46fc4cb8f6d0ee582c5ef Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 1 Oct 2021 14:32:43 +0200 Subject: Initial commit --- .../assets/scss/bootstrap/mixins/_box-shadow.scss | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 themes/hugo-whisper-theme/assets/scss/bootstrap/mixins/_box-shadow.scss (limited to 'themes/hugo-whisper-theme/assets/scss/bootstrap/mixins/_box-shadow.scss') diff --git a/themes/hugo-whisper-theme/assets/scss/bootstrap/mixins/_box-shadow.scss b/themes/hugo-whisper-theme/assets/scss/bootstrap/mixins/_box-shadow.scss new file mode 100755 index 0000000..0726d43 --- /dev/null +++ b/themes/hugo-whisper-theme/assets/scss/bootstrap/mixins/_box-shadow.scss @@ -0,0 +1,20 @@ +@mixin box-shadow($shadow...) { + @if $enable-shadows { + $result: (); + + @if (length($shadow) == 1) { + // We can pass `@include box-shadow(none);` + $result: $shadow; + } @else { + // Filter to avoid invalid properties for example `box-shadow: none, 1px 1px black;` + @for $i from 1 through length($shadow) { + @if nth($shadow, $i) != "none" { + $result: append($result, nth($shadow, $i), "comma"); + } + } + } + @if (length($result) > 0) { + box-shadow: $result; + } + } +} -- cgit v1.2.3