From ae0e3702c7a51683db44b3063406c0657138e5d4 Mon Sep 17 00:00:00 2001 From: Isabel Date: Thu, 12 Dec 2024 22:58:59 +0000 Subject: [PATCH] fix(youtube): search bar (#1487) Co-authored-by: FlyingButterflyTuna --- styles/youtube/catppuccin.user.css | 41 ++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/styles/youtube/catppuccin.user.css b/styles/youtube/catppuccin.user.css index 89ece5e4..ac21f88e 100644 --- a/styles/youtube/catppuccin.user.css +++ b/styles/youtube/catppuccin.user.css @@ -2,7 +2,7 @@ @name YouTube Catppuccin @namespace github.com/catppuccin/userstyles/styles/youtube @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/youtube -@version 4.2.14 +@version 4.2.15 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/youtube/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Ayoutube @description Soothing pastel theme for YouTube @@ -678,11 +678,48 @@ } /* Search box */ - ytd-searchbox[has-focus] #container.ytd-searchbox { border-color: @accent-color; } + .ytSearchboxComponentInputBox, .ytSearchboxComponentInputBoxDark { + background: var(--ytd-searchbox-background) !important; + color: var(--ytd-searchbox-text-color) !important; + border-color: var(--ytd-searchbox-border-color) !important; + box-shadow: none; + } + + .ytSearchboxComponentInputBoxHasFocus, .ytSearchboxComponentInputBoxHasFocusDark { + border-color: @accent-color !important; + } + + .ytSuggestionComponentSuggestionHover:hover, .ytSuggestionComponentSuggestionHoverDark:hover { + background: @surface1 !important; + } + + .ytSearchboxComponentSuggestionsContainer, .ytSearchboxComponentSuggestionsContainerDark { + background: var(--yt-spec-raised-background) !important; + border-color: var(--yt-spec-raised-background) !important; + } + + .ytSuggestionComponentSuggestion, .ytSuggestionComponentSuggestionDark { + color: var(--ytd-searchbox-text-color) !important; + } + + .ytSearchboxComponentSearchButton, .ytSearchboxComponentSearchButtonDark { + color: var(--ytd-searchbox-text-color) !important; + background: @surface0 !important; + border-color: var(--ytd-searchbox-border-color) !important; + } + + .ytSearchboxComponentClearButtonIcon, .ytSearchboxComponentClearButtonIconDark { + color: var(--ytd-searchbox-text-color) !important; + } + + .ytSearchboxComponentReportButton, .ytSearchboxComponentReportButtonDark, .ytSuggestionComponentRemoveLink, .ytSuggestionComponentRemoveLinkDark { + color: @subtext0 !important; + } + .sbsb_a { background: @surface0; }