mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-07-30 19:49:55 +02:00
- Updated frameworks for better browser support - Improved responsive design - Versioned documentation - Better social media support via the Jekyll SEO plugin - New looks, fwiw - Start page has some more relevant info - Documentation sorted to be more easily accessible - Internally upgraded from plain CSS to SASS
21 lines
532 B
SCSS
21 lines
532 B
SCSS
@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;
|
|
}
|
|
}
|
|
}
|