fix(nixos-search): align theme behavior with upstream manual toggle (#2247)
This commit is contained in:
1 parent
8d1229e046
commit
09ab0e0c9c
1 file changed
+9
-1
@@ -18,7 +18,7 @@
|
|||||||
@import "https://userstyles.catppuccin.com/lib/lib.less";
|
@import "https://userstyles.catppuccin.com/lib/lib.less";
|
||||||
|
|
||||||
@-moz-document domain("search.nixos.org") {
|
@-moz-document domain("search.nixos.org") {
|
||||||
:root {
|
:root:not([data-theme]) {
|
||||||
@media (prefers-color-scheme: light) {
|
@media (prefers-color-scheme: light) {
|
||||||
#catppuccin(@lightFlavor);
|
#catppuccin(@lightFlavor);
|
||||||
}
|
}
|
||||||
@@ -27,6 +27,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:root[data-theme="dark"] {
|
||||||
|
#catppuccin(@darkFlavor);
|
||||||
|
}
|
||||||
|
|
||||||
|
:root[data-theme="light"] {
|
||||||
|
#catppuccin(@lightFlavor);
|
||||||
|
}
|
||||||
|
|
||||||
#catppuccin(@flavor) {
|
#catppuccin(@flavor) {
|
||||||
#lib.palette();
|
#lib.palette();
|
||||||
#lib.defaults();
|
#lib.defaults();
|
||||||
|
|||||||
Reference in new issue
Block a user