diff --git a/styles/lichess/catppuccin.user.css b/styles/lichess/catppuccin.user.css index f111ae04..6aca7219 100644 --- a/styles/lichess/catppuccin.user.css +++ b/styles/lichess/catppuccin.user.css @@ -2,7 +2,7 @@ @name Lichess Catppuccin @namespace github.com/catppuccin/userstyles/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 @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Alichess @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 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 checkbox stylePieces "Style Pieces" 1 ==/UserStyle== */ @-moz-document domain("lichess.org") { @@ -284,88 +285,90 @@ ); background-image: url("data:image/svg+xml,@{svg}") !important; } - .is2d .pawn { - #piece(@f, @s) { - @svg: escape( - '' - ); - background-image: url("data:image/svg+xml,@{svg}") !important; + & when (@stylePieces = 1) { + .is2d .pawn { + #piece(@f, @s) { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}") !important; + } + &.black { + #piece(@base, @text); + } + &.white { + #piece(@text, @base); + } } - &.black { - #piece(@base, @text); + .is2d .bishop { + #piece(@f, @s) { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}") !important; + } + &.black { + #piece(@base, @text); + } + &.white { + #piece(@text, @base); + } } - &.white { - #piece(@text, @base); + .is2d .knight { + #piece(@f, @s) { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}") !important; + } + &.black { + #piece(@base, @text); + } + &.white { + #piece(@text, @base); + } } - } - .is2d .bishop { - #piece(@f, @s) { - @svg: escape( - '' - ); - background-image: url("data:image/svg+xml,@{svg}") !important; + .is2d .rook { + #piece(@f, @s) { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}") !important; + } + &.black { + #piece(@base, @text); + } + &.white { + #piece(@text, @base); + } } - &.black { - #piece(@base, @text); + .is2d .king { + #piece(@f, @s) { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}") !important; + } + &.black { + #piece(@base, @text); + } + &.white { + #piece(@text, @base); + } } - &.white { - #piece(@text, @base); - } - } - .is2d .knight { - #piece(@f, @s) { - @svg: escape( - '' - ); - background-image: url("data:image/svg+xml,@{svg}") !important; - } - &.black { - #piece(@base, @text); - } - &.white { - #piece(@text, @base); - } - } - .is2d .rook { - #piece(@f, @s) { - @svg: escape( - '' - ); - background-image: url("data:image/svg+xml,@{svg}") !important; - } - &.black { - #piece(@base, @text); - } - &.white { - #piece(@text, @base); - } - } - .is2d .king { - #piece(@f, @s) { - @svg: escape( - '' - ); - background-image: url("data:image/svg+xml,@{svg}") !important; - } - &.black { - #piece(@base, @text); - } - &.white { - #piece(@text, @base); - } - } - .is2d .queen { - &.black { - @svg: escape( - '' - ); - background-image: url("data:image/svg+xml,@{svg}") !important; - } - &.white { - @svg: escape( - '' - ); - background-image: url("data:image/svg+xml,@{svg}") !important; + .is2d .queen { + &.black { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}") !important; + } + &.white { + @svg: escape( + '' + ); + background-image: url("data:image/svg+xml,@{svg}") !important; + } } }