From eec4e676ac0ecd3e8ae33d4a0da377cb008409c4 Mon Sep 17 00:00:00 2001 From: nekowinston Date: Thu, 21 Dec 2023 02:25:58 +0100 Subject: [PATCH] fix(substack): `color-scheme` and comment scrollbars (#408) --- styles/substack/catppuccin.user.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/styles/substack/catppuccin.user.css b/styles/substack/catppuccin.user.css index 53df4949df..725cc9c7bf 100644 --- a/styles/substack/catppuccin.user.css +++ b/styles/substack/catppuccin.user.css @@ -50,6 +50,7 @@ :root, .dark-mode { + color-scheme: if(@lookup=latte, light, dark); --color-primary: @text; --color-secondary: @subtext0; --color-bg-primary: @base; @@ -142,6 +143,20 @@ .button.user-indicator { background: var(--color-bg-secondary-themed) !important; } + + // comment boxes + .comment-input-wrap form.comment-input .comment-input-right textarea { + overflow-y: auto !important; + } + + ::-webkit-scrollbar { + background: @mantle; + width: 0.25rem; + } + ::-webkit-scrollbar-thumb { + background: @accent; + border-radius: 9999px; + } } @media (prefers-color-scheme: dark) {