Fix the appearance of code boxes using the dark color scheme
authorAlexander Ebert <ebert@woltlab.com>
Mon, 15 May 2023 11:23:51 +0000 (13:23 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 15 May 2023 11:23:51 +0000 (13:23 +0200)
Fixes #5502

wcfsetup/install/files/style/ui/ckeditor.scss

index 6ffd7613ef5b63981ff612a0b71f1731209d40b3..c7480f901877847a843d8810256b495c08e61f55 100644 (file)
@@ -204,6 +204,12 @@ html[data-color-scheme="dark"] {
        .ck.ck-balloon-panel {
                border-color: var(--wcfDropdownBorderInner);
        }
+
+       .ck.ck-content pre {
+               background-color: var(--wcfContentBackground);
+               border-color: var(--wcfContentBorderInner);
+               color: var(--wcfContentText);
+       }
 }
 
 /* Dialog overlay to restore a draft */