Skip to content

Commit

Permalink
added more classes to elevation.scss for light theme
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielTerletzkiy committed Nov 24, 2021
1 parent bbfae7c commit 40f97d0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DEMO/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

<d-card elevation rounded="lg">
<d-card-title class="pa-0">
Avatars!
<d-icon name="user-circle" color="primary" size="30" class="ml-2"/>Avatars!
</d-card-title>

<div style="display: flex; gap: 8px">
Expand Down
18 changes: 16 additions & 2 deletions src/styles/directives/elevation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
}

@for $i from 1 through 24 {
$brightness: $i + 0.5%;
$darkness: $i + 0.5%;
.elevation-n#{$i} {
background-color: darken($dark_sheet, $brightness);
background-color: darken($dark_sheet, $darkness);
}
}

Expand All @@ -21,6 +21,20 @@
}

.theme--light {
@for $i from 1 through 24 {
$elevation: $i + 0.5px;
.elevation-#{$i} {
box-shadow: rgba(99, 99, 99, 0.2) 0 2px $elevation 1px;
}
}

@for $i from 1 through 24 {
$elevation: $i + 0.5px;
.elevation-n#{$i} {
box-shadow: inset rgba(99, 99, 99, 0.2) 0 2px $elevation 1px;
}
}

.elevation {
background-color: $light_sheet;
box-shadow: rgba(99, 99, 99, 0.2) 0 2px 8px 0;
Expand Down

0 comments on commit 40f97d0

Please sign in to comment.