Skip to content

Commit ab13087

Browse files
committed
refactor: update elevation
1 parent 535f200 commit ab13087

File tree

7 files changed

+47
-3
lines changed

7 files changed

+47
-3
lines changed

scss/_card.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,3 +238,11 @@
238238
}
239239
}
240240
}
241+
242+
@if $enable-dark-mode and $enable-elevations {
243+
@include color-mode(dark) {
244+
.card:not([class*="border"]):not([class*="elevation-0"]) {
245+
background-color: color-mix(in srgb, var(--#{$prefix}card-bg) 98%, #fff);
246+
}
247+
}
248+
}

scss/_date-picker.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,11 @@
278278
}
279279
}
280280
}
281+
282+
@if $enable-dark-mode and $enable-elevations {
283+
@include color-mode(dark) {
284+
.date-picker-dropdown {
285+
background-color: color-mix(in srgb, var(--#{$prefix}date-picker-dropdown-bg) 96%, #fff);
286+
}
287+
}
288+
}

scss/_dropdown.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,11 @@
249249
--#{$prefix}dropdown-header-color: #{$dropdown-dark-header-color};
250250
// scss-docs-end dropdown-dark-css-vars
251251
}
252+
253+
@if $enable-dark-mode and $enable-elevations {
254+
@include color-mode(dark) {
255+
.dropdown-menu {
256+
background-color: color-mix(in srgb, var(--#{$prefix}dropdown-bg) 96%, #fff);
257+
}
258+
}
259+
}

scss/_time-picker.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,11 @@
288288
}
289289
}
290290
}
291+
292+
@if $enable-dark-mode and $enable-elevations {
293+
@include color-mode(dark) {
294+
.time-picker-dropdown {
295+
background-color: color-mix(in srgb, var(--#{$prefix}time-picker-dropdown-bg) 96%, #fff);
296+
}
297+
}
298+
}

scss/_variables-dark.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ $body-secondary-bg-dark: $gray-800-dark !default;
154154
$body-tertiary-color-dark: rgba($body-color-dark, .5) !default;
155155
$body-tertiary-bg-dark: mix($gray-800-dark, #181924, 50%) !default;
156156
$body-emphasis-color-dark: $white !default;
157-
$border-color-dark: $gray-800-dark !default;
158-
$border-color-translucent-dark: rgba($white, .1) !default;
157+
$border-color-dark: $gray-700-dark !default;
158+
$border-color-translucent-dark: rgba($white, .15) !default;
159159
$headings-color-dark: inherit !default;
160160
$link-color-dark: tint-color($primary, 40%) !default;
161161
$link-hover-color-dark: shift-color($link-color-dark, -$link-shade-percentage) !default;

scss/forms/_form-multi-select.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,3 +447,15 @@ select.form-multi-select {
447447
}
448448
}
449449
}
450+
451+
@if $enable-dark-mode and $enable-elevations {
452+
@include color-mode(dark) {
453+
.form-multi-select-dropdown {
454+
background-color: color-mix(in srgb, var(--#{$prefix}form-multi-select-dropdown-bg) 96%, #fff);
455+
}
456+
457+
.form-multi-select-option-with-checkbox::before {
458+
background-color: color-mix(in srgb, var(--#{$prefix}form-multi-select-option-indicator-bg) 96%, #fff);
459+
}
460+
}
461+
}

scss/mixins/_elevation.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
@if $exclude == null {
44
&:not([class*="border"]):not([class*="elevation-0"]) {
55
border: 0;
6+
box-shadow: map-get($elevations, $value);
67
}
7-
box-shadow: map-get($elevations, $value);
88
}
99
@else {
1010
$selector: ":not(.placeholder)";

0 commit comments

Comments
 (0)