Skip to content

Commit f397e58

Browse files
authored
fix(go.dev): adjust dark/light application selectors (catppuccin#1035)
1 parent 17cf764 commit f397e58

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

styles/go.dev/catppuccin.user.css

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@name go.dev Catppuccin
33
@namespace github.com/catppuccin/userstyles/styles/go.dev
44
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/go.dev
5-
@version 0.0.1
5+
@version 0.0.2
66
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/go.dev/catppuccin.user.css
77
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Ago.dev
88
@description Soothing pastel theme for go.dev
@@ -17,12 +17,14 @@
1717

1818
@-moz-document domain('go.dev') {
1919
@media (prefers-color-scheme: light) {
20-
:root[data-theme="auto"] {
20+
:root[data-theme="auto"],
21+
:root:not([data-theme]) {
2122
#catppuccin(@lightFlavor, @accentColor);
2223
}
2324
}
2425
@media (prefers-color-scheme: dark) {
25-
:root[data-theme="auto"] {
26+
:root[data-theme="auto"],
27+
:root:not([data-theme]) {
2628
#catppuccin(@darkFlavor, @accentColor);
2729
}
2830
}
@@ -377,12 +379,14 @@
377379

378380
@-moz-document domain('pkg.go.dev') {
379381
@media (prefers-color-scheme: light) {
380-
:root[data-theme="auto"] {
382+
:root[data-theme="auto"],
383+
:root:not([data-theme]) {
381384
#catppuccin(@lightFlavor, @accentColor);
382385
}
383386
}
384387
@media (prefers-color-scheme: dark) {
385-
:root[data-theme="auto"] {
388+
:root[data-theme="auto"],
389+
:root:not([data-theme]) {
386390
#catppuccin(@darkFlavor, @accentColor);
387391
}
388392
}
@@ -689,12 +693,14 @@
689693
@-moz-document url-prefix("https://go.dev/tour")
690694
{
691695
@media (prefers-color-scheme: light) {
692-
:root[data-theme="auto"] {
696+
:root[data-theme="auto"],
697+
:root:not([data-theme]) {
693698
#catppuccin(@lightFlavor, @accentColor);
694699
}
695700
}
696701
@media (prefers-color-scheme: dark) {
697-
:root[data-theme="auto"] {
702+
:root[data-theme="auto"],
703+
:root:not([data-theme]) {
698704
#catppuccin(@darkFlavor, @accentColor);
699705
}
700706
}

0 commit comments

Comments
 (0)