diff --git a/chrome/autohide_bookmarks_and_main_toolbars.css b/chrome/autohide_bookmarks_and_main_toolbars.css index 05c297f..de82a7b 100644 --- a/chrome/autohide_bookmarks_and_main_toolbars.css +++ b/chrome/autohide_bookmarks_and_main_toolbars.css @@ -9,7 +9,6 @@ See the above repository for updates as well as full license text. */ } :root[uidensity="compact"] #navigator-toolbox{ - --uc-bm-padding: 1px; --uc-navbar-height: -34px; } :root[uidensity="touch"] #navigator-toolbox{ --uc-bm-padding: 6px } @@ -44,17 +43,7 @@ See the above repository for updates as well as full license text. */ } :root[sessionrestored]:not([customizing]) #navigator-toolbox{ - margin-bottom: calc(0px - var(--uc-bm-height) + var(--uc-navbar-height)); -} -#PlacesToolbarItems > .bookmark-item { - min-height: calc(var(--uc-bm-height) - 4px); /* Bookmarks have 2px block margin */ - padding-block: 0px !important; -} - -#OtherBookmarks, -#PlacesChevron, -#PersonalToolbar > #import-button{ - padding-block: var(--uc-bm-padding) !important; + margin-bottom: calc(-1px - var(--uc-bm-height) + var(--uc-navbar-height)); } /* Make sure the bookmarks toolbar is never collapsed even if it is disabled */ diff --git a/chrome/autohide_bookmarks_toolbar.css b/chrome/autohide_bookmarks_toolbar.css index 5b01b9d..053948b 100644 --- a/chrome/autohide_bookmarks_toolbar.css +++ b/chrome/autohide_bookmarks_toolbar.css @@ -3,7 +3,7 @@ See the above repository for updates as well as full license text. */ #PersonalToolbar{ --uc-bm-height: 20px; /* Might need to adjust if the toolbar has other buttons */ - --uc-bm-padding: 7px; /* Vertical padding to be applied to bookmarks */ + --uc-bm-padding: 4px; /* Vertical padding to be applied to bookmarks */ --uc-autohide-toolbar-delay: 600ms; /* The toolbar is hidden after 0.6s */ /* 0deg = "show" ; 90deg = "hide" ; Set the following to control when bookmarks are shown */ @@ -11,12 +11,11 @@ See the above repository for updates as well as full license text. */ --uc-autohide-toolbar-hover-rotation: 0deg; /* cursor is over the toolbar area */ } -:root[uidensity="compact"] #PersonalToolbar{ --uc-bm-padding: 1px; } :root[uidensity="touch"] #PersonalToolbar{ --uc-bm-padding: 7px } #PersonalToolbar:not([customizing]){ position: relative; - margin-bottom: calc(0px - var(--uc-bm-height) - 2 * var(--uc-bm-padding)); + margin-bottom: calc(-1px - var(--uc-bm-height) - 2 * var(--uc-bm-padding)); transform: rotateX(90deg); transform-origin: top; transition: transform 135ms linear var(--uc-autohide-toolbar-delay) !important;