Advertisement
Guest User

Firefox Multile Rows CSS

a guest
Oct 6th, 2024
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.73 KB | None | 0 0
  1. /* Multiple Rows of Tabs */
  2.     /* Borrowed from https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/multi-row_tabs.css */
  3.     /* Makes tabs to appear on multiple lines */
  4.     /* Tab reordering will not work and can't be made to work */
  5.     /* You can use multi-row_tabs_window_control_patch.css to move window controls to nav-bar*/
  6.  
  7.     /* It's recommended to move tabs new-tab-button outside tabs toolbar */
  8.  
  9.     /* Change the --multirow-n-rows to change maximum number of rows before the rows will start to scroll  */
  10.     /* This maximum visible rows won't work before Fx66 */
  11.     /* So this setting does nothing on Fx65 and all tab rows will be shown */
  12.     :root{
  13.         --tabs-lines: 9;
  14.         --tab_min_width_mlt: 212px;
  15.         --tab_max_width_mlt: 212px;
  16.         --tab-min-height_mlt: var(--tab-min-height,32px); /* set own value here, if used without configuration files */
  17.     }
  18.  
  19.     #tabbrowser-tabs{
  20.         min-height: unset !important;
  21.         padding-inline-start: 0px !important
  22.     }
  23.  
  24.     @-moz-document url(chrome://browser/content/browser.xhtml){
  25.         #scrollbutton-up~spacer,
  26.         #scrollbutton-up,
  27.         #scrollbutton-down{
  28.             display: var(--scrollbutton-display-model,initial);
  29.         }
  30.  
  31.         scrollbox[part][orient="horizontal"]{
  32.             display: flex;
  33.             flex-wrap: wrap;
  34.             overflow-y: hide;
  35.             max-height: calc(var(--tab-min-height_mlt) * var(--tabs-lines));
  36.             scrollbar-color: currentColor transparent;
  37.             scrollbar-width: thin;
  38.                     /* This selector is the fix: (copy this part into the relevant place in your own userChrome.css) */
  39.                > * {
  40.                   flex-wrap: wrap;
  41.                }
  42.         }
  43.     }
  44.  
  45.     .scrollbox-clip[orient="horizontal"],
  46.     #tabbrowser-arrowscrollbox{
  47.         overflow: -moz-hidden-unscrollable;
  48.         display: block;
  49.         --scrollbutton-display-model: none;
  50.     }
  51.  
  52.     /* If forced to use proton, delete the rest of MROT after this */
  53.     .tabbrowser-tab{
  54.         height: var(--tab-min-height_mlt);
  55.     }
  56.  
  57.     :-moz-any(.tabs-newtab-button,#tabs-newtab-button) {
  58.         height: var(--tab-min-height_mlt) !important;
  59.     }
  60.  
  61.     #tabbrowser-tabs .tabbrowser-tab[pinned]{
  62.         position: static !important;
  63.         margin-inline-start: 0px !important;
  64.     }
  65.  
  66.     .tabbrowser-tab[fadein]:not([pinned]) {
  67.         /*flex-grow: 1;*/
  68.         min-width: var(--tab_min_width_mlt) !important;
  69.         max-width: var(--tab_max_width_mlt) !important;
  70.     }
  71.  
  72.     .tabbrowser-tab > stack{
  73.         width: 100%;
  74.         height: 100%;
  75.     }
  76.  
  77.     #alltabs-button,
  78.     :root:not([customizing]) #TabsToolbar #new-tab-button,
  79.     #tabbrowser-arrowscrollbox > spacer,
  80.     .tabbrowser-tab::after{
  81.         display: none !important;
  82.     }
  83. /* End MROT */
  84.  
  85. /* Fixed Tab Width */
  86.     .tabbrowser-tab:not([pinned]) {min-width:212px;max-width:212px;width:212px !important;}
  87. /* End FTW */
  88.  
  89. /* Hide Tab Close Button */
  90.     #tabbrowser-tabs .tabbrowser-tab .tab-close-button { display:none!important; }
  91. /* End HTCB */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement