fix: add auto colouring & allows functioning on newer libreddit platforms (#108)
This commit is contained in:
parent
26c7368218
commit
36e681b06d
@ -1,12 +1,14 @@
|
|||||||
/* ==UserStyle==
|
/* ==UserStyle==
|
||||||
@name Libreddit Catppuccin
|
@name Libreddit Catppuccin
|
||||||
@namespace github.com/catppuccin/userstyles/styles/libreddit
|
@namespace github.com/catppuccin/userstyles/styles/libreddit
|
||||||
@version 2.0.3
|
@version 2.0.4
|
||||||
@description Soothing pastel theme for Libreddit
|
@description Soothing pastel theme for Libreddit
|
||||||
@author Catppuccin
|
@author Catppuccin
|
||||||
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/libreddit/catppuccin.user.css
|
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/libreddit/catppuccin.user.css
|
||||||
|
|
||||||
@preprocessor less
|
@preprocessor less
|
||||||
@var select Theme "Theme" ["latte:Latte", "frappe:Frappe", "macchiato:Macchiato", "mocha:Mocha*"]
|
@var select lightTheme "Light Theme" ["latte:Latte*", "frappe:Frappe", "macchiato:Macchiato", "mocha:Mocha"]
|
||||||
|
@var select darkTheme "Dark Theme" ["latte:Latte", "frappe:Frappe", "macchiato:Macchiato", "mocha:Mocha*"]
|
||||||
@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"]
|
@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== */
|
==/UserStyle== */
|
||||||
@-moz-document domain("libredd.it"),
|
@-moz-document domain("libredd.it"),
|
||||||
@ -186,8 +188,14 @@ domain("l.opnxng.com") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.light,
|
.light,
|
||||||
|
.gruvboxlight {
|
||||||
|
#catppuccin(@lightTheme, @accentColor);
|
||||||
|
}
|
||||||
|
|
||||||
.dark,
|
.dark,
|
||||||
.black,
|
.black,
|
||||||
|
.doomone,
|
||||||
|
.gruvboxdark,
|
||||||
.dracula,
|
.dracula,
|
||||||
.gold,
|
.gold,
|
||||||
.laserwave,
|
.laserwave,
|
||||||
@ -195,7 +203,7 @@ domain("l.opnxng.com") {
|
|||||||
.rosebox,
|
.rosebox,
|
||||||
.violet,
|
.violet,
|
||||||
:root {
|
:root {
|
||||||
#catppuccin(@Theme, @accentColor);
|
#catppuccin(@darkTheme, @accentColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
#catppuccin(@lookup, @accent) {
|
#catppuccin(@lookup, @accent) {
|
||||||
@ -225,23 +233,23 @@ domain("l.opnxng.com") {
|
|||||||
@base: @catppuccin[@@lookup][@base];
|
@base: @catppuccin[@@lookup][@base];
|
||||||
@mantle: @catppuccin[@@lookup][@mantle];
|
@mantle: @catppuccin[@@lookup][@mantle];
|
||||||
@crust: @catppuccin[@@lookup][@crust];
|
@crust: @catppuccin[@@lookup][@crust];
|
||||||
@accent-Color: @catppuccin[@@lookup][@@accent];
|
@accent-color: @catppuccin[@@lookup][@@accent];
|
||||||
|
|
||||||
& {
|
& {
|
||||||
--accent: @accent-Color;
|
--accent: @accent-color !important;
|
||||||
--green: @green;
|
--green: @green !important;
|
||||||
--text: @text;
|
--text: @text !important;
|
||||||
--foreground: @crust;
|
--foreground: @crust !important;
|
||||||
--background: @base;
|
--background: @base !important;
|
||||||
--outside: @mantle;
|
--outside: @mantle !important;
|
||||||
--post: @mantle;
|
--post: @mantle !important;
|
||||||
--panel-border: none;
|
--panel-border: none !important;
|
||||||
--highlighted: @surface0;
|
--highlighted: @surface0 !important;
|
||||||
--visited: @overlay0;
|
--visited: @overlay0 !important;
|
||||||
--shadow: 0 5px 15px 0 transparent;
|
--shadow: 0 5px 15px 0 transparent !important;
|
||||||
|
|
||||||
--nsfw: @peach;
|
--nsfw: @peach !important;
|
||||||
--admin: @maroon;
|
--admin: @maroon !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user