blob: e28b9ca80ff3dd9848fad5e22a6deff7218087b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
@mixin box-shadow($level: default, $color: default) {
@if $color == default {
$color: #000;
}
@if $level == 0 {
box-shadow: none;
}
@if $level == 1 or $level == default {
box-shadow: 0 4px 8px rgba($color, .23), 0 1px 3px rgba($color, .08), 0 6px 12px rgba($color, .02);
}
@if $level == 2 {
box-shadow: 0 8px 16px rgba($color, .23), 0 2px 6px rgba($color, .08), 0 12px 24px rgba($color, .02);
}
}
.box-shadow-1 {
@include box-shadow();
}
.box-shadow-2 {
@include box-shadow(2);
}
|