Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pinterest): improve readability and fix unthemed elements #1420

Merged
merged 39 commits into from
Nov 7, 2024
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
3c4f45e
"more" button
thismoon Oct 27, 2024
0f3a720
focused search bar border
thismoon Oct 27, 2024
8cef6e3
avatar placeholder background
thismoon Oct 27, 2024
fdb9633
fix pin external link on hover
thismoon Oct 27, 2024
6df727c
fix pin external link 2
thismoon Oct 27, 2024
f9d9446
border focus
thismoon Oct 27, 2024
f2066e1
bump version
thismoon Oct 27, 2024
780a107
Clean up save dropdown popout button on pins
K1aymore Oct 31, 2024
4f993b6
Test Latte and learn why --color-text-light is important
K1aymore Oct 31, 2024
2428a9e
Pin editing popout window fixes
K1aymore Oct 31, 2024
95277f0
Clean up the pin save button, readable with lighter accent colors
K1aymore Nov 1, 2024
892fc06
Fix section preview background, increment version number
K1aymore Nov 1, 2024
ff08263
Merge branch 'catppuccin:main' into main
K1aymore Nov 4, 2024
9c52ba4
Fix profile after update
K1aymore Nov 4, 2024
a11d907
Invert hover tooltips
K1aymore Nov 4, 2024
1b7e054
Spacing between sections
K1aymore Nov 4, 2024
4a0e3ea
Fix text on the 'Saved To Board' and the 'Removed From Board' popups
K1aymore Nov 4, 2024
2698305
Fix outline around invite collaborators buttons
K1aymore Nov 4, 2024
78c39eb
Fix saving dropdown in Latte
K1aymore Nov 4, 2024
6626a9f
Fix pin page
K1aymore Nov 4, 2024
b44ab7a
Actually finish pin page
K1aymore Nov 4, 2024
aeed1af
Merge pull request #1 from thismoon/pinterest
K1aymore Nov 4, 2024
5d722dc
Bump version number to 1.1.9 since @thismoon bumped to 1.1.8
K1aymore Nov 4, 2024
aa353c6
Editing pin notes now themed
K1aymore Nov 4, 2024
b72feab
Pin section selection in editing mode now cleaner
K1aymore Nov 4, 2024
bc68cc1
Fix box behind creation fields before you've uploaded an image
K1aymore Nov 4, 2024
d47c475
Fix linting issues
K1aymore Nov 4, 2024
332d360
Run deno formatter
K1aymore Nov 4, 2024
17cdd94
Make undo button in saving popup darker
K1aymore Nov 4, 2024
c7fd565
Switch pin page back to mantle
K1aymore Nov 4, 2024
582ceaf
Move style for more button back down to the Other section
K1aymore Nov 4, 2024
a5e8c57
Merge branch 'main' into main
K1aymore Nov 4, 2024
d1217e8
Remove unneeded code for invite collaborators buttons
K1aymore Nov 7, 2024
4e437ab
Clean up pin editing page
K1aymore Nov 7, 2024
6aa2741
Apply save button hover fade in a more reliable way (works on pin edi…
K1aymore Nov 7, 2024
b08c55f
Remove unneeded PinBetterSaveDropdown code
K1aymore Nov 7, 2024
f6c47fa
Change saved to popup to surface0 rather than black
K1aymore Nov 7, 2024
22c3400
Run deno formatter
K1aymore Nov 7, 2024
f30334e
Save / delete buttons don't flash red when pressed
K1aymore Nov 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
198 changes: 137 additions & 61 deletions styles/pinterest/catppuccin.user.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@name Pinterest Catppuccin
@namespace github.com/catppuccin/userstyles/styles/pinterest
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/pinterest
@version 1.1.7
@version 1.1.9
@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
Expand Down Expand Up @@ -112,10 +112,12 @@
--color-background-tag-primary-default: @surface1;
--color-background-button-disabled-default: darken(@mantle, 2%);
--color-background-formfield-primary: @surface0;
--color-background-avatar-placeholder: @mantle;
--color-border-container: @surface1;
--color-border-default: @mantle;
--color-border-popover-primary: @surface0;
--color-border-popover-secondary: @text;
--color-border-focus: fade(@blue, 50%);
--color-text-success: @green;
--color-text-warning: @yellow;
--color-icon-success: @green;
Expand All @@ -128,6 +130,14 @@
--color-background-brand: @accent-color;
--color-background-box-brand: @accent-color;
--color-background-button-primary-default: @accent-color;
--color-background-button-primary-hover: desaturate(
darken(@accent-color, 12%),
20%
);
--color-background-button-primary-active: desaturate(
darken(@accent-color, 30%),
30%
);
--color-background-badge-warning: @yellow;
--color-background-badge-success: @green;
--color-background-education: @blue;
Expand All @@ -149,7 +159,7 @@
--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-400: @surface2;
--color-gray-roboflow-200: @mantle;

--g-blue: @accent-color;
Expand Down Expand Up @@ -193,11 +203,15 @@
color: var(--color-text-inverse);
}

// Profile button
// Invite collaborators buttons
div[style="border: 1px solid white;"],
div[data-test-id="gestalt-avatar-svg"] {
box-shadow: 0 0 0 1px @crust !important;
outline-color: @base !important;
border-color: @base !important;

text {
fill: @subtext1 !important;
.WhU {
background-color: @surface1;
}
}

Expand All @@ -220,6 +234,14 @@
}
}

div[role="tooltip"] {
background-color: @surface0;
color: @text;
.B1n {
color: @text;
}
}

// Pin hover icons (and other icons)
.Uvi.gUZ.U9O.kVc {
color: @text;
Expand Down Expand Up @@ -264,8 +286,7 @@
background-color: @mantle !important;
}

div[style="padding: 0px 0px 0px 16px; height: 100%; border-radius: 24px; box-shadow: rgba(0, 132, 255, 0.5) 0px 0px 0px 4px;"],
div[style="padding: 0px 4px 0px 16px; height: 100%; border-radius: 24px; box-shadow: rgba(0, 132, 255, 0.5) 0px 0px 0px 4px;"] {
div[style*="box-shadow: rgba(0, 132, 255, 0.5) 0px 0px 0px 4px"] {
box-shadow: 0 0 0 4px var(--g-color-focus) !important;
}

Expand Down Expand Up @@ -297,26 +318,21 @@
background: none !important;
}

// remove bar
.fZz.imm.zI7.iyn.Hsu {
background-color: @base;
}

// "created" and "saved" button backgrounds
.DUt.XiG._wN.hA-.wYR.zI7.iyn.Hsu {
background-color: transparent !important;
}

/* Pins */

div[data-test-id="PinBetterSaveDropdown"],
// board name to save to
// preview / dropdown
[data-test-id="PinBetterSaveDropdown"],
div[data-test-id="boardSelectionDropdown"] {
.xnr {
.B1n {
color: var(--color-text-light);
}

.PLa {
color: var(--color-text-icon-light);
.AR6 {
color: var(--color-text-light);
}
// background when opened
.G0a {
background-color: @mantle !important;
}
}

Expand Down Expand Up @@ -355,57 +371,95 @@
box-shadow: 0 0 0 1px @crust !important;
}

div[data-test-id="toast"] span div {
color: @mantle !important;
}

// board name to save to preview / dropdown
.tBJ.dyH.iFc.sAJ.B1n.zDA.IZT.H2s.CKL {
color: var(--color-text-light) !important;
// "Saved to" popup
div[role="status"],
div[data-test-id="toast"] {
// needed for Latte
.X8m {
color: @text !important;
}
// "Removed from your board" text after pressing undo
.B1n {
color: @text !important;
}
// popup color
.b0h {
background-color: @surface0;
}
// undo button
.a_A {
background-color: @surface1;
}
}

// back of send and ... buttons on pins
.x8f.INd._O1.KS5.mQ8.NSs {
background-color: @crust !important;
.NSs {
background-color: @mantle !important;
}

// Save button background
.akY.KI_.Hsu.USg.CCY.S9z.z_v.BG7.LDc.xD4.fZz.hUC.adn.Rk4.d24._O1.KS5.mQ8.Tbt.L4E.jKZ {
background-color: @accent-color !important;
//color: @text !important;
// Save button
button[aria-label="Save"] {
// text
.B1n {
color: var(--color-text-inverse);
}
}

// Save button text
.tBJ.dyH.iFc.sAJ.B1n.tg7.IZT.H2s {
color: var(--color-text-light) !important;
// Button when saved
button[aria-label="Pin Saved"] {
// text
.B1n {
color: @text;
}
// background
.kJo {
background-color: @surface0;
}
// border
.gSJ {
border-color: transparent;
}
}

// Saved button background
.akY.KI_.Hsu.USg.CCY.S9z.z_v.BG7.LDc.xD4.fZz.hUC.kJo.gSJ.d24._O1.KS5.mQ8.Tbt.L4E.jKZ {
// pin editing popout
// text
.X8m.zDA.IZT.tBJ.dyH.iFc.j1A.swG {
color: @text !important;
}
// buttons when hovered
.TzN {
background-color: @surface2 !important;
border-color: transparent;
}
// pin notes
textarea[id="PinNoteField"] {
color: @text;
}

// board picker flyout button
button[aria-label="save button"] {
.RCK.Hsu.USg.adn.CCY.NTm.KhY.S9z.Vxj.aZc.Zr3.hA-.Il7.hNT.BG7.hDj._O1.KS5.mQ8.Tbt.L4E {
background-color: @accent-color;
color: @accent-color;
}
/* Pin page */

// pin body shadow
div[data-test-id="closeup-body-style"] {
box-shadow: 0 1px 20px 0 fade(@text, 15%) !important;
background-color: @mantle;
}

// "Saved to __" popup text
.tBJ.dyH.iFc.j1A.X8m.zDA.swG {
color: var(--color-text-light) !important;
div[data-test-id="closeup-body-sticky-content"] {
background-color: @mantle;
}

/* Pin page */
div[data-test-id="closeup-action-items"] {
background-color: @mantle;
.imm {
background-color: @mantle;
}
}

// comment bar
div[data-test-id="inline-comment-composer-container"] {
border-color: transparent !important;
background: transparent !important;
border-color: @mantle !important;
background: @mantle !important;
}

div.public-DraftEditorPlaceholder-root {
color: @subtext1!important;
}
Expand All @@ -432,10 +486,11 @@
}
}

div[data-test-id="media-viewer-button"],
div[data-test-id="flashlight-button"],
div[data-test-id="flashlight"],
div[data-test-id="shop-button"] {
background-color: fadeout(@base, 20%) !important;
background-color: fadeout(@base, 15%) !important;
}

div[data-test-id="flashlight-dot-style"] {
Expand Down Expand Up @@ -520,6 +575,21 @@
}
}

// remove profile bar
.imm {
background-color: @base;
}

// "created" and "saved" button backgrounds on main profile page
.DUt.XiG._co._wN.hjq.zI7.iyn.Hsu {
background-color: @surface0 !important;
}

// Hide ugly block around section previews
.imm[data-test-id^="section"] {
background-color: transparent;
}

/* Settings */

input[type="checkbox"] ~ div {
Expand Down Expand Up @@ -576,7 +646,7 @@

/* Create */

div[style="background-color: rgba(255, 255, 255, 0.8); margin: 24px 0px 0px; z-index: 1;"] {
div[style*="background-color: rgba(255, 255, 255, 0.8); margin: 24px 0px 0px; z-index:"] {
background-color: fadeout(@base, 20%) !important;
}

Expand Down Expand Up @@ -764,13 +834,19 @@
background: @base !important;
}
// pin external link on hover
.Jea.KS5.MIw.RDc.Rym.b8T.ho-.ojN.rDA.zI7.iyn.Hsu {
background: @surface0 !important;
a[rel="noopener noreferrer nofollow"]:has(svg[aria-label="Link"]) {
div[style^="background-color: rgba(255, 255, 255, 0.9)"] {
background: @surface0 !important;
}
div[style^="background-color: rgb(255, 255, 255)"] {
background: @surface1 !important;
}
}
// pin body shadow
[data-test-id="closeup-body-landscape"] {
.Mhr.l7T.zI7.iyn.Hsu {
box-shadow: 0 1px 20px 0 fade(@text, 10%) !important;

// "more" buttom
[aria-label="more"] {
.NSs {
background: @surface0;
}
}
}
Expand Down
Loading