Make modal BG color work in both light and dark mode
This commit is contained in:
parent
f2803b0ad4
commit
c8bcb39865
10
src/app.scss
10
src/app.scss
|
@ -100,11 +100,15 @@ $modal-content-width: 1000px;
|
||||||
$modal-background-background-color-dark: rgba($dark, 0.86) !default; // remove this once a new version of bulma-prefers-dark is released
|
$modal-background-background-color-dark: rgba($dark, 0.86) !default; // remove this once a new version of bulma-prefers-dark is released
|
||||||
@import "/node_modules/bulma-prefers-dark/build/bulma-prefers-dark.sass";
|
@import "/node_modules/bulma-prefers-dark/build/bulma-prefers-dark.sass";
|
||||||
|
|
||||||
.modal-card-body {
|
@media (prefers-color-scheme: dark) {
|
||||||
// remove this once https: //github.com/jloh/bulma-prefers-dark/pull/90 is merged and released
|
.modal-card-body {
|
||||||
background-color: hsl(0, 0%, 96%);
|
// remove this once https: //github.com/jloh/bulma-prefers-dark/pull/90 is merged and released
|
||||||
|
background-color: $background-dark;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Support for copy code button */
|
/* Support for copy code button */
|
||||||
.code-block>button {
|
.code-block>button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Reference in New Issue