Skip to content

Commit dcf48c2

Browse files
committed
lux: set background color on modal in dark mode, #1336
1 parent c2aa934 commit dcf48c2

16 files changed

+68
-16
lines changed

dist/lux/_bootswatch.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,3 +293,12 @@ th {
293293
--bs-popover-border-width: 1px;
294294
}
295295
}
296+
297+
298+
@include color-mode(dark) {
299+
.modal-content,
300+
.popover,
301+
.toast {
302+
background-color: lighten($gray-900, 5%);
303+
}
304+
}

dist/lux/_variables.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,8 @@ $pagination-disabled-border-color: $pagination-border-color !default;
117117
// Popovers
118118

119119
$popover-header-bg: transparent !default;
120+
$popover-header-color: var(--bs-popover-header-color) !default;
121+
122+
// Toasts
123+
124+
$toast-header-background-color: transparent !default;

dist/lux/bootstrap.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5184,7 +5184,7 @@ textarea.form-control-lg {
51845184
--bs-toast-border-radius: var(--bs-border-radius);
51855185
--bs-toast-box-shadow: var(--bs-box-shadow);
51865186
--bs-toast-header-color: var(--bs-secondary-color);
5187-
--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), 0.85);
5187+
--bs-toast-header-bg: transparent;
51885188
--bs-toast-header-border-color: var(--bs-border-color-translucent);
51895189
width: var(--bs-toast-max-width);
51905190
max-width: 100%;
@@ -5609,7 +5609,7 @@ textarea.form-control-lg {
56095609
--bs-popover-header-padding-x: 1rem;
56105610
--bs-popover-header-padding-y: 0.5rem;
56115611
--bs-popover-header-font-size: 1rem;
5612-
--bs-popover-header-color: #1a1a1a;
5612+
--bs-popover-header-color: var(--bs-popover-header-color);
56135613
--bs-popover-header-bg: transparent;
56145614
--bs-popover-body-padding-x: 1rem;
56155615
--bs-popover-body-padding-y: 1rem;
@@ -12034,4 +12034,10 @@ th {
1203412034
}
1203512035
.popover .popover-arrow {
1203612036
--bs-popover-border-width: 1px;
12037+
}
12038+
12039+
[data-bs-theme=dark] .modal-content,
12040+
[data-bs-theme=dark] .popover,
12041+
[data-bs-theme=dark] .toast {
12042+
background-color: #272727;
1203712043
}

dist/lux/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/lux/bootstrap.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/lux/bootstrap.rtl.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5182,7 +5182,7 @@ textarea.form-control-lg {
51825182
--bs-toast-border-radius: var(--bs-border-radius);
51835183
--bs-toast-box-shadow: var(--bs-box-shadow);
51845184
--bs-toast-header-color: var(--bs-secondary-color);
5185-
--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), 0.85);
5185+
--bs-toast-header-bg: transparent;
51865186
--bs-toast-header-border-color: var(--bs-border-color-translucent);
51875187
width: var(--bs-toast-max-width);
51885188
max-width: 100%;
@@ -5599,7 +5599,7 @@ textarea.form-control-lg {
55995599
--bs-popover-header-padding-x: 1rem;
56005600
--bs-popover-header-padding-y: 0.5rem;
56015601
--bs-popover-header-font-size: 1rem;
5602-
--bs-popover-header-color: #1a1a1a;
5602+
--bs-popover-header-color: var(--bs-popover-header-color);
56035603
--bs-popover-header-bg: transparent;
56045604
--bs-popover-body-padding-x: 1rem;
56055605
--bs-popover-body-padding-y: 1rem;
@@ -12008,4 +12008,10 @@ th {
1200812008
}
1200912009
.popover .popover-arrow {
1201012010
--bs-popover-border-width: 1px;
12011+
}
12012+
12013+
[data-bs-theme=dark] .modal-content,
12014+
[data-bs-theme=dark] .popover,
12015+
[data-bs-theme=dark] .toast {
12016+
background-color: #272727;
1201112017
}

dist/lux/bootstrap.rtl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/lux/bootstrap.rtl.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/5/lux/_bootswatch.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,3 +293,12 @@ th {
293293
--bs-popover-border-width: 1px;
294294
}
295295
}
296+
297+
298+
@include color-mode(dark) {
299+
.modal-content,
300+
.popover,
301+
.toast {
302+
background-color: lighten($gray-900, 5%);
303+
}
304+
}

docs/5/lux/_variables.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,8 @@ $pagination-disabled-border-color: $pagination-border-color !default;
117117
// Popovers
118118

119119
$popover-header-bg: transparent !default;
120+
$popover-header-color: var(--bs-popover-header-color) !default;
121+
122+
// Toasts
123+
124+
$toast-header-background-color: transparent !default;

0 commit comments

Comments
 (0)