MrMobodies

Multi tab(ontop) and bookmarks

May 22nd, 2021
514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/multi-row_bookmarks.css made available under Mozilla Public License v. 2.0
  2. See the above repository for updates as well as full license text. */
  3.  
  4. /* Makes bookmarks toolbar span multiple rows */
  5.  
  6. #PersonalToolbar{
  7. --multirow-bmb-n-rows: 3; /* Control how many rows are shown before scrolling */
  8. --multirow-bmb-row-margin: 2px; /* Control how much spacing is between rows */
  9. max-height: none !important;
  10. }
  11.  
  12. #PlacesToolbar > hbox{
  13. display: block;
  14. width: 100vw;
  15. }
  16.  
  17. #PlacesToolbarItems{
  18. display: flex;
  19. flex-wrap: wrap;
  20. /* --uc-bm-padding is defined in autohide_bookmarks_toolbar.css */
  21. max-height: calc(var(--multirow-bmb-n-rows) * (5px + 1em + (2 * (var(--multirow-bmb-row-margin) + var(--uc-bm-padding,4px))))) !important;
  22. overflow-y:auto;
  23. scrollbar-color: var(--lwt-accent-color) var(--toolbar-bgcolor) ;
  24. scrollbar-width: thin;
  25. }
  26.  
  27. /* Hide the all-bookmarks button */
  28. #PlacesChevron{ display: none }
  29.  
  30. /* Add some spacing between rows */
  31. #PlacesToolbarItems > .bookmark-item{ margin: var(--multirow-bmb-row-margin) 3px !important; }
  32.  
  33.  
  34. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/multi-row_tabs.css made available under Mozilla Public License v. 2.0
  35. See the above repository for updates as well as full license text. */
  36.  
  37. /* Makes tabs to appear on multiple lines */
  38. /* Tab reordering will not work and can't be made to work */
  39. /* You can use multi-row_tabs_window_control_patch.css to move window controls to nav-bar*/
  40.  
  41. /* You might want to move tabs-new-tab-button outside tabs toolbar for smoother behavior */
  42.  
  43. /* Change the --multirow-n-rows to change maximum number of rows before the rows will start to scroll */
  44.  
  45. :root{
  46. --multirow-n-rows: 3;
  47. --multirow-tab-min-width: 100px;
  48. --multirow-tab-dynamic-width: 1; /* Change to 0 for fixed-width tabs using the above width. */
  49. }
  50.  
  51. /* Scrollbar can't be clicked but the rows can be scrolled with mouse wheel */
  52. /* Uncomment the next line if you want to be able to use the scrollbar with mouse clicks */
  53.  
  54. /* #tabbrowser-arrowscrollbox{ -moz-window-dragging: no-drag } */
  55.  
  56. /* Uncommenting the above makes you unable to drag the window from empty space in the tab strip but normal draggable spaces will continue to work */
  57.  
  58. #tabbrowser-tabs{
  59. min-height: unset !important;
  60. padding-inline-start: 0px !important
  61. }
  62.  
  63. @-moz-document url(chrome://browser/content/browser.xhtml){
  64. #scrollbutton-up~spacer,
  65. #scrollbutton-up,
  66. #scrollbutton-down{ display: var(--scrollbutton-display-model,initial) }
  67. scrollbox[part][orient="horizontal"]{
  68. display: flex;
  69. flex-wrap: wrap;
  70. overflow-y: auto;
  71. max-height: calc(var(--tab-min-height) * var(--multirow-n-rows));
  72. scrollbar-color: currentColor transparent;
  73. scrollbar-width: thin;
  74. }
  75. }
  76.  
  77. .scrollbox-clip[orient="horizontal"],
  78. #tabbrowser-arrowscrollbox{
  79. overflow: -moz-hidden-unscrollable;
  80. display: block;
  81. --scrollbutton-display-model: none;
  82. }
  83.  
  84. .tabbrowser-tab{ height: var(--tab-min-height); }
  85.  
  86. #tabbrowser-tabs .tabbrowser-tab[pinned]{
  87. position: static !important;
  88. margin-inline-start: 0px !important;
  89. }
  90.  
  91. .tabbrowser-tab[fadein]:not([pinned]){
  92. min-width: var(--multirow-tab-min-width) !important;
  93. flex-grow: var(--multirow-tab-dynamic-width);
  94. /*
  95.  
  96. }
Advertisement
Add Comment
Please, Sign In to add comment