Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vantagedesign/ace-documentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/bootstrap/mixins/_box-shadow.scss')
-rw-r--r--assets/css/bootstrap/mixins/_box-shadow.scss20
1 files changed, 20 insertions, 0 deletions
diff --git a/assets/css/bootstrap/mixins/_box-shadow.scss b/assets/css/bootstrap/mixins/_box-shadow.scss
new file mode 100644
index 0000000..0726d43
--- /dev/null
+++ b/assets/css/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;
+ }
+ }
+}