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
@@ -15,39 +15,39 @@
|
||||
@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== */
|
||||
|
||||
#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,
|
||||
@@ -60,20 +60,20 @@
|
||||
--text-primary: @text;
|
||||
--text-secondary: @subtext0;
|
||||
--text-active: @overlay1;
|
||||
--text-inactive: fadeout(@subtext0, 40%);
|
||||
--text-link: @accent-color;
|
||||
--text-visited: lighten(saturate(@accent-color, -20%), -20%);
|
||||
--text-inactive: fade(@subtext0, 60%);
|
||||
--text-link: @accent;
|
||||
--text-visited: lighten(saturate(@accent, -20%), -20%);
|
||||
--text-invert: @base;
|
||||
--background-primary: @base;
|
||||
--background-secondary: @crust;
|
||||
--background-tertiary: @mantle;
|
||||
--background-toc-active: @crust;
|
||||
--background-mark-yellow: fadeout(@yellow, 60%);
|
||||
--background-mark-green: fadeout(@green, 60%);
|
||||
--background-information: fadeout(@blue, 90%);
|
||||
--background-warning: fadeout(@maroon, 90%);
|
||||
--background-critical: fadeout(@red, 90%);
|
||||
--background-success: fadeout(@green, 90%);
|
||||
--background-mark-yellow: fade(@yellow, 40%);
|
||||
--background-mark-green: fade(@green, 40%);
|
||||
--background-information: fade(@blue, 10%);
|
||||
--background-warning: fade(@maroon, 10%);
|
||||
--background-critical: fade(@red, 10%);
|
||||
--background-success: fade(@green, 10%);
|
||||
--border-primary: @surface2;
|
||||
--border-secondary: @surface1;
|
||||
--button-primary-default: @text;
|
||||
@@ -93,13 +93,13 @@
|
||||
--icon-warning: @peach;
|
||||
--icon-critical: @maroon;
|
||||
--icon-success: @green;
|
||||
--accent-primary: @accent-color;
|
||||
--accent-primary-engage: fadeout(@accent-color, 90%);
|
||||
--accent-secondary: @accent-color;
|
||||
--accent-tertiary: fadeout(saturate(@accent-color, 10%), 90%);
|
||||
--shadow-01: 0 1px 2px fadeout(@text, 80%);
|
||||
--shadow-02: 0 1px 6px fadeout(@text, 80%);
|
||||
--focus-01: 0 0 0 3px fadeout(@text, 50%);
|
||||
--accent-primary: @accent;
|
||||
--accent-primary-engage: fade(@accent, 10%);
|
||||
--accent-secondary: @accent;
|
||||
--accent-tertiary: fade(saturate(@accent, 10%), 10%);
|
||||
--shadow-01: 0 1px 2px fade(@text, 20%);
|
||||
--shadow-02: 0 1px 6px fade(@text, 20%);
|
||||
--focus-01: 0 0 0 3px fade(@text, 50%);
|
||||
--field-focus-border: @text;
|
||||
--code-token-tag: @mauve;
|
||||
--code-token-punctuation: @overlay2;
|
||||
@@ -119,7 +119,7 @@
|
||||
--scrollbar-bg: transparent;
|
||||
--scrollbar-color: hsla(0, 0%, 100%, 0.25);
|
||||
--category-color: @sky;
|
||||
--category-color-background: fadeout(@sky, 60%);
|
||||
--category-color-background: fade(@sky, 40%);
|
||||
--code-color: lighten(@sky, 10%);
|
||||
--mark-color: darken(@sky, 30%);
|
||||
--plus-accent-color: @maroon;
|
||||
@@ -143,22 +143,22 @@
|
||||
--http-mark-color: darken(@green, 30%);
|
||||
--apis-mark-color: darken(@mauve, 30%);
|
||||
--learn-mark-color: darken(@pink, 30%);
|
||||
--plus-accent-background-color: fadeout(@maroon, 70%);
|
||||
--html-accent-background-color: fadeout(@red, 70%);
|
||||
--css-accent-background-color: fadeout(@sapphire, 70%);
|
||||
--js-accent-background-color: fadeout(@yellow, 70%);
|
||||
--http-accent-background-color: fadeout(@green, 70%);
|
||||
--apis-accent-background-color: fadeout(@mauve, 70%);
|
||||
--learn-accent-background-color: fadeout(@pink, 70%);
|
||||
--plus-accent-engage: fadeout(@maroon, 30%);
|
||||
--html-accent-engage: fadeout(@red, 30%);
|
||||
--css-accent-engage: fadeout(@sapphire, 30%);
|
||||
--js-accent-engage: fadeout(@yellow, 30%);
|
||||
--http-accent-engage: fadeout(@green, 30%);
|
||||
--apis-accent-engage: fadeout(@mauve, 30%);
|
||||
--learn-accent-engage: fadeout(@pink, 30%);
|
||||
--modal-backdrop-color: fadeout(@mantle, 30%);
|
||||
--selection-background-color: fadeout(@surface2, 40%);
|
||||
--plus-accent-background-color: fade(@maroon, 30%);
|
||||
--html-accent-background-color: fade(@red, 30%);
|
||||
--css-accent-background-color: fade(@sapphire, 30%);
|
||||
--js-accent-background-color: fade(@yellow, 30%);
|
||||
--http-accent-background-color: fade(@green, 30%);
|
||||
--apis-accent-background-color: fade(@mauve, 30%);
|
||||
--learn-accent-background-color: fade(@pink, 30%);
|
||||
--plus-accent-engage: fade(@maroon, 70%);
|
||||
--html-accent-engage: fade(@red, 70%);
|
||||
--css-accent-engage: fade(@sapphire, 70%);
|
||||
--js-accent-engage: fade(@yellow, 70%);
|
||||
--http-accent-engage: fade(@green, 70%);
|
||||
--apis-accent-engage: fade(@mauve, 70%);
|
||||
--learn-accent-engage: fade(@pink, 70%);
|
||||
--modal-backdrop-color: fade(@mantle, 70%);
|
||||
--selection-background-color: fade(@surface2, 60%);
|
||||
--text-primary-red: @red;
|
||||
--text-primary-green: @green;
|
||||
--text-primary-blue: @blue;
|
||||
@@ -179,7 +179,7 @@
|
||||
--form-limit-color-emphasis: @overlay1;
|
||||
--form-invalid-color: @red;
|
||||
--form-invalid-focus-color: @flamingo;
|
||||
--form-invalid-focus-effect-color: fadeout(@flamingo, 80%);
|
||||
--form-invalid-focus-effect-color: fade(@flamingo, 20%);
|
||||
--baseline-high-bg: hsl(
|
||||
hue(@green),
|
||||
saturation(@green),
|
||||
@@ -208,23 +208,20 @@
|
||||
|
||||
@-moz-document domain("developer.mozilla.org") {
|
||||
.light {
|
||||
#catppuccin(@lightFlavor, @accentColor);
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
|
||||
.dark {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
|
||||
/* stylelint-disable selector-not-notation */
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root:not(.light):not(.dark) {
|
||||
#catppuccin(@lightFlavor, @accentColor);
|
||||
:root:not(.light):not(.dark) {
|
||||
@media (prefers-color-scheme: light) {
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not(.light):not(.dark) {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
}
|
||||
/* stylelint-enable selector-not-notation */
|
||||
@@ -232,21 +229,18 @@
|
||||
|
||||
@-moz-document domain("interactive-examples.mdn.mozilla.net") {
|
||||
.theme-light {
|
||||
#catppuccin(@lightFlavor, @accentColor);
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
.theme-dark {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
#catppuccin(@lightFlavor, @accentColor);
|
||||
:root {
|
||||
@media (prefers-color-scheme: light) {
|
||||
#catppuccin(@lightFlavor);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
#catppuccin(@darkFlavor, @accentColor);
|
||||
@media (prefers-color-scheme: dark) {
|
||||
#catppuccin(@darkFlavor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user