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

+103 -105
View File
@@ -15,59 +15,57 @@
@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve*", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray"]
==/UserStyle== */
@-moz-document domain(duckduckgo.com) {
:root {
&:not(.dark-bg, .no-theme) {
#catppuccin(@lightFlavor, @accentColor);
}
@-moz-document domain("duckduckgo.com") {
:root:not(.dark-bg, .no-theme) {
#catppuccin(@lightFlavor);
}
&.dark-bg {
#catppuccin(@darkFlavor, @accentColor);
}
:root.dark-bg {
#catppuccin(@darkFlavor);
}
&.no-theme {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor, @accentColor);
}
@media (prefers-color-scheme: dark) {
#catppuccin(@darkFlavor, @accentColor);
}
:root.no-theme {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor);
}
@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];
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,
@@ -91,8 +89,8 @@
--theme-col-about-link: @blue;
--theme-col-border-ui: @surface1 !important;
--theme-col-bg-expandcollapse: @surface0 !important;
--sds-color-palette-gray-60: @accent-color !important;
--sds-color-text-accent-01: @accent-color !important;
--sds-color-palette-gray-60: @accent !important;
--sds-color-text-accent-01: @accent !important;
--theme-col-txt-msg: @text !important;
--theme-col-txt-url-path: @subtext0 !important;
--theme-col-border-expandcollapse: @surface1;
@@ -101,7 +99,7 @@
--theme-col-bg-page: @base !important;
--sds-color-text-01: @text !important;
--sds-color-text-on-color: @base !important;
--theme-spp-high-contrast-text-secondary: @accent-color !important;
--theme-spp-high-contrast-text-secondary: @accent !important;
--theme-spp-high-contrast-card-indicator-color: @surface0 !important;
--theme-spp-high-contrast-title-span-text: @text !important;
--theme-spp-high-contrast-bg: @surface0 !important;
@@ -113,7 +111,7 @@
--sds-color-text-03: @subtext0 !important;
--col-slate-light: @subtext0;
--col-silver-dark: @overlay1;
--theme-col-txt-button-secondary: @accent-color !important;
--theme-col-txt-button-secondary: @accent !important;
--theme-bg-legacy-home: @base !important;
--theme-bg-cta-cards: @surface0 !important;
--theme-button-primary-bg: @blue !important;
@@ -179,11 +177,11 @@
--sds-color-text-success: @green !important;
--sds-color-text-link-01: @blue !important;
--sds-color-background-container-01: @surface0 !important;
--sds-color-border-accent-01: @accent-color !important;
--sds-color-border-accent-01: @accent !important;
--theme-dc-color-container-message: @surface0 !important;
--sds-color-palette-gray-85: @surface1 !important;
--sds-color-palette-white: @crust !important;
--sds-color-background-accent-01: @accent-color !important;
--sds-color-background-accent-01: @accent !important;
--theme-col-txt-card-body-light: @text !important;
--theme-col-bg-page-alt-2: @surface0 !important;
--theme-col-bg-ui-active: @surface1 !important;
@@ -324,7 +322,7 @@
}
.calendar__today {
color: @mantle;
background-color: @accent-color;
background-color: @accent;
}
.zci.is-active {
@@ -360,7 +358,7 @@
}
.stocks-module__timePeriod.selected {
color: @mantle;
background-color: @accent-color;
background-color: @accent;
}
.ia-module--stocks.increase .color-coded {
color: @green !important;
@@ -443,7 +441,7 @@
border-color: @surface2;
}
.module__inner-toggle--chevron {
color: @accent-color !important;
color: @accent !important;
background-color: @surface1 !important;
border-color: @surface2;
}
@@ -551,7 +549,7 @@
}
.module--definitions__group ol li::before {
color: @accent-color !important;
color: @accent !important;
}
.module--definitions__usage {
@@ -563,10 +561,10 @@
}
.play-btn__icn_hollow {
fill: @accent-color !important;
fill: @accent !important;
}
.module__toggle {
color: @accent-color !important;
color: @accent !important;
}
// weather info box
@@ -588,7 +586,7 @@
}
.module__temperature-unit,
.module__temperature-unit:hover {
color: @accent-color !important;
color: @accent !important;
}
.module__detail__precip-label,
.module__items-precip-label,
@@ -607,7 +605,7 @@
border-color: @surface2 !important;
}
.module__weatherkit-logo {
fill: @accent-color;
fill: @accent;
}
.module__warnings,
.module__temperature-unit--on {
@@ -685,7 +683,7 @@
color: @subtext0 !important;
}
.tile__option--active {
color: @accent-color !important;
color: @accent !important;
}
.bg-delayed-color {
@@ -853,17 +851,17 @@
border-color: @surface2 !important;
}
.is-checked .frm__switch__label.btn {
background-color: @accent-color !important;
background-color: @accent !important;
color: @mantle !important;
}
.js-set-exit {
background-color: @accent-color !important;
border-color: @accent-color !important;
background-color: @accent !important;
border-color: @accent !important;
color: @base !important;
}
.js-set-exit:hover {
background-color: fade(@accent-color, 80%) !important;
border-color: fade(@accent-color, 80%) !important;
background-color: fade(@accent, 80%) !important;
border-color: fade(@accent, 80%) !important;
color: @base !important;
}
.set-bookmarklet__data {
@@ -915,7 +913,7 @@
#duckbar,
.zcm__link:not(.dropdown__button).is-active,
.set-main-footer {
border-color: @accent-color !important;
border-color: @accent !important;
}
#more-results {
@@ -1031,12 +1029,12 @@
.detail--xd .tile-nav--sm,
.detail__close,
.module--definitions__collapsed-group ol li::before {
color: @accent-color !important;
color: @accent !important;
}
.search__button:hover,
.search--header.has-text.search--hover .search__button {
background-color: @accent-color !important;
background-color: @accent !important;
color: @base !important;
}
@@ -1061,7 +1059,7 @@
color: @text !important;
}
.frm__select::after {
color: @accent-color !important;
color: @accent !important;
}
.switch,
@@ -1086,7 +1084,7 @@
}
.switch.is-on {
background-color: @accent-color !important;
background-color: @accent !important;
}
.dropdown__switch.is-on::before {
@@ -1151,48 +1149,48 @@
}
}
@-moz-document domain(start.duckduckgo.com) {
@-moz-document domain("start.duckduckgo.com") {
:root:not(.theme-dark) {
#catppuccin(@lightFlavor, @accentColor);
#catppuccin(@lightFlavor);
}
:root.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%);
}
textarea {
@@ -1224,7 +1222,7 @@
--color-yellow60: @yellow !important;
--theme-button-primary-bg: @blue !important;
--theme-searchbox-caret-bg: @accent-color !important;
--theme-searchbox-caret-bg: @accent !important;
.home_root__naJUp {
--theme-bg-home: @base !important;
@@ -1256,7 +1254,7 @@
.searchbox_searchButton__F5Bwq:not(:disabled),
.searchbox_hasQuery__j8_VE:focus-within {
color: @mantle !important;
background-color: @accent-color !important;
background-color: @accent !important;
}
}
}