mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-13 16:04:05 +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
|
||||
@import "/node_modules/bulma-prefers-dark/build/bulma-prefers-dark.sass";
|
||||
|
||||
.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%);
|
||||
@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: $background-dark;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Support for copy code button */
|
||||
.code-block>button {
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user