From 09b66e22cddb2ab545a1f7340892671b5932c1c3 Mon Sep 17 00:00:00 2001 From: Isabel Date: Sun, 25 Feb 2024 16:00:23 +0000 Subject: [PATCH] fix(pinstrest): assorted bugs (#558) --- styles/pinterest/catppuccin.user.css | 82 ++++++++++++++++------------ 1 file changed, 46 insertions(+), 36 deletions(-) diff --git a/styles/pinterest/catppuccin.user.css b/styles/pinterest/catppuccin.user.css index b0a7d981..c144fb3c 100644 --- a/styles/pinterest/catppuccin.user.css +++ b/styles/pinterest/catppuccin.user.css @@ -2,17 +2,17 @@ @name Pinterest Catppuccin @namespace github.com/catppuccin/userstyles/styles/pinterest @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/pinterest -@version 1.1.1 -@description Soothing pastel theme for Pinterest -@author Catppuccin +@version 1.1.2 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/pinterest/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Apinterest +@description Soothing pastel theme for Pinterest +@author Catppuccin @license MIT @preprocessor less -@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 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"] ==/UserStyle== */ @-moz-document regexp("^https?:\\/\\/(www|[a-z]{2}).pinterest.(com(.(au|mx))?|co(.(uk|kr))?|at|ca|ch|cl|de|dk|es|fr|ie|it|jp|nz|ph|pt|ru|se)\\/.*") { @@ -52,7 +52,7 @@ @base: @catppuccin[@@lookup][@base]; @mantle: @catppuccin[@@lookup][@mantle]; @crust: @catppuccin[@@lookup][@crust]; - @accentColor: @catppuccin[@@lookup][@@accent]; + @accent-color: @catppuccin[@@lookup][@@accent]; :root { --color-text-light: if((@lookup = latte), @mantle, @text); @@ -60,28 +60,41 @@ --color-text-default: @text; --color-text-inverse: @mantle; --color-text-subtle: @subtext0; - --color-text-error: @accentColor; - --color-text-shopping: @accentColor; - --color-text-link: @accentColor; + --color-text-error: @accent-color; + --color-text-shopping: @accent-color; + --color-text-link: @accent-color; --color-text-icon-light: if((@lookup = latte), @mantle, @subtext1); --color-text-icon-dark: if((@lookup = latte), @subtext1, @mantle); - --color-text-icon-default: @subtext1; + --color-text-icon-default: @subtext0; + --color-icon-subtle: @subtext1; --color-text-icon-inverse: @mantle; --color-text-icon-subtle: @subtext0; - --color-text-icon-error: @accentColor; - --color-text-icon-brand-primary: @accentColor; + --color-text-icon-error: @accent-color; + --color-text-icon-brand-primary: @accent-color; --color-background-light: if((@lookup = latte), @mantle, @subtext1); --color-background-dark: if((@lookup = latte), @text, @mantle); --color-background-default: @base; --color-background-inverse-base: @subtext1; - --color-background-primary-base: @accentColor; + --color-background-primary-base: @accent-color; --color-background-secondary-base: @mantle; --color-background-secondary-active: @mantle; --color-background-selected-base: @subtext1; - --color-border-container: @mantle; + --color-background-box-default: @mantle; + --color-background-box-selected: @accent-color; + --color-background-box-secondary: @surface1; + --color-background-overlay: @surface0; + --color-background-tag-primary-hover: @surface2; + --color-background-box-light: @mantle; + --color-background-button-secondary-default: @surface0; + --color-background-button-secondary-hover: @surface1; + --color-background-tag-primary-default: @surface1; + --color-background-button-disabled-default: darken(@mantle, 2%); + --color-background-formfield-primary: @surface0; + --color-border-container: @surface1; --color-border-default: @mantle; + --g-colorTransparentWhite: fadeout(@base, 30%); --g-colorTransparentDarkGray: fadeout(@mantle, 20%); @@ -94,14 +107,14 @@ --g-colorGray100Active: darken(@surface0, 5%); --g-colorGray200: @subtext0; --g-colorGray300: @subtext1; - --g-colorRed100: @accentColor; - --g-colorRed100Hovered: darken(@accentColor, 7.5%); - --g-colorRed100Active: darken(@accentColor, 10%); - --g-color-focus: fadeout(@accentColor, 50%); + --g-colorRed100: @accent-color; + --g-colorRed100Hovered: darken(@accent-color, 7.5%); + --g-colorRed100Active: darken(@accent-color, 10%); + --g-color-focus: fadeout(@accent-color, 50%); --color-gray-roboflow-400: @crust; --color-gray-roboflow-200: @mantle; - - --g-blue: @accentColor; + + --g-blue: @accent-color; --color-background-info-base: @blue; --color-background-error-base: @red; --color-background-warning-base: @peach; @@ -120,8 +133,8 @@ --epr-category-label-bg-color: @base; --epr-search-input-bg-color: @mantle; --epr-skin-tone-picker-menu-color: @mantle; - --epr-category-icon-active-color: @accentColor; - --epr-highlight-color: @accentColor; + --epr-category-icon-active-color: @accent-color; + --epr-highlight-color: @accent-color; --epr-hover-bg-color: @surface0; --epr-focus-bg-color: @surface0; } @@ -147,7 +160,7 @@ } svg circle[fill="white"] ~ path[fill="#e60023"] { - fill: @accentColor !important; + fill: @accent-color !important; } div#mweb-unauth-container, @@ -157,11 +170,8 @@ /* Header & Search */ - div[data-test-id="header-Header"] div.P_h { - background-color: @mantle !important; - span.xnr { - color: @text !important; - } + div[data-test-id="header-Header"] div.P_h span.xnr { + color: @text !important; } div[data-test-id="one-bar-pill"] { @@ -339,7 +349,7 @@ } div.SaveButton__background--enabled { - background-color: @accentColor !important; + background-color: @accent-color !important; color: @mantle !important; } @@ -456,7 +466,7 @@ } div[data-test-id="editor-canvas-container"] div { - border-color: @accentColor !important; + border-color: @accent-color !important; } input[data-test-id="storyboard-editor-details-text-size"] { @@ -500,17 +510,17 @@ } button[data-test-id="login-signup-toggle"] { - color: @accentColor !important; + color: @accent-color !important; } button.red.active { - background-color: @accentColor !important; + background-color: @accent-color !important; color: @crust !important; } button.red.active:hover, button.red.active:focus { - background-color: darken(@accentColor, 2.5%) !important; + background-color: darken(@accent-color, 2.5%) !important; } span[data-test-id="terms-of-service"], @@ -518,7 +528,7 @@ color: @subtext1 !important; a { - color: @accentColor !important; + color: @accent-color !important; } } } @@ -539,7 +549,7 @@ } span[data-test-id="terms-of-service"] a { - color: @accentColor !important; + color: @accent-color !important; } div[data-test-id="breadcrumbs-list"] div.MIw.Rym.zI7.iyn.Hsu,