diff --git a/styles/stylus/catppuccin.user.css b/styles/stylus/catppuccin.user.css index 036c56b1..d909bc4b 100644 --- a/styles/stylus/catppuccin.user.css +++ b/styles/stylus/catppuccin.user.css @@ -2,7 +2,7 @@ @name Stylus Catppuccin @namespace github.com/catppuccin/userstyles/styles/stylus @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/stylus -@version 1.2.3 +@version 1.2.4 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/stylus/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Astylus @description Soothing pastel theme for Stylus @@ -17,11 +17,13 @@ @-moz-document url-prefix("moz-extension://"), url-prefix(chrome-extension://) { - [data-ui-theme="light"] { - #catppuccin(@lightFlavor, @accentColor); - } - [data-ui-theme="dark"] { - #catppuccin(@darkFlavor, @accentColor); + :root { + &[data-ui-theme="light"] { + #catppuccin(@lightFlavor, @accentColor); + } + &[data-ui-theme="dark"] { + #catppuccin(@darkFlavor, @accentColor); + } } #catppuccin(@lookup, @accent) { @@ -66,36 +68,36 @@ } } - &:root { - --bg: @base; - --fg: @text; - --c30: @subtext1; - --c40: @overlay0; - --c45: @surface2; - --c50: @subtext0; - --c60: @subtext0; - --c65: @surface2; - --c75: @overlay1; - --c80: @surface1; - --c85: @surface0; - --c90: @base; - --c95: @mantle; - --c97: @mantle; - --c98: @base; - --c99: @base; - --c100: @base; - --red1: @red; - --accent-1: @accent-color; - --accent-2: @accent-color; - --accent-3: fade(@accent-color, 25%); - .slider { - --color-on: fade(@accent-color, 25%); - --color-off: @surface2; - } - :focus { - --focus-color1: @accent-color !important; - --focus-color2: fade(@accent-color, 25%) !important; - } + --bg: @base; + --fg: @text; + --c30: @subtext1; + --c40: @overlay0; + --c45: @surface2; + --c50: @subtext0; + --c60: @subtext0; + --c65: @surface2; + --c75: @overlay1; + --c80: @surface1; + --c85: @surface0; + --c90: @base; + --c95: @mantle; + --c97: @mantle; + --c98: @base; + --c99: @base; + --c100: @base; + --red1: @red; + --accent-1: @accent-color; + --accent-2: @accent-color; + --accent-3: fade(@accent-color, 25%); + + .slider { + --color-on: fade(@accent-color, 25%); + --color-off: @surface2; + } + + :focus { + --focus-color1: @accent-color !important; + --focus-color2: fade(@accent-color, 25%) !important; } .active #filters-stats, @@ -123,19 +125,29 @@ ); content: url("data:image/svg+xml,@{svg}"); } - #message-box.danger #message-box-title::before { - @fade_color: fade(@red, 67%); - @svg: escape( - '' - ); - background: url("data:image/svg+xml,@{svg}") !important; - } - #message-box.danger #message-box-close-icon i { - color: var(--c40); - &:hover { - color: var(--bg); + + #message-box.danger { + #message-box-title { + background-color: @red; + color: @base; + + &::before { + @fade_color: fade(@red, 67%); + @svg: escape( + '' + ); + background: url("data:image/svg+xml,@{svg}") !important; + } + } + + #message-box-close-icon i { + color: var(--c40); + &:hover { + color: var(--bg); + } } } + #filters label:hover, #filters .filter-selection:hover { background-color: @surface0; @@ -144,49 +156,56 @@ .entry.usercss .style-name-link::after { background-color: fade(@accent-color, 25%); } + + /* Syntax highlighting */ + .CodeMirror-activeline-background { + background: @mantle; + } .CodeMirror-linenumber { color: @subtext0; } - .cm-s-default .cm-string { - color: @peach; - } - .cm-s-default .cm-qualifier { - color: @peach; - } - .installed .configure-usercss i { - color: @accent-color; - } - .cm-s-default .cm-variable-2 { - color: @sapphire; - } - .cm-s-default .cm-keyword { - color: @mauve; - } - .cm-s-default .cm-atom, - .cm-s-default .cm-number { - color: @green; - } - .cm-s-default .cm-def { - color: @sapphire; - } - .cm-s-default .cm-tag { - color: @sapphire; - } - .cm-s-default .cm-builtin { - color: @subtext1; - } - .cm-s-default .cm-variable-3 { - color: @subtext1; - } - .cm-s-default .cm-comment { - color: @subtext0; - } - .cm-s-default .cm-operator { - color: @yellow; - } div.CodeMirror span.CodeMirror-matchingbracket { color: @green; } + .cm-s-default { + .cm-string { + color: @peach; + } + .cm-qualifier { + color: @peach; + } + .cm-variable-2 { + color: @sapphire; + } + .cm-keyword { + color: @mauve; + } + .cm-atom, + .cm-number { + color: @green; + } + .cm-def { + color: @sapphire; + } + .cm-tag { + color: @sapphire; + } + .cm-builtin { + color: @subtext1; + } + .cm-variable-3 { + color: @subtext1; + } + .cm-comment { + color: @subtext0; + } + .cm-operator { + color: @yellow; + } + .cm-variable { + color: @text; + } + } button:disabled, select:disabled, option:disabled, @@ -213,49 +232,48 @@ #message-box-title { color: @text; } - .svg-icon:hover { - fill: @overlay1; - } .svg-icon { fill: @overlay0; + + &:hover { + fill: @overlay1; + } } .onoffswitch input:checked + span { background-color: fade(@accent-color, 25%); - } - .onoffswitch input:checked + span::before { - background-color: @accent-color; + + &::before { + background-color: @accent-color; + } } #options-title { color: @base; } - #message-box.danger #message-box-title { - background-color: @red; - color: @base; - } h2 { color: @accent-color !important; } - .installed .configure-usercss svg { - fill: @accent-color !important; - } - .installed .configure-usercss:hover svg { - fill: @accent-color !important; - } - .cm-s-default .cm-variable { - color: @text; - } - .CodeMirror-activeline-background { - background: @mantle; + .installed .configure-usercss { + i { + color: @accent-color; + } + + svg, + &:hover svg { + fill: @accent-color !important; + } } #live-reload-install-hint { color: @teal; } - #menu.delete header { - background: fade(@red, 25%); - } - #menu.delete > div, - #menu.delete [data-cmd="delete"] { - border-color: @red; + #menu.delete { + header { + background: fade(@red, 25%); + } + + > div, + &[data-cmd="delete"] { + border-color: @red; + } } .entry.odd { background-color: fade(@surface0, 25%); @@ -266,9 +284,10 @@ } .split-btn-menu { border-color: @accent-color; - } - .split-btn-menu > :hover { - background: fade(@accent-color, 25%); + + > :hover { + background: fade(@accent-color, 25%); + } } #help-popup .title { background: @mantle;