Add important elevations

This commit is contained in:
Fabian
2019-07-29 16:10:07 +02:00
parent fa0f13bf0f
commit b5b7285e38
3 changed files with 36 additions and 14 deletions

View File

@ -4,8 +4,15 @@ $background: #000000;
$on-background: white;
$disabled-brightness: 1.1;
@mixin Elevation ($dp) {
background: lighten($background, 10% + floor($dp * .7%));
@mixin Elevation ($dp, $imp:false) {
@if $imp==true {
background: lighten($background, 10% + floor($dp * .7%)) !important;
}
@else {
background: lighten($background, 10% + floor($dp * .7%));
}
z-index: $dp;
}