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

+43 -42
View File
@@ -17,49 +17,49 @@
@-moz-document domain("modrinth.com") {
.light-mode {
#catppuccin(@lightFlavor, @accentColor);
#catppuccin(@lightFlavor);
}
.dark-mode,
.oled-mode {
#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];
@shadow: if(@lookup = latte, #dbdfef, #010409);
@shadow: if(@flavor = latte, #dbdfef, #010409);
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,
@@ -68,6 +68,7 @@
color: @subtext0 !important;
}
}
* {
--text-color: @text;
--color-base: @text;
@@ -76,7 +77,7 @@
--color-ad-raised: @surface2;
--color-ad: @surface1;
--color-ad-highlight: @teal;
--color-brand: @accent-color;
--color-brand: @accent;
--color-brand-green: @green;
--color-button-bg-active: @overlay0;
--color-button-bg-hover: @surface1;
@@ -110,7 +111,7 @@
--color-table-border: @overlay0;
--color-contrast: @text;
--color-accent-contrast: @mantle;
--color-brand-shadow: @accent-color;
--color-brand-shadow: @accent;
--color-warning-banner-side: @red;
--color-warning-banner-bg: fade(@red, 10%);
--color-warning-banner-text: @text;
@@ -131,8 +132,8 @@
--color-button-border: fade(@crust, 20%);
--color-tooltip-bg: @surface1;
--color-tooltip-text: @subtext1;
--landing-green-label: @accent-color;
--landing-green-label-bg: fade(@accent-color, 10%);
--landing-green-label: @accent;
--landing-green-label-bg: fade(@accent, 10%);
--landing-blue-label: @blue;
--landing-color-heading: @text;
--landing-color-subheading: @subtext0;
@@ -149,12 +150,12 @@
.blob-demonstration::after {
background: linear-gradient(
0deg,
fade(@accent-color, 20%),
fade(@accent, 20%),
fade(@base, 10%)
) !important;
}
.logo-banner path {
fill: @accent-color !important;
fill: @accent !important;
}
.logo-banner > svg > g > rect {
display: none;
@@ -163,12 +164,12 @@
[tabindex="0"]:focus-visible,
a:focus-visible,
button:focus-visible {
outline-color: @accent-color;
outline-color: @accent;
}
.BDVE3s9MFQttmbMUeYup-2 a b,
.BDVE3s9MFQttmbMUeYup-2 a strong {
color: @accent-color;
color: @accent;
}
// dropdown icon
@@ -184,7 +185,7 @@
}
}
.nuxt-loading-indicator {
background: @accent-color !important;
background: @accent !important;
}
}
}