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

+50 -50
View File
@@ -18,53 +18,53 @@
@-moz-document domain("lichess.org") {
:root:has(body[data-theme="light"]) {
#catppuccin(@lightFlavor, @accentColor);
#catppuccin(@lightFlavor);
}
:root:has(body[data-theme="dark"]) {
#catppuccin(@darkFlavor, @accentColor);
#catppuccin(@darkFlavor);
}
:root:has(body[data-theme="system"]) {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor, @accentColor);
#catppuccin(@lightFlavor);
}
@media (prefers-color-scheme: dark) {
#catppuccin(@darkFlavor, @accentColor);
#catppuccin(@darkFlavor);
}
}
#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];
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,
@@ -74,7 +74,7 @@
}
}
html,
&,
body {
background: @base linear-gradient(to bottom, @crust, @base 116px)
no-repeat;
@@ -83,7 +83,7 @@
/* Button */
.site-title a {
color: @accent-color;
color: @accent;
}
.site-title span {
color: @text;
@@ -94,7 +94,7 @@
background-color: fade(@overlay0, 50%);
}
.hooks__list tr.join:hover td {
background-color: fade(@accent-color, 50%);
background-color: fade(@accent, 50%);
}
/* Topbar */
@@ -125,7 +125,7 @@
#topnav.hover section:hover > a,
#topnav section:active > a,
#topnav div {
border-left-color: @accent-color;
border-left-color: @accent;
}
signal > i {
background-color: @green;
@@ -209,7 +209,7 @@
a:hover,
a:active,
a:focus {
color: @accent-color;
color: @accent;
}
/* Homepage cards */
@@ -221,7 +221,7 @@
background: fade(@crust, 20%);
border-color: @surface0;
&:hover {
background-color: fade(@accent-color, 20%);
background-color: fade(@accent, 20%);
}
}
.hook__filters {
@@ -386,15 +386,15 @@
}
square.move-dest {
background: radial-gradient(
fade(@accent-color, 50%) 19%,
fade(@accent, 50%) 19%,
rgba(0, 0, 0, 0) 20%
);
}
square.selected {
background: fade(@accent-color, 50%);
background: fade(@accent, 50%);
}
square.last-move {
background: fade(@accent-color, 40%);
background: fade(@accent, 40%);
}
.rclock .time {
background: @mantle;
@@ -404,7 +404,7 @@
background: #384722; /* putting it back to default so that the time on the clock is readable */
}
.rclock .bar {
background: @accent-color;
background: @accent;
}
/* Game Cards */
@@ -513,13 +513,13 @@
background: @mantle;
}
.ceval .settings-gear.active {
background-color: @accent-color;
background-color: @accent;
}
#ceval-settings {
border-top-color: @accent-color;
border-top-color: @accent;
}
.mchat__tab:hover {
background: fade(@accent-color, 50%);
background: fade(@accent, 50%);
}
/* Openings */
.opening__config,
@@ -530,13 +530,13 @@
outline-color: @base;
}
.opening__next:hover {
outline-color: @accent-color;
outline-color: @accent;
}
.opening__next__popularity span {
background: @accent-color;
background: @accent;
}
.opening__next__title {
color: @accent-color;
color: @accent;
}
/* Puzzles */