From cd77c41af7e8669f212eefced2b2aa36f96117c2 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 14 Nov 2021 09:44:43 +0200 Subject: [PATCH] make it possible to extend fake border around urlbar popup This makes the input-container use static positioning which could potentially be problematic in some scenarios. --- chrome/urlbar_container_color_border.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/chrome/urlbar_container_color_border.css b/chrome/urlbar_container_color_border.css index 937738b..6eda0a7 100644 --- a/chrome/urlbar_container_color_border.css +++ b/chrome/urlbar_container_color_border.css @@ -7,7 +7,8 @@ See the above repository for updates as well as full license text. */ border-width: 0 !important; padding: 2px !important; } -#urlbar:not([open]) #userContext-icons::before{ + +#userContext-icons::before{ box-sizing: border-box; display: block; position: absolute; @@ -21,11 +22,16 @@ See the above repository for updates as well as full license text. */ outline-offset: -1px; pointer-events: none; } + #urlbar[focused] #userContext-icons::before{ outline-width: 2px; outline-offset: -2px } +/* These might potentially cause some issues, but are needed to make the border extend the border to the full popup when urlabar popup is open */ +#urlbar[open] > #urlbar-input-container{ position: static !important; } +#urlbar[open] > #urlbar-background{ z-index: -1 !important; } + /* OPTIONAL FEATURES */ /* Hide container label in urlbar */