mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-30 05:24:09 +03:00
79 lines
2.4 KiB
SCSS
79 lines
2.4 KiB
SCSS
@mixin shadow-z-1() {
|
|
box-shadow: 0 1px 6px 0 rgba($black, 0.12),
|
|
0 1px 6px 0 rgba($black, 0.12);
|
|
}
|
|
|
|
@mixin shadow-z-1-hover() {
|
|
box-shadow: 0 5px 11px 0 rgba($black, 0.18),
|
|
0 4px 15px 0 rgba($black, 0.15);
|
|
}
|
|
|
|
@mixin shadow-z-2() {
|
|
box-shadow: 0 8px 17px 0 rgba($black, 0.2),
|
|
0 6px 20px 0 rgba($black, 0.19);
|
|
}
|
|
|
|
@mixin shadow-z-3() {
|
|
box-shadow: 0 12px 15px 0 rgba($black, 0.24),
|
|
0 17px 50px 0 rgba($black, 0.19);
|
|
}
|
|
|
|
@mixin shadow-z-4() {
|
|
box-shadow: 0 16px 28px 0 rgba($black, 0.22),
|
|
0 25px 55px 0 rgba($black, 0.21);
|
|
}
|
|
|
|
@mixin shadow-z-5() {
|
|
box-shadow: 0 27px 24px 0 rgba($black, 0.2),
|
|
0 40px 77px 0 rgba($black, 0.22);
|
|
}
|
|
|
|
// Shadows (from mdl http://www.getmdl.io/)
|
|
|
|
// Focus shadow mixin.
|
|
@mixin focus-shadow() {
|
|
box-shadow: 0 0 8px rgba($black, .18), 0 8px 16px rgba($black, .36);
|
|
}
|
|
|
|
@mixin shadow-2dp() {
|
|
box-shadow: 0 2px 2px 0 rgba($black, $mdb-shadow-key-penumbra-opacity),
|
|
0 3px 1px -2px rgba($black, $mdb-shadow-key-umbra-opacity),
|
|
0 1px 5px 0 rgba($black, $mdb-shadow-ambient-shadow-opacity);
|
|
}
|
|
|
|
@mixin shadow-3dp() {
|
|
box-shadow: 0 3px 4px 0 rgba($black, $mdb-shadow-key-penumbra-opacity),
|
|
0 3px 3px -2px rgba($black, $mdb-shadow-key-umbra-opacity),
|
|
0 1px 8px 0 rgba($black, $mdb-shadow-ambient-shadow-opacity);
|
|
}
|
|
|
|
@mixin shadow-4dp() {
|
|
box-shadow: 0 4px 5px 0 rgba($black, $mdb-shadow-key-penumbra-opacity),
|
|
0 1px 10px 0 rgba($black, $mdb-shadow-ambient-shadow-opacity),
|
|
0 2px 4px -1px rgba($black, $mdb-shadow-key-umbra-opacity);
|
|
}
|
|
|
|
@mixin shadow-6dp() {
|
|
box-shadow: 0 6px 10px 0 rgba($black, $mdb-shadow-key-penumbra-opacity),
|
|
0 1px 18px 0 rgba($black, $mdb-shadow-ambient-shadow-opacity),
|
|
0 3px 5px -1px rgba($black, $mdb-shadow-key-umbra-opacity);
|
|
}
|
|
|
|
@mixin shadow-8dp() {
|
|
box-shadow: 0 8px 10px 1px rgba($black, $mdb-shadow-key-penumbra-opacity),
|
|
0 3px 14px 2px rgba($black, $mdb-shadow-ambient-shadow-opacity),
|
|
0 5px 5px -3px rgba($black, $mdb-shadow-key-umbra-opacity);
|
|
}
|
|
|
|
@mixin shadow-16dp() {
|
|
box-shadow: 0 16px 24px 2px rgba($black, $mdb-shadow-key-penumbra-opacity),
|
|
0 6px 30px 5px rgba($black, $mdb-shadow-ambient-shadow-opacity),
|
|
0 8px 10px -5px rgba($black, $mdb-shadow-key-umbra-opacity);
|
|
}
|
|
|
|
@mixin shadow-24dp() {
|
|
box-shadow: 0 9px 46px 8px rgba($black, $mdb-shadow-key-penumbra-opacity),
|
|
0 11px 15px -7px rgba($black, $mdb-shadow-ambient-shadow-opacity),
|
|
0 24px 38px 3px rgba($black, $mdb-shadow-key-umbra-opacity);
|
|
}
|