Fix the poll bar colors in dark mode
authorAlexander Ebert <ebert@woltlab.com>
Fri, 28 Apr 2023 14:46:21 +0000 (16:46 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 28 Apr 2023 14:46:21 +0000 (16:46 +0200)
Fixes #5432

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

index e5f48b7a920fe2782bd87058c58b92fbf0232702..d3a9292899a0168f300b6f2929341a149a4b27f6 100644 (file)
@@ -70,7 +70,7 @@
                        }
 
                        > .pollOptionRelativeValue {
-                               color: rgb(125, 130, 135);
+                               color: var(--wcfContentDimmedText);
                                flex: 0 0 50px;
                                text-align: right;
                        }
                        background-color: var(--wcfContentBorderInner);
                        height: 5px;
                        margin-top: 5px;
-
-                       > .pollMeterValue {
-                               background-color: var(--wcfContentBorder);
-                               height: 100%;
-                       }
                }
        }
 }
+
+.pollMeterValue {
+       background-color: var(--wcfContentBorder);
+       height: 100%;
+}
+
+html[data-color-scheme="dark"] .pollMeterValue {
+       background-color: rgb(255 255 255 / 34%);
+}