File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -229,11 +229,12 @@ section > .button-group:last-child {
229229/* Magic */
230230: root : has (# theme-toggle : checked ) {
231231 color-scheme : dark;
232- background-color : var (--light -bg );
233- color : var (--light -text );
234- --inv-bg : var (--dark -bg );
235- --inv-text : var (--dark -text );
232+ background-color : var (--dark -bg );
233+ color : var (--dark -text );
234+ --inv-bg : var (--light -bg );
235+ --inv-text : var (--light -text );
236236}
237+
237238@media (prefers-color-scheme : dark) {
238239 : root {
239240 background-color : var (--dark-bg );
@@ -243,6 +244,10 @@ section > .button-group:last-child {
243244 }
244245 : root : has (# theme-toggle : checked ) {
245246 color-scheme : light;
247+ background-color : var (--light-bg );
248+ color : var (--light-text );
249+ --inv-bg : var (--dark-bg );
250+ --inv-text : var (--dark-text );
246251 }
247252}
248253
You can’t perform that action at this time.
0 commit comments