diff --git a/styles/stack-overflow/catppuccin.user.css b/styles/stack-overflow/catppuccin.user.css index 618c729d..7a20b862 100644 --- a/styles/stack-overflow/catppuccin.user.css +++ b/styles/stack-overflow/catppuccin.user.css @@ -2,7 +2,7 @@ @name Stack Overflow Catppuccin @namespace github.com/catppuccin/userstyles/styles/stack-overflow @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/stack-overflow -@version 0.0.1 +@version 0.1.0 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/stack-overflow/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Astack-overflow @description Soothing pastel theme for Stack Overflow @@ -15,7 +15,8 @@ @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== */ -@-moz-document domain('stackoverflow.com') { +@-moz-document domain('stackoverflow.com'), domain('stackexchange.com'), domain('serverfault.com'), +domain('superuser.com'), domain('mathoverflow.net'), domain('askubuntu.com'), domain('stackapps.com') { @import url("https://unpkg.com/@catppuccin/highlightjs@0.2.2/css/catppuccin.variables.important.css"); code.hljs { background: none !important; @@ -74,6 +75,8 @@ @crust: @catppuccin[@@lookup][@crust]; @accent-color: @catppuccin[@@lookup][@@accent]; + background-image: none; + --ctp-rosewater: #rgbify(@rosewater) []; --ctp-flamingo: #rgbify(@flamingo) []; --ctp-pink: #rgbify(@pink) []; @@ -118,13 +121,33 @@ * { --theme-background-color: @mantle; --theme-content-background-color: @base; + --theme-content-border-color: @surface0; --theme-topbar-background-color: @mantle; + --theme-topbar-search-background: @mantle; + --theme-topbar-search-border: @surface2; + --theme-topbar-search-placeholder: @subtext0; + --theme-topbar-item-color: @text; + --theme-topbar-item-color-hover: @text; + --theme-topbar-item-background-hover: @surface0; --theme-button-primary-background-color: @accent-color; --theme-button-primary-hover-background-color: darken(@accent-color, 5%); --theme-button-primary-active-background-color: @text; --theme-link-color: @accent-color; --theme-link-color-hover: darken(@accent-color, 5%); + --theme-footer-title-color: @text; + --theme-footer-text-color: @subtext0; + --theme-footer-link-color: @subtext0; + --theme-footer-link-color-hover: @subtext1; --theme-footer-background-color: @mantle; + --theme-header-background-color: @mantle; + --theme-tag-background-color: @accent-color; + --theme-tag-border-color: @accent-color; + --theme-tag-color: @mantle; + --theme-tag-hover-background-color: darken(@accent-color, 5%); + --theme-tag-hover-border-color: darken(@accent-color, 5%); + --theme-tag-hover-color: @mantle; + --theme-post-title-color: @accent-color; + --theme-post-title-color-hover: darken(@accent-color, 5%); --highlight-bg: @mantle; @@ -132,6 +155,7 @@ --theme-primary-100: fade(@accent-color, 20%); --theme-primary-200: fade(@accent-color, 30%); --theme-primary-500: fade(@accent-color, 90%); + --theme-primary-600: @accent-color; --translucent-secondary: fade(@accent-color, 10%); --theme-secondary-100: fade(@accent-color, 20%); @@ -266,6 +290,9 @@ .s-prose kbd { border-top-color: transparent; + box-shadow: + 0 1px 1px @crust, + inset 0 1px 0 0 @overlay2; } .s-pagination .s-pagination--item { @@ -283,39 +310,154 @@ color: @text; } - #onetrust-consent-sdk #onetrust-banner-sdk { - background-color: @mantle; + #onetrust-consent-sdk { + #onetrust-banner-sdk { + background-color: @mantle; - #onetrust-accept-btn-handler, - #onetrust-reject-all-handler { - background-color: @accent-color; - color: @crust; + &:focus { + outline-color: @surface1; + } + + #onetrust-accept-btn-handler, + #onetrust-reject-all-handler { + background-color: @accent-color; + color: @crust; + } + + #onetrust-button-group button#onetrust-pc-btn-handler { + background-color: @crust !important; + border-color: @accent-color !important; + color: @accent-color !important; + } + + #onetrust-policy-title, + #onetrust-policy-text, + .ot-b-addl-desc, + .ot-dpd-desc, + .ot-dpd-title, + #onetrust-policy-text :not(.onetrust-vendors-list-handler), + .ot-dpd-desc :not(.onetrust-vendors-list-handler), + #banner-options *, + .ot-cat-header, + .ot-optout-signal, + a { + color: @text !important; + } } - #onetrust-button-group button#onetrust-pc-btn-handler { - background-color: @crust !important; - border-color: @accent-color !important; - color: @accent-color !important; - } + /* Manage cookies popup */ + #onetrust-pc-sdk { + background-color: @base; - #onetrust-policy-title, - #onetrust-policy-text, - .ot-b-addl-desc, - .ot-dpd-desc, - .ot-dpd-title, - #onetrust-policy-text :not(.onetrust-vendors-list-handler), - .ot-dpd-desc :not(.onetrust-vendors-list-handler), - #banner-options *, - .ot-cat-header, - .ot-optout-signal, - a { - color: @text !important; + h3, + h4, + h5, + h6, + p, + #ot-ven-lst .ot-ven-opts p, + #ot-pc-desc, + #ot-pc-title, + .ot-li-title, + .ot-sel-all-hdr span, + #ot-host-lst .ot-host-info, + #ot-fltr-modal #modal-header, + .ot-checkbox label span, + #ot-pc-lst #ot-sel-blk p, + #ot-pc-lst #ot-lst-title h3, + #ot-pc-lst .back-btn-handler p, + #ot-pc-lst .ot-ven-name, + #ot-pc-lst #ot-ven-lst .consent-category, + .ot-leg-btn-container .ot-inactive-leg-btn, + .ot-label-status, + .ot-chkbox label span, + #clear-filters-handler, + .ot-optout-signal { + color: @text; + } + + .ot-pc-header { + background-color: @mantle !important; + border-bottom-color: @surface1; + } + + .ot-accordion-layout.ot-cat-item { + border-color: @surface1; + } + + .ot-pc-footer { + border-top-color: @surface2 !important; + } + + button:not( + #clear-filters-handler, + .ot-close-icon, + #filter-btn-handler, + .ot-remove-objection-handler, + .ot-obj-leg-btn-handler, + [aria-expanded], + .ot-link-btn + ), + .ot-leg-btn-container .ot-active-leg-btn { + background-color: @accent-color !important; + border-color: @accent-color; + color: @mantle; + } } } .disabled-link { color: @overlay2; } + + /* Stack Exchange logo */ + [fill="#FEFEFE"] { + fill: @text !important; + } + [fill="#2F96E8"], + [fill="#2D6DB5"] { + fill: @blue !important; + } + [fill="#8FD8F7"] { + fill: lighten(@sky, 10%); + } + [fill="#46A2D9"] { + fill: lighten(@blue, 5%); + } + [fill="#155397"] { + fill: darken(@blue, 10%) !important; + } + + /* Other Stack Exchange site logos */ + [alt="Server Fault"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + [alt="Super User"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + [alt="MathOverflow"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + [alt="Ask Ubuntu"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } + [alt="Stack Apps"] { + @svg: escape( + '' + ); + content: url("data:image/svg+xml,@{svg}"); + } } }