From 36e6c112424596cd8eda0a5435e6be8cfdb72d64 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 16 Jun 2024 11:39:18 +0300 Subject: [PATCH] urlbar container color border: make outline follow urlbar size --- chrome/urlbar_container_color_border.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/chrome/urlbar_container_color_border.css b/chrome/urlbar_container_color_border.css index 6eda0a7..62bd523 100644 --- a/chrome/urlbar_container_color_border.css +++ b/chrome/urlbar_container_color_border.css @@ -3,7 +3,7 @@ See the above repository for updates as well as full license text. */ /* Draws a border around urlbar using the color of the current container. */ -#urlbar:not([open]) > #urlbar-input-container{ +.urlbar-input-container{ border-width: 0 !important; padding: 2px !important; } @@ -28,8 +28,11 @@ See the above repository for updates as well as full license text. */ 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; } +/* These might potentially cause some issues, but are needed to make the border extend the border to the full popup when urlbar popup is open */ +#urlbar[open] > .urlbar-input-container{ + position: static !important; + padding: calc(2px + var(--urlbar-margin-inline,5px)) !important; +} #urlbar[open] > #urlbar-background{ z-index: -1 !important; } /* OPTIONAL FEATURES */