Skip to content

Instantly share code, notes, and snippets.

@syepes
Created March 12, 2020 21:33
Show Gist options
  • Select an option

  • Save syepes/7f2bcbebffe23425afd0acd9aa7f6332 to your computer and use it in GitHub Desktop.

Select an option

Save syepes/7f2bcbebffe23425afd0acd9aa7f6332 to your computer and use it in GitHub Desktop.
autohide - multi-row - bookmarks
#PersonalToolbar{
--multirow-bmb-n-rows: 3; /* Control how many rows are shown before scrolling */
--multirow-bmb-row-margin: 2px; /* Control how much spacing is between rows */
max-height: none !important;
}
#PlacesToolbar > hbox{
display: block;
width: 100vw;
}
#PlacesToolbarItems{
display: flex;
flex-wrap: wrap;
/* --uc-bm-padding is defined in autohide_bookmarks_toolbar.css */
max-height: calc(var(--multirow-bmb-n-rows) * (5px + 1em + (2 * (var(--multirow-bmb-row-margin) + var(--uc-bm-padding,2px))))) !important;
overflow-y: auto;
scrollbar-color: var(--lwt-accent-color) var(--toolbar-bgcolor) ;
scrollbar-width: thin;
}
/* Hide the all-bookmarks button */
#PlacesChevron{ display: none }
/* Add some spacing between rows */
#PlacesToolbarItems > .bookmark-item{ margin: var(--multirow-bmb-row-margin) 3px !important; }
/* autohide bookmarks */
#main-window #PersonalToolbar {
visibility: collapse !important;
}
#navigator-toolbox:hover > #PersonalToolbar{
visibility: visible !important;
}
/* Sidebar tweaks */
/* -------------- */
/* Remove minimum sidebar width limitation */
#sidebar { max-width: none !important; min-width: 12px !important; }
/* Bookmarks sidebar: hide "Search:"
#bookmarksPanel > hbox { display: none !important }
*/
/* Remove SIDEBAR HEADER and CLOSE X */
#sidebar-header { display: none !important;}
/* Tab bar tweaks */
/* -------------- */
/* Show Tab Close buttons only when hovered */
.tabbrowser-tab:not([pinned]):not(:hover) .tab-close-button { visibility: collapse !important; }
.tabbrowser-tab:not([pinned]):hover .tab-close-button { visibility: visible !important; display: block !important; }
@SteffJay
Copy link

Can someone tell me how to "auto unhide" the bookmark bar please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment