Make modal BG color work in both light and dark mode
This commit is contained in:
parent
f2803b0ad4
commit
c8bcb39865
|
@ -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
|
||||
@import "/node_modules/bulma-prefers-dark/build/bulma-prefers-dark.sass";
|
||||
|
||||
.modal-card-body {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.modal-card-body {
|
||||
// remove this once https: //github.com/jloh/bulma-prefers-dark/pull/90 is merged and released
|
||||
background-color: hsl(0, 0%, 96%);
|
||||
background-color: $background-dark;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Support for copy code button */
|
||||
.code-block>button {
|
||||
position: absolute;
|
||||
|
|
Loading…
Reference in New Issue