mirror of
https://github.com/twbs/bootstrap.git
synced 2025-10-01 07:46:47 +02:00
* Reorganize scss folder * Migrate to Sass modules * Migrate docs to Sass modules, comment out docs grid CSS * Give helpers folder an index.scss, migrate ratio helper to aspect-ratio utility * Delete node sass Action * Modify Sass tests to pass for new Sass modules implementation * Don't disallow calc() * Move heading classes back to Reboot to prevent a dependency * Utilities, some helpers, and theme colors * Temporary fix of docs compilation * Temporary Bundlewatch fix * docs fix import to use * Restyle docs callouts * Fix docs colors * Revert typo * Reintroduce `css-lint-vars` npm script * Bump to Sass v1.90.x * Fixes * more * Remove --------- Co-authored-by: Julien Déramond <juderamond@gmail.com>
27 lines
603 B
SCSS
27 lines
603 B
SCSS
@use "../config" as *;
|
|
|
|
@mixin box-shadow($shadow...) {
|
|
@if $enable-shadows {
|
|
$result: ();
|
|
$has-single-value: false;
|
|
$single-value: null;
|
|
|
|
@each $value in $shadow {
|
|
@if $value != null {
|
|
@if $value == none or $value == initial or $value == inherit or $value == unset {
|
|
$has-single-value: true;
|
|
$single-value: $value;
|
|
} @else {
|
|
$result: append($result, $value, "comma");
|
|
}
|
|
}
|
|
}
|
|
|
|
@if $has-single-value {
|
|
box-shadow: $single-value;
|
|
} @else if (length($result) > 0) {
|
|
box-shadow: $result;
|
|
}
|
|
}
|
|
}
|