feat(lichess): add stylePieces option (#1096)

* feat(lichess): Add option to disable styling pieces

* chore(lichess): Update version
This commit is contained in:
mekb authored and GitHub committed 2024-07-21 13:27:42 -04:00
1 parent 69497f05b0
commit 3f0e04db57
1 file changed
+4 -1
+4 -1
View File
@@ -2,7 +2,7 @@
@name Lichess Catppuccin @name Lichess Catppuccin
@namespace github.com/catppuccin/userstyles/styles/lichess @namespace github.com/catppuccin/userstyles/styles/lichess
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/lichess @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/lichess
@version 0.0.2 @version 0.0.3
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/lichess/catppuccin.user.css @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/lichess/catppuccin.user.css
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Alichess @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Alichess
@description Soothing pastel theme for Lichess @description Soothing pastel theme for Lichess
@@ -13,6 +13,7 @@
@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"] @var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"]
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"] @var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "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"]
@var checkbox stylePieces "Style Pieces" 1
==/UserStyle== */ ==/UserStyle== */
@-moz-document domain("lichess.org") { @-moz-document domain("lichess.org") {
@@ -284,6 +285,7 @@
); );
background-image: url("data:image/svg+xml,@{svg}") !important; background-image: url("data:image/svg+xml,@{svg}") !important;
} }
& when (@stylePieces = 1) {
.is2d .pawn { .is2d .pawn {
#piece(@f, @s) { #piece(@f, @s) {
@svg: escape( @svg: escape(
@@ -368,6 +370,7 @@
background-image: url("data:image/svg+xml,@{svg}") !important; background-image: url("data:image/svg+xml,@{svg}") !important;
} }
} }
}
.orientation-white .files coord:nth-child(2n + 1), .orientation-white .files coord:nth-child(2n + 1),
.orientation-white .ranks coord:nth-child(2n), .orientation-white .ranks coord:nth-child(2n),