From d8f9d1de793e09c8bc99ac1a31f65bf4da6e9ae8 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Wed, 18 Nov 2020 05:37:18 +0200 Subject: [PATCH] Make capture box be part of urlbar-input-container --- chrome/click_selected_tab_to_focus_urlbar.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chrome/click_selected_tab_to_focus_urlbar.css b/chrome/click_selected_tab_to_focus_urlbar.css index 6a423b8..42396c8 100644 --- a/chrome/click_selected_tab_to_focus_urlbar.css +++ b/chrome/click_selected_tab_to_focus_urlbar.css @@ -22,7 +22,7 @@ See the above repository for updates as well as full license text. */ } /* Invisible capture box behind tabs*/ -:root:not([customizing]) #urlbar::before{ +:root:not([customizing]) #urlbar-input-container::before{ position: fixed; display: block; top: 0; @@ -32,9 +32,11 @@ See the above repository for updates as well as full license text. */ content: ""; } +#urlbar-input-container:focus-within::before{ display: none !important; } + /* Make tabs appear over the invisible box */ :root:not([customizing]) #tabbrowser-tabs{ position: relative; z-index: 1; pointer-events: none -} \ No newline at end of file +} \ No newline at end of file