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 -58
View File
@@ -17,46 +17,45 @@
@-moz-document domain("planetminecraft.com") {
[data-theme="light"] {
#catppuccin(@lightFlavor, @accentColor);
#catppuccin(@lightFlavor);
}
[data-theme="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,
@@ -73,10 +72,10 @@
--menu-bg: @surface0;
--menu-color: @subtext1;
--menu-selected-bg: @surface1;
--menu-selected-color: @accent-color;
--menu-selected-color: @accent;
--footer-bg: @mantle;
--bg-navbar: @mantle;
--tab-selected: @accent-color;
--tab-selected: @accent;
--input-bg: @surface0;
--dark-mid-bg: @base;
--title-color: @text;
@@ -84,13 +83,13 @@
--text-color-medium: @subtext0;
--text-color-light: @subtext1;
--border-color: @base;
--footer-a-color: @accent-color;
--nav-hover: @accent-color;
--footer-a-color: @accent;
--nav-hover: @accent;
--stat-color: @red;
--a-color: @accent-color;
--a-hover: @accent-color;
--a-selected: fade(@accent-color, 80%);
--tab-hover: fade(@accent-color, 80%);
--a-color: @accent;
--a-hover: @accent;
--a-selected: fade(@accent, 80%);
--tab-hover: fade(@accent, 80%);
--tab-color: @subtext0;
--nav-color: @text;
--widget-wrap-bg: @mantle;
@@ -107,23 +106,23 @@
--notice-bg: @overlay0;
--notice-color: @text;
--menu-disabled-color: @crust;
--control-bg: @accent-color;
--a-visited: @accent-color;
--control-bg: @accent;
--a-visited: @accent;
--nav-bar-border: none;
--feed-alt-bg: @surface1;
--nav-selected: @accent-color;
--nav-selected: @accent;
.tab_options > ul > li.currentpage,
.tab_options > ul > li.ui-state-active,
.tab_options > ul > li:hover {
border-bottom-color: @accent-color;
border-bottom-color: @accent;
}
.site_btn_secondary {
color: @subtext1;
background: @surface1;
&:hover {
color: @accent-color;
color: @accent;
background: fade(@surface1, 80%);
}
}
@@ -136,14 +135,14 @@
.vert_menu > ul > li:only-child > a.current_select,
.vert_menu > ul > li > a.current_select {
color: @base;
background: @accent-color;
background: @accent;
&:not(:disabled, [data-disabled="disabled"]):hover {
background: fade(@accent-color, 80%);
background: fade(@accent, 80%);
}
}
#profile-bar #profile-actions .togglable.selected {
background: @accent-color;
background: @accent;
color: @base;
}
@@ -152,7 +151,7 @@
}
/* because the icons on the display mode buttons are white, we cant have white base here, so we improvise for latte */
& when (@lookup = latte) {
& when (@flavor = latte) {
#display_modes a {
background: @text !important;
box-shadow: none !important;
@@ -184,7 +183,7 @@
}
color: @text !important;
background: @accent-color !important;
background: @accent !important;
}
.content-actions li .material-icons {
@@ -192,7 +191,7 @@
}
}
& when not(@lookup = latte) {
& when not(@flavor = latte) {
#display_modes a {
background: @base !important;
box-shadow: none !important;
@@ -201,7 +200,7 @@
#display_modes a.selected,
#display_modes a:hover {
background: @accent-color;
background: @accent;
}
.navigation-wrap .navmenu a {
@@ -310,7 +309,7 @@
}
#popular-reel .caption {
& when (@lookup = latte) {
& when (@flavor = latte) {
background: fade(@text, 50%) !important;
.pop-title {
@@ -324,7 +323,7 @@
}
}
& when not(@lookup = latte) {
& when not(@flavor = latte) {
background: fade(@base, 50%) !important;
.pop-title {
@@ -353,9 +352,9 @@
.content-actions li .link:hover,
.content-actions li a:hover {
.material-icons {
color: @accent-color !important;
color: @accent !important;
}
color: @accent-color !important;
color: @accent !important;
background: @surface1 !important;
}
@@ -374,7 +373,7 @@
input:focus,
select:focus,
textarea:focus {
border-color: @accent-color;
border-color: @accent;
}
}
}