Skip to content

Commit b541d9c

Browse files
authored
Do not fill child backgrounds in dark mode (#1768)
Small change which allows users to style the body background with dark mode enabled, without having to style the child elements (a, h1) as well.
1 parent 7ebbcfe commit b541d9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wm_strings_en.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ const char HTTP_STYLE[] PROGMEM = "<style>"
112112
"button.D{background-color:#dc3630}"
113113
"button:active{opacity:50% !important;cursor:wait;transition-delay: 0s}"
114114
// invert
115-
"body.invert,body.invert a,body.invert h1 {background-color:#060606;color:#fff;}"
115+
"body.invert{background-color:#060606;}"
116+
"body.invert,body.invert a,body.invert h1 {color:#fff;}"
116117
"body.invert .msg{color:#fff;background-color:#282828;border-top:1px solid #555;border-right:1px solid #555;border-bottom:1px solid #555;}"
117118
"body.invert .q[role=img]{-webkit-filter:invert(1);filter:invert(1);}"
118119
":disabled {opacity: 0.5;}"

0 commit comments

Comments
 (0)