Notizie: scarica ora l'ultima versione disponibile di Firefox!

Autore Topic: Aggiungere una seconda barra dei preferiti  (Letto 8919 volte)

0 Utenti e 1 Visitatore stanno visualizzando questo topic.

Offline Iceberg

  • Moderatore
  • Post: 9013
Re:Aggiungere una seconda barra dei preferiti
« Risposta #45 il: 20 Novembre 2022 15:32:56 »
Prego!
Ho unito la discussione con una prededente.
Riporto il codice aggiornato con le modifiche per Firefox 107.

Codice: [Seleziona]
/* 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. */

/* Makes bookmarks toolbar span multiple rows */

#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:not(#PlacesToolbarDropIndicatorHolder){
  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) * (4px + 1em + (2 * (var(--multirow-bmb-row-margin) + var(--uc-bm-padding,var(--bookmark-block-padding)))))) !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;
  visibility: visible !important; /* Just in case they would be hidden for some reason */
}

0 Utenti e 1 Visitatore stanno visualizzando questo topic.