From ce9ec080e431d687f2187a39d66096c8e28e4090 Mon Sep 17 00:00:00 2001 From: "Gen :)" Date: Sun, 24 Mar 2024 13:26:21 -0700 Subject: [PATCH] fix(instagram): assorted fixes (#699) fix(instagram): assorted fixes (you're all caught up checkbox, story progress bar, dm message timestamp and more) --- styles/instagram/catppuccin.user.css | 258 +++++++++++++++------------ 1 file changed, 144 insertions(+), 114 deletions(-) diff --git a/styles/instagram/catppuccin.user.css b/styles/instagram/catppuccin.user.css index 21095191..6f0d2577 100644 --- a/styles/instagram/catppuccin.user.css +++ b/styles/instagram/catppuccin.user.css @@ -2,7 +2,7 @@ @name Instagram Catppuccin @namespace github.com/catppuccin/userstyles/styles/instagram @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/instagram -@version 0.1.9 +@version 0.2.0 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/instagram/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Ainstagram @description Soothing pastel theme for Instagram @@ -13,23 +13,18 @@ @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 text scrollbar_width "Scrollbar width" 8px ==/UserStyle== */ @-moz-document domain('instagram.com') { - @rgb-raw: red; #rgbify(@color) { @rgb-raw: red(@color), green(@color), blue(@color); } - ._aa4d { #catppuccin(@darkFlavor, @accentColor); } ._aa4c { #catppuccin(@lightFlavor, @accentColor); } - #catppuccin(@lookup, @accent) { @rosewater: @catppuccin[@@lookup][@rosewater]; @flamingo: @catppuccin[@@lookup][@flamingo]; @@ -58,72 +53,62 @@ @mantle: @catppuccin[@@lookup][@mantle]; @crust: @catppuccin[@@lookup][@crust]; @accent-color: @catppuccin[@@lookup][@@accent]; + @text-filter: @catppuccin[@@lookup][@text-filter]; + @dark-color: if(@lookup = latte, @text, @crust); + @light-color: if(@lookup = latte, @crust, @text); - @text_filter: @catppuccin[@@lookup][@text_filter]; - @dark_color: if(@lookup=latte, @text, @crust); - @light_color: if(@lookup=latte, @crust, @text); + --web-always-black: #rgbify(@dark-color) []; + --web-always-white: #rgbify(@light-color) []; + --always-white: #rgbify(@light-color) []; + --overlay-alpha-80: fadeout(@dark-color, 50); + --always-dark-overlay: fadeout(@surface0, 50); + --grey-9: #rgbify(@text) []; + --ig-primary-background: #rgbify(@base) []; + --ig-secondary-background: #rgbify(@surface0) []; + --ig-banner-background: #rgbify(@crust) []; + --ig-highlight-background: #rgbify(@surface0) []; + --ig-elevated-background: #rgbify(@crust) []; + --ig-elevated-highlight-background: #rgbify(@surface0) []; + --ig-hover-overlay: #rgbify(@text) [], 0.1; + --hover-overlay: fadeout(@surface0, 80); + --ig-text-on-color: #rgbify(@crust) []; + --ig-badge: #rgbify(@accent-color) []; + --ig-primary-button: #rgbify(@accent-color) []; + --ig-primary-button-hover: fadeout(@accent-color, 20); + --ig-secondary-button-background: #rgbify(@surface0) []; + --ig-secondary-button-hover: #rgbify(@surface1) []; + --ig-secondary-button: #rgbify(@text) []; + --ig-primary-text: #rgbify(@text) []; + --ig-secondary-text: #rgbify(@subtext0) []; + --ig-tertiary-text: #rgbify(@subtext0) []; + --wbloks-primary-text: @text; + --ig-text-on-media: #rgbify(@text) []; + --ig-separator: #rgbify(@surface0) []; + --chat-admin-text-color: #rgbify (@subtext0) []; + --ig-elevated-separator: #rgbify(@surface0) []; + --post-separator: #rgbify(@overlay0) []; + --ig-stroke: #rgbify(@overlay0) []; + --grey-2: #rgbify(@overlay0) []; + --ig-link: #rgbify(@accent-color) []; + --ig-error-or-destructive: #rgbify(@maroon) []; + --ig-success: #rgbify(@green) []; + --blue-2: #rgbify(@blue) []; + --ig-close-friends-refreshed: #rgbify(@green) []; + --ig-text-input-border-hover-prism: #rgbify(@surface1) []; + scrollbar-color: @accent-color @crust; - * { - --web-always-black: #rgbify(@dark_color) []; - --web-always-white: #rgbify(@light_color) []; - --always-white: #rgbify(@light_color) []; - --overlay-alpha-80: fadeout(@dark_color, 50); - --always-dark-overlay: fadeout(@surface0, 50); - - --ig-primary-background: #rgbify(@base) []; - --ig-secondary-background: #rgbify(@surface0) []; - --ig-banner-background: #rgbify(@crust) []; - --ig-highlight-background: #rgbify(@surface0) []; - --ig-elevated-background: #rgbify(@crust) []; - --ig-elevated-highlight-background: #rgbify(@surface0) []; - --ig-hover-overlay: fadeout(@surface0, 50); - --hover-overlay: fadeout(@surface0, 80); - - --ig-text-on-color: #rgbify(@crust) []; - - --ig-badge: #rgbify(@accent-color) []; - - --ig-primary-button: #rgbify(@accent-color) []; - --ig-primary-button-hover: fadeout(@accent-color, 20); - - --ig-secondary-button-background: #rgbify(@surface0) []; - --ig-secondary-button-hover: #rgbify(@surface1) []; - --ig-secondary-button: #rgbify(@text) []; - - --ig-primary-text: #rgbify(@text) []; - --ig-secondary-text: #rgbify(@subtext0) []; - --ig-tertiary-text: #rgbify(@subtext0) []; - --wbloks-primary-text: @text; - --ig-text-on-media: #rgbify(@text) []; - - --ig-separator: #rgbify(@overlay0) []; - --post-separator: #rgbify(@overlay0) []; - --ig-elevated-separator: #rgbify(@overlay0) []; - --ig-stroke: #rgbify(@overlay0) []; - --grey-2: #rgbify(@overlay0) []; - - --ig-link: #rgbify(@accent-color) []; - --ig-error-or-destructive: #rgbify(@maroon) []; - --ig-success: #rgbify(@green) []; - --blue-2: #rgbify(@blue) []; - - --ig-text-input-border-hover-prism: #rgbify(@surface1) []; - - scrollbar-width: none; - scrollbar-color: @accent-color @crust; - } //placehoder textcolor .xh8yej3 { color: @subtext0 !important; } // Text selection *::selection { - color: @dark_color; + color: @dark-color; background-color: @accent-color; - } // Sidebar + } + /* Sidebar */ .x1xgvd2v { background-color: @crust !important; - &[style="transform: translateX(0px);"] { background-color: @mantle !important; } @@ -135,28 +120,35 @@ stroke: @text; } - // Posts + /* story progress bar */ + ._ac3p { + background-color: @accent-color !important; + } + + /* Posts */ ._aggc { background-color: @mantle; border-color: @overlay0 !important; border-radius: var(--modal-border-radius); - box-shadow: 0 3px 5px -1px fadeout(@dark_color, 20); + box-shadow: 0 3px 5px -1px fadeout(@dark-color, 20); box-sizing: border-box; } - ._aatc ._aasi, ._ae1i, ._aggc textarea.xvbhtw8 { background-color: @mantle; - } // Icons + } + + /* Icons */ svg { color: @text; fill: @text; } - svg[aria-label="Unlike"] { fill: @accent-color; - } // The close icon on the dark wrapper + } + + /* The close icon on the dark wrapper */ svg[aria-label="Close"] { color: var(--web-always-white); } @@ -164,7 +156,7 @@ fill: @accent-color; } - //Share box + /* Share box */ .xzloghq { background-color: @blue; &:hover { @@ -174,20 +166,18 @@ } .xk5f4mz { background-color: @mantle; - &:hover { background-color: @accent-color; } } .x3nfvp2 { - color: @text; + color: @text !important; &:hover { - color: @mantle; + color: @crust; } } - //all toggle sliders - + /* Toggle sliders */ .x1r7x56h { background-color: @accent-color; } @@ -200,19 +190,14 @@ .x1psfjxj { background-color: @text; } - span[data-bloks-name="bk.components.TextSpan"] { color: @accent-color !important; } - - // Log In With Facebook text + /* Log In With Facebook text */ ._ab37 { color: @blue; } - - // Excluded: - // - _9ys7, _9_1f, _9ys8 (verified icon) - + /* Excluded: - _9ys7, _9_1f, _9ys8 (verified icon) */ [style*='background-image: url("https://static.cdninstagram.com/rsrc.php/v3/y4/r/ewSyA8IItw_.png")'], ._9zkj, ._a3ds, @@ -494,8 +479,10 @@ ._9_1l, ._9_1m, ._a9pw { - filter: @text_filter; - } // Custom icons + filter: @text-filter; + } + + /* Custom icons */ @instagram_gradient: radial-gradient( circle at 30% 107%, @yellow 0%, @@ -504,17 +491,30 @@ @mauve 60%, @blue 90% ); + /* "All caught up" icon */ + img[src="/images/instagram/xig/web/illo-confirm-refresh-light.png"] { + @svg: escape( + '' + ); + height: 0 !important; + width: 0 !important; + padding-left: 96px !important; + padding-top: 96px !important; + background: url("data:image/svg+xml,@{svg}") no-repeat !important; + } [style*='background-image: url("https://static.cdninstagram.com/rsrc.php/v3/y4/r/ewSyA8IItw_.png")'] { - // No photo icon + /* No photo icon */ &[style*="background-position: 0px -97px"] { filter: none; background: @mauve !important; background: @instagram_gradient !important; mask-image: url("https://static.cdninstagram.com/rsrc.php/v3/y4/r/ewSyA8IItw_.png"); mask-position: 0 -97px; - } // Private page icon + } + + /* Private page icon */ &[style*="background-position: -49px -97px"] { filter: none; background: @mauve !important; @@ -530,18 +530,28 @@ mask-image: url("https://static.cdninstagram.com/rsrc.php/v3/y4/r/ewSyA8IItw_.png"); mask-position: -49px 0; } - } // Post swipe icons + } + + /* Post swipe icons */ ._aaqh { background-color: @surface0; - } // Inside primary buttons + } + + /* Inside primary buttons */ .xzloghq, ._acas:not(._acao) { &, svg { - color: @base; - fill: @base; + color: @crust !important; + fill: @mantle; } - } // Secondary buttons + } + ._acas:not(._acao):hover { + background-color: @surface0 !important; + color: @accent-color !important; + } + + /* Secondary buttons */ .x1gjpkn9, ._acat, ._acap { @@ -553,23 +563,27 @@ } } } - // Profile banner + + /* Profile banner */ div:has(> .x1mu97ne) { background-color: @crust; border-color: @overlay0; - box-shadow: 0 10px 35px 2px fadeout(@dark_color, 0.7); + box-shadow: 0 10px 35px 2px fadeout(@dark-color, 0.7); } - // Dialog overlay + + /* Dialog overlay */ .x7r02ix[role="dialog"] { - box-shadow: 0 5px 10px 0 fadeout(@dark_color, 0.5); + box-shadow: 0 5px 10px 0 fadeout(@dark-color, 0.5); } - // Input placeholders + + /* Input placeholders */ ._ac4d::placeholder, ._aauy::placeholder, textarea::placeholder { color: @subtext0; } - // Settings + + /* Settings */ ._ab81 { background-color: @mantle; } @@ -579,28 +593,32 @@ ._aav4 { background-color: @crust; } - // Bloks + + /* Bloks */ .wbloks_1[data-bloks-name="bk.components.Collection"] { background-color: @base !important; } div[data-bloks-name="bk.components.Flexbox"], .wbloks_1[data-bloks-name="bk.components.Flexbox"] { - // Radios have left padding + /* Radios have left padding */ padding-left: 0 !important; - // The heading + + /* The heading */ &[style*="background: rgb(0\, 0\, 0)"], &[style*="background: rgb(255\, 255\, 255)"] { background-color: @base !important; } - // Radios + + /* Radios */ &[style*="border-radius: 10.5px"], &[style*="border-radius: 12px"], &[style*="border-radius: 4px"] { - // Selected radio + /* Selected radio */ &[style*="background: rgb(0\, 149\, 246)"] { background-color: @accent-color !important; } - // Not selected radio + + /* Not selected radio */ &[style*="background: rgb(219\, 219\, 219)"], &[style*="background: rgb(38\, 38\, 38)"], &[style*="background: rgb(54\, 54\, 54)"], @@ -608,7 +626,8 @@ background-color: @surface0 !important; } } - // That "border" + + /* That "border" */ &[style*="background: rgb(38\, 38\, 38)"] { display: none; } @@ -626,19 +645,21 @@ &[style*="color: rgb(142\, 142\, 142)"] { color: @subtext0 !important; } - } // Map pop-ups + } + + /* Map pop-ups */ .leaflet-popup-content-wrapper, .leaflet-popup-tip { background-color: @mantle; - box-shadow: 0 5px 15px fadeout(@dark_color, 0.4); + box-shadow: 0 5px 15px fadeout(@dark-color, 0.4); * { color: @text !important; } } - // Scrollbar + + /* Scrollbar */ ::-webkit-scrollbar { - width: @scrollbar_width; background-color: @crust; } @@ -683,7 +704,8 @@ @mantle: @catppuccin[@@lookup][@mantle]; @crust: @catppuccin[@@lookup][@crust]; @accent-color: @catppuccin[@@lookup][@@accent]; - // Chat background + + /* Chat background */ .xnz67gz { background-color: @base; } @@ -694,15 +716,23 @@ .xvbhtw8 { background-color: @mantle; } - + .x186z157, + .xk50ysn, + .xi81zsa { + color: @subtext0 !important; + } ._aa5c, ._aa4j, ._abyk { background-color: @crust; - } // New Chat Button + } + + /* New Chat Button */ .xk5f4mz { background-color: @surface0; - } // Chat button + } + + /* Chat button */ .x1i10hfl:hover { background-color: @surface0; color: @text; @@ -714,19 +744,19 @@ @catppuccin: { @latte: { @rosewater: #dc8a78; @flamingo: #dd7878; @pink: #ea76cb; @mauve: #8839ef; @red: #d20f39; @maroon: #e64553; @peach: #fe640b; @yellow: #df8e1d; @green: #40a02b; @teal: #179299; @sky: #04a5e5; @sapphire: #209fb5; @blue: #1e66f5; @lavender: #7287fd; @text: #4c4f69; @subtext1: #5c5f77; @subtext0: #6c6f85; @overlay2: #7c7f93; @overlay1: #8c8fa1; @overlay0: #9ca0b0; @surface2: #acb0be; @surface1: #bcc0cc; @surface0: #ccd0da; @base: #eff1f5; @mantle: #e6e9ef; @crust: #dce0e8; - @text_filter: brightness(0) saturate(100%) invert(28%) sepia(17%) saturate(835%) hue-rotate(196deg) brightness(97%) contrast(85%); + @text-filter: brightness(0) saturate(100%) invert(28%) sepia(17%) saturate(835%) hue-rotate(196deg) brightness(97%) contrast(85%); }; @frappe: { @rosewater: #f2d5cf; @flamingo: #eebebe; @pink: #f4b8e4; @mauve: #ca9ee6; @red: #e78284; @maroon: #ea999c; @peach: #ef9f76; @yellow: #e5c890; @green: #a6d189; @teal: #81c8be; @sky: #99d1db; @sapphire: #85c1dc; @blue: #8caaee; @lavender: #babbf1; @text: #c6d0f5; @subtext1: #b5bfe2; @subtext0: #a5adce; @overlay2: #949cbb; @overlay1: #838ba7; @overlay0: #737994; @surface2: #626880; @surface1: #51576d; @surface0: #414559; @base: #303446; @mantle: #292c3c; @crust: #232634; - @text_filter: brightness(0) saturate(100%) invert(84%) sepia(5%) saturate(1519%) hue-rotate(192deg) brightness(100%) contrast(93%); + @text-filter: brightness(0) saturate(100%) invert(84%) sepia(5%) saturate(1519%) hue-rotate(192deg) brightness(100%) contrast(93%); }; @macchiato: { @rosewater: #f4dbd6; @flamingo: #f0c6c6; @pink: #f5bde6; @mauve: #c6a0f6; @red: #ed8796; @maroon: #ee99a0; @peach: #f5a97f; @yellow: #eed49f; @green: #a6da95; @teal: #8bd5ca; @sky: #91d7e3; @sapphire: #7dc4e4; @blue: #8aadf4; @lavender: #b7bdf8; @text: #cad3f5; @subtext1: #b8c0e0; @subtext0: #a5adcb; @overlay2: #939ab7; @overlay1: #8087a2; @overlay0: #6e738d; @surface2: #5b6078; @surface1: #494d64; @surface0: #363a4f; @base: #24273a; @mantle: #1e2030; @crust: #181926; - @text_filter: brightness(0) saturate(100%) invert(80%) sepia(18%) saturate(377%) hue-rotate(192deg) brightness(103%) contrast(92%); + @text-filter: brightness(0) saturate(100%) invert(80%) sepia(18%) saturate(377%) hue-rotate(192deg) brightness(103%) contrast(92%); }; @mocha: { @rosewater: #f5e0dc; @flamingo: #f2cdcd; @pink: #f5c2e7; @mauve: #cba6f7; @red: #f38ba8; @maroon: #eba0ac; @peach: #fab387; @yellow: #f9e2af; @green: #a6e3a1; @teal: #94e2d5; @sky: #89dceb; @sapphire: #74c7ec; @blue: #89b4fa; @lavender: #b4befe; @text: #cdd6f4; @subtext1: #bac2de; @subtext0: #a6adc8; @overlay2: #9399b2; @overlay1: #7f849c; @overlay0: #6c7086; @surface2: #585b70; @surface1: #45475a; @surface0: #313244; @base: #1e1e2e; @mantle: #181825; @crust: #11111b; - @text_filter: brightness(0) saturate(100%) invert(85%) sepia(6%) saturate(1356%) hue-rotate(194deg) brightness(103%) contrast(91%); + @text-filter: brightness(0) saturate(100%) invert(85%) sepia(6%) saturate(1356%) hue-rotate(194deg) brightness(103%) contrast(91%); }; }