2020-05-22 05:13:58 +00:00
|
|
|
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/multi-row_bookmarks.css made available under Mozilla Public License v. 2.0
|
|
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
|
2019-04-30 17:20:47 +00:00
|
|
|
/* Makes bookmarks toolbar span multiple rows */
|
|
|
|
|
2021-11-21 06:03:05 +00:00
|
|
|
/* Dummy variable to support versions 94-96, can be removed when 96 lands */
|
|
|
|
:root{ --lwt-frame: var(--lwt-accent-color) }
|
|
|
|
|
2019-04-30 17:20:47 +00:00
|
|
|
#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;
|
|
|
|
}
|
|
|
|
|
2022-11-19 08:14:15 +00:00
|
|
|
#PlacesToolbar > hbox:not(#PlacesToolbarDropIndicatorHolder){
|
2019-04-30 17:20:47 +00:00
|
|
|
display: block;
|
|
|
|
width: 100vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
#PlacesToolbarItems{
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2020-01-18 20:04:18 +00:00
|
|
|
/* --uc-bm-padding is defined in autohide_bookmarks_toolbar.css */
|
2021-07-13 16:42:27 +00:00
|
|
|
max-height: calc(var(--multirow-bmb-n-rows) * (4px + 1em + (2 * (var(--multirow-bmb-row-margin) + var(--uc-bm-padding,var(--bookmark-block-padding)))))) !important;
|
2019-04-30 17:20:47 +00:00
|
|
|
overflow-y:auto;
|
2021-11-21 06:03:05 +00:00
|
|
|
scrollbar-color: var(--lwt-frame) var(--toolbar-bgcolor) ;
|
2019-04-30 17:20:47 +00:00
|
|
|
scrollbar-width: thin;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide the all-bookmarks button */
|
|
|
|
#PlacesChevron{ display: none }
|
|
|
|
|
|
|
|
/* Add some spacing between rows */
|
2022-11-08 03:35:16 +00:00
|
|
|
#PlacesToolbarItems > .bookmark-item{
|
|
|
|
margin: var(--multirow-bmb-row-margin) 3px !important;
|
|
|
|
visibility: visible !important; /* Just in case they would be hidden for some reason */
|
|
|
|
}
|