refactor(tree-wide): misc improvements (#1547)

This commit is contained in:
uncenter authored and GitHub committed 2024-12-31 17:52:08 -05:00
1 parent 3e6ecfbf86
commit 6121f23d7c
126 files changed
+8047 -8021

No files matched your search

+48 -50
View File
@@ -22,52 +22,50 @@
background: none !important;
}
@media (prefers-color-scheme: light) {
:root[data-color-scheme="system"] {
#catppuccin(@lightFlavor, @accentColor);
:root[data-color-scheme="system"] {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor);
}
}
@media (prefers-color-scheme: dark) {
:root[data-color-scheme="system"] {
#catppuccin(@darkFlavor, @accentColor);
@media (prefers-color-scheme: dark) {
#catppuccin(@darkFlavor);
}
}
:root[data-color-scheme="dark"] {
#catppuccin(@darkFlavor, @accentColor);
#catppuccin(@darkFlavor);
}
:root[data-color-scheme="light"] {
#catppuccin(@lightFlavor, @accentColor);
#catppuccin(@lightFlavor);
}
#catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater];
@flamingo: @catppuccin[@@lookup][@flamingo];
@pink: @catppuccin[@@lookup][@pink];
@mauve: @catppuccin[@@lookup][@mauve];
@red: @catppuccin[@@lookup][@red];
@maroon: @catppuccin[@@lookup][@maroon];
@peach: @catppuccin[@@lookup][@peach];
@yellow: @catppuccin[@@lookup][@yellow];
@green: @catppuccin[@@lookup][@green];
@teal: @catppuccin[@@lookup][@teal];
@sky: @catppuccin[@@lookup][@sky];
@sapphire: @catppuccin[@@lookup][@sapphire];
@blue: @catppuccin[@@lookup][@blue];
@lavender: @catppuccin[@@lookup][@lavender];
@text: @catppuccin[@@lookup][@text];
@subtext1: @catppuccin[@@lookup][@subtext1];
@subtext0: @catppuccin[@@lookup][@subtext0];
@overlay2: @catppuccin[@@lookup][@overlay2];
@overlay1: @catppuccin[@@lookup][@overlay1];
@overlay0: @catppuccin[@@lookup][@overlay0];
@surface2: @catppuccin[@@lookup][@surface2];
@surface1: @catppuccin[@@lookup][@surface1];
@surface0: @catppuccin[@@lookup][@surface0];
@base: @catppuccin[@@lookup][@base];
@mantle: @catppuccin[@@lookup][@mantle];
@crust: @catppuccin[@@lookup][@crust];
@accent-color: @catppuccin[@@lookup][@@accent];
#catppuccin(@flavor) {
@rosewater: @catppuccin[@@flavor][@rosewater];
@flamingo: @catppuccin[@@flavor][@flamingo];
@pink: @catppuccin[@@flavor][@pink];
@mauve: @catppuccin[@@flavor][@mauve];
@red: @catppuccin[@@flavor][@red];
@maroon: @catppuccin[@@flavor][@maroon];
@peach: @catppuccin[@@flavor][@peach];
@yellow: @catppuccin[@@flavor][@yellow];
@green: @catppuccin[@@flavor][@green];
@teal: @catppuccin[@@flavor][@teal];
@sky: @catppuccin[@@flavor][@sky];
@sapphire: @catppuccin[@@flavor][@sapphire];
@blue: @catppuccin[@@flavor][@blue];
@lavender: @catppuccin[@@flavor][@lavender];
@text: @catppuccin[@@flavor][@text];
@subtext1: @catppuccin[@@flavor][@subtext1];
@subtext0: @catppuccin[@@flavor][@subtext0];
@overlay2: @catppuccin[@@flavor][@overlay2];
@overlay1: @catppuccin[@@flavor][@overlay1];
@overlay0: @catppuccin[@@flavor][@overlay0];
@surface2: @catppuccin[@@flavor][@surface2];
@surface1: @catppuccin[@@flavor][@surface1];
@surface0: @catppuccin[@@flavor][@surface0];
@base: @catppuccin[@@flavor][@base];
@mantle: @catppuccin[@@flavor][@mantle];
@crust: @catppuccin[@@flavor][@crust];
@accent: @catppuccin[@@flavor][@@accentColor];
--ctp-rosewater: @rosewater;
--ctp-flamingo: @flamingo;
@@ -96,10 +94,10 @@
--ctp-mantle: @mantle;
--ctp-crust: @crust;
color-scheme: if(@lookup = latte, light, dark);
color-scheme: if(@flavor = latte, light, dark);
::selection {
background-color: fade(@accent-color, 30%);
background-color: fade(@accent, 30%);
}
input,
@@ -121,8 +119,8 @@
--main-bg: @mantle;
--main-bg-dark: @base;
--gray-border: @surface0;
--link-color: @accent-color;
--link-hover-color: darken(@accent-color, 5%);
--link-color: @accent;
--link-hover-color: darken(@accent, 5%);
--footer-header-color: @text;
/* Main article/readme background */
@@ -159,8 +157,8 @@
/* Header search bar */
--csstools-light-dark-toggle--33: @crust;
--yellow500: @accent-color;
--yellow700: darken(@accent-color, 5%);
--yellow500: @accent;
--yellow700: darken(@accent, 5%);
/* Dropdown */
--csstools-light-dark-toggle--20: @mantle;
@@ -206,10 +204,10 @@
[fill="#B13B89"],
[fill="#B84D94"],
svg[class*="_download-icon"] {
fill: @accent-color !important;
fill: @accent !important;
}
[stroke="#B84D94"] {
stroke: @accent-color !important;
stroke: @accent !important;
}
/* Footer links */
@@ -219,10 +217,10 @@
}
a {
color: @accent-color;
color: @accent;
&:hover {
color: darken(@accent-color, 5%);
color: darken(@accent, 5%);
text-shadow: none;
}
}
@@ -243,17 +241,17 @@
/* Sort by search results */
._icon_xsqxju {
color: @accent-color;
color: @accent;
}
/* Primary buttons */
[class*="_tan-button_"],
[class*="_yellow-button_"] {
color: @crust;
background: @accent-color;
background: @accent;
&:hover {
background-color: darken(@accent-color, 5%);
background-color: darken(@accent, 5%);
}
}