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

+57 -57
View File
@@ -17,45 +17,45 @@
@-moz-document domain("namemc.com") {
:root[data-bs-theme="dark"] {
#catppuccin(@darkFlavor, @accentColor);
#catppuccin(@darkFlavor);
}
:root[data-bs-theme="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];
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,
@@ -119,8 +119,8 @@
--bs-tertiary-bg-rgb: #rgbify(@base)[];
--bs-secondary-text-emphasis: @subtext0;
--bs-success-text-emphasis: @green;
--bs-primary: @accent-color;
--bs-primary-rgb: #rgbify(@accent-color)[];
--bs-primary: @accent;
--bs-primary-rgb: #rgbify(@accent)[];
--bs-secondary: @subtext0;
--bs-secondary-rgb: #rgbify(@subtext0)[];
--bs-success: @green;
@@ -146,18 +146,18 @@
--bs-info-border-subtle: @sky;
--bs-warning-border-subtle: @yellow;
--bs-danger-border-subtle: @red;
--bs-link-color: @accent-color;
--bs-link-color-rgb: #rgbify(@accent-color)[];
--bs-code-color: @accent-color;
--bs-link-color: @accent;
--bs-link-color-rgb: #rgbify(@accent)[];
--bs-code-color: @accent;
--bs-highlight-bg: @base;
--bs-form-valid-color: @green;
--bs-focus-ring-color: @accent-color;
--bs-focus-ring-color: @accent;
--bs-form-valid-border-color: @green;
--bs-form-invalid-color: @red;
--bs-form-invalid-border-color: @red;
.btn-primary {
#bsButton(@crust, @accent-color);
#bsButton(@crust, @accent);
}
.btn-secondary {
#bsButton(@text, @overlay0);
@@ -182,7 +182,7 @@
}
.btn-outline-primary {
#bsButtonOutline(@accent-color, @text);
#bsButtonOutline(@accent, @text);
}
.btn-outline-secondary {
#bsButtonOutline(@overlay0, @text);
@@ -229,7 +229,7 @@
background-color: @surface0 !important;
&:focus {
border-color: @accent-color;
border-color: @accent;
box-shadow: none;
}
}
@@ -268,12 +268,12 @@
color: @text;
&:hover {
color: @accent-color !important;
color: @accent !important;
}
}
strong a {
color: @accent-color !important;
color: @accent !important;
}
}
@@ -293,7 +293,7 @@
color: @text !important;
}
.nav-link.active {
background-color: @accent-color !important;
background-color: @accent !important;
color: @crust !important;
}
}
@@ -304,26 +304,26 @@
color: @text;
&.active {
background-color: @accent-color !important;
background-color: @accent !important;
}
&:focus,
&:hover {
box-shadow: none !important;
color: @accent-color !important;
color: @accent !important;
}
}
.page-item.active .page-link {
background-color: @accent-color !important;
border-color: @accent-color !important;
background-color: @accent !important;
border-color: @accent !important;
color: @crust !important;
}
/* single skin page */
a.badge,
span.badge {
background-color: @accent-color !important;
background-color: @accent !important;
color: @crust !important;
}
@@ -353,8 +353,8 @@
color: @subtext1 !important;
&:focus {
border-color: @accent-color !important;
box-shadow: 0 0 0 0.25rem fade(@accent-color, 25%);
border-color: @accent !important;
box-shadow: 0 0 0 0.25rem fade(@accent, 25%);
}
}
@@ -411,7 +411,7 @@
}
.card.mb-3 .card-header a {
color: @accent-color !important;
color: @accent !important;
}
.skin-button-selected {
@@ -431,7 +431,7 @@
background-color: @base !important;
&:focus {
border-color: @accent-color !important;
border-color: @accent !important;
box-shadow: none !important;
}
}
@@ -476,7 +476,7 @@
}
}
& when (@lookup = latte) {
& when (@flavor = latte) {
--bs-black: @text;
--bs-black-rgb: #rgbify(@text)[];
--bs-white: @crust;
@@ -505,8 +505,8 @@
--bs-primary-border-subtle: @surface2;
--bs-light-border-subtle: @mantle;
--bs-dark-border-subtle: @surface2;
--bs-link-hover-color: @accent-color;
--bs-link-hover-color-rgb: #rgbify(@accent-color)[];
--bs-link-hover-color: @accent;
--bs-link-hover-color-rgb: #rgbify(@accent)[];
--bs-border-color: @crust;
.mc-black {
@@ -524,7 +524,7 @@
}
}
& when not(@lookup = latte) {
& when not(@flavor = latte) {
--bs-black: @crust;
--bs-white: @text;
--bs-gray: @overlay2;