refactor(tree-wide): misc improvements (#1547)
This commit is contained in:
1 parent
3e6ecfbf86
commit
6121f23d7c
126 files changed
+8047
-8021
No files matched your search
@@ -30,55 +30,53 @@
|
||||
body:not(.theme-highcontrast, .theme-dark).unified-theme {
|
||||
&,
|
||||
.themed {
|
||||
#catppuccin(@lightFlavor, @accentColor);
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
}
|
||||
body:not(.theme-highcontrast).unified-theme.theme-dark {
|
||||
&,
|
||||
.themed {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
body:not(.theme-highcontrast).unified-theme.theme-system {
|
||||
#catppuccin(@lightFlavor, @accentColor);
|
||||
body:not(.theme-highcontrast).unified-theme.theme-system {
|
||||
@media (prefers-color-scheme: light) {
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body:not(.theme-highcontrast).unified-theme.theme-system {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#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];
|
||||
|
||||
--ctp-rosewater: @rosewater;
|
||||
--ctp-flamingo: @flamingo;
|
||||
@@ -107,10 +105,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,
|
||||
@@ -132,41 +130,41 @@
|
||||
--theme-topbar-item-color: @text;
|
||||
--theme-topbar-item-color-hover: @text;
|
||||
--theme-topbar-item-background-hover: @surface0;
|
||||
--theme-button-primary-background-color: @accent-color;
|
||||
--theme-button-primary-hover-background-color: darken(@accent-color, 5%);
|
||||
--theme-button-primary-background-color: @accent;
|
||||
--theme-button-primary-hover-background-color: darken(@accent, 5%);
|
||||
--theme-button-primary-active-background-color: @text;
|
||||
--theme-link-color: @accent-color;
|
||||
--theme-link-color-hover: darken(@accent-color, 5%);
|
||||
--theme-link-color: @accent;
|
||||
--theme-link-color-hover: darken(@accent, 5%);
|
||||
--theme-footer-title-color: @text;
|
||||
--theme-footer-text-color: @subtext0;
|
||||
--theme-footer-link-color: @subtext0;
|
||||
--theme-footer-link-color-hover: @subtext1;
|
||||
--theme-footer-background-color: @mantle;
|
||||
--theme-header-background-color: transparent;
|
||||
--theme-tag-background-color: @accent-color;
|
||||
--theme-tag-border-color: @accent-color;
|
||||
--theme-tag-background-color: @accent;
|
||||
--theme-tag-border-color: @accent;
|
||||
--theme-tag-color: @mantle;
|
||||
--theme-tag-hover-background-color: darken(@accent-color, 5%);
|
||||
--theme-tag-hover-border-color: darken(@accent-color, 5%);
|
||||
--theme-tag-hover-background-color: darken(@accent, 5%);
|
||||
--theme-tag-hover-border-color: darken(@accent, 5%);
|
||||
--theme-tag-hover-color: @mantle;
|
||||
--theme-post-title-color: @accent-color;
|
||||
--theme-post-title-color-hover: darken(@accent-color, 5%);
|
||||
--theme-post-title-color: @accent;
|
||||
--theme-post-title-color-hover: darken(@accent, 5%);
|
||||
|
||||
--highlight-bg: @mantle;
|
||||
|
||||
--theme-primary: @accent-color;
|
||||
--theme-primary-100: fade(@accent-color, 20%);
|
||||
--theme-primary-200: fade(@accent-color, 30%);
|
||||
--theme-primary-500: fade(@accent-color, 90%);
|
||||
--theme-primary-600: @accent-color;
|
||||
--theme-primary: @accent;
|
||||
--theme-primary-100: fade(@accent, 20%);
|
||||
--theme-primary-200: fade(@accent, 30%);
|
||||
--theme-primary-500: fade(@accent, 90%);
|
||||
--theme-primary-600: @accent;
|
||||
|
||||
--translucent-secondary: fade(@accent-color, 10%);
|
||||
--theme-secondary-100: fade(@accent-color, 20%);
|
||||
--theme-secondary-200: fade(@accent-color, 30%);
|
||||
--theme-secondary-300: fade(@accent-color, 40%);
|
||||
--theme-secondary-400: fade(@accent-color, 50%);
|
||||
--theme-secondary-500: fade(@accent-color, 60%);
|
||||
--theme-secondary-600: fade(@accent-color, 70%);
|
||||
--translucent-secondary: fade(@accent, 10%);
|
||||
--theme-secondary-100: fade(@accent, 20%);
|
||||
--theme-secondary-200: fade(@accent, 30%);
|
||||
--theme-secondary-300: fade(@accent, 40%);
|
||||
--theme-secondary-400: fade(@accent, 50%);
|
||||
--theme-secondary-500: fade(@accent, 60%);
|
||||
--theme-secondary-600: fade(@accent, 70%);
|
||||
|
||||
--white: @mantle;
|
||||
--black: @text;
|
||||
@@ -329,14 +327,14 @@
|
||||
|
||||
#onetrust-accept-btn-handler,
|
||||
#onetrust-reject-all-handler {
|
||||
background-color: @accent-color;
|
||||
background-color: @accent;
|
||||
color: @crust;
|
||||
}
|
||||
|
||||
#onetrust-button-group button#onetrust-pc-btn-handler {
|
||||
background-color: @crust !important;
|
||||
border-color: @accent-color !important;
|
||||
color: @accent-color !important;
|
||||
border-color: @accent !important;
|
||||
color: @accent !important;
|
||||
}
|
||||
|
||||
#onetrust-policy-title,
|
||||
@@ -407,8 +405,8 @@
|
||||
.ot-link-btn
|
||||
),
|
||||
.ot-leg-btn-container .ot-active-leg-btn {
|
||||
background-color: @accent-color !important;
|
||||
border-color: @accent-color;
|
||||
background-color: @accent !important;
|
||||
border-color: @accent;
|
||||
color: @mantle;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user