From 62818a31d4843373ec322eab915d0df46018f600 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 3 Jan 2020 15:39:36 +0200 Subject: [PATCH] Add options to select when to show bookmarks toolbar --- chrome/autohide_bookmarks_toolbar.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/chrome/autohide_bookmarks_toolbar.css b/chrome/autohide_bookmarks_toolbar.css index a390d62..5b34302 100644 --- a/chrome/autohide_bookmarks_toolbar.css +++ b/chrome/autohide_bookmarks_toolbar.css @@ -1,4 +1,4 @@ -/* Show bookmarks toolbar only when cursor is on top of toolbar area */ +/* Show bookmarks toolbar only when cursor is on top of toolbar area or urlbar is focused */ #PersonalToolbar:not([customizing]){ margin-bottom: -22px; @@ -10,4 +10,9 @@ :root[uidensity="compact"] #navigator-toolbox > #PersonalToolbar:not([customizing]){ margin-bottom: -20px } :root[uidensity="touch"] #navigator-toolbox > #PersonalToolbar:not([customizing]){ margin-bottom: -26px } -#navigator-toolbox:hover > #PersonalToolbar{ transform: rotateX(0) } \ No newline at end of file +/* SELECT BOOKMARKS TOOLBAR BEHAVIOR */ +/* Comment out to disable either one of these */ + +#nav-bar:focus-within + #PersonalToolbar, /* Show when urlbar is focused */ +#navigator-toolbox:hover > #PersonalToolbar /* Show when cursor is over the toolbar area */ +{ transform: rotateX(0) } \ No newline at end of file