mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Make modal BG color work in both light and dark mode
This commit is contained in:
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user