Guest User

tabs

a guest
Mar 25th, 2024
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/multi-row_tabs.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 tabs to appear on multiple lines */
  5. /* Tab reordering will not work and can't be made to work */
  6. /* You can use multi-row_tabs_window_control_patch.css to move window controls to nav-bar*/
  7.  
  8. /* You might want to move tabs-new-tab-button outside tabs toolbar for smoother behavior */
  9.  
  10. /* Change the --multirow-n-rows to change maximum number of rows before the rows will start to scroll */
  11.  
  12. :root{
  13. --multirow-n-rows: 3;
  14. --multirow-tab-min-width: 90px;
  15. --multirow-tab-dynamic-width: 0; /* Change to 0 for fixed-width tabs using the above width. */
  16. }
  17.  
  18.  
  19. /* Scrollbar can't be clicked but the rows can be scrolled with mouse wheel */
  20. /* Uncomment the next line if you want to be able to use the scrollbar with mouse clicks */
  21.  
  22. /* #tabbrowser-arrowscrollbox{ -moz-window-dragging: no-drag } */
  23.  
  24. /* 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 */
  25.  
  26.  
  27. @-moz-document url(chrome://browser/content/browser.xhtml){
  28. #scrollbutton-up~spacer,
  29. #scrollbutton-up,
  30. #scrollbutton-down{ display: var(--scrollbutton-display-model,initial) }
  31.  
  32. scrollbox[part][orient="horizontal"]{
  33. display: flex;
  34. flex-wrap: wrap;
  35. overflow-y: auto;
  36. max-height: calc(var(--tab-min-height) * var(--multirow-n-rows));
  37. scrollbar-color: currentColor transparent;
  38. scrollbar-width: thin;
  39. }
  40. }
  41.  
  42. .scrollbox-clip[orient="horizontal"],
  43. #tabbrowser-arrowscrollbox{
  44. overflow: -moz-hidden-unscrollable;
  45. display: block;
  46. --scrollbutton-display-model: none;
  47. }
  48.  
  49. .tabbrowser-tab{ height: var(--tab-min-height); }
  50.  
  51. #tabbrowser-tabs .tabbrowser-tab[pinned]{
  52. position: static !important;
  53. margin-inline-start: 0px !important;
  54. }
  55.  
  56. .tabbrowser-tab[fadein]:not([pinned]):not([style*="max-width"]) { max-width: 90px !important; }
  57. min-width: 90px !important;
  58. flex-grow: var(--multirow-tab-dynamic-width);
  59. /*
  60. Uncomment to enable full-width tabs, also makes tab dragging a tiny bit more sensible
  61. Don't set to none or you'll see errors in console when closing tabs
  62. */
  63. /*max-width: 100vw !important;*/
  64. }
  65.  
  66. .tabbrowser-tab > stack{ width: 100%; height: 100% }
  67.  
  68. #alltabs-button,
  69. :root:not([customizing]) #TabsToolbar #new-tab-button,
  70. #tabbrowser-arrowscrollbox > spacer,
  71. .tabbrowser-tab::after{ display: none !important }
  72. /* Hides Open Image In New Tab */
  73. #context-viewimage { display: none; }
  74.  
  75. /* Hides Open Video In New Tab */
  76. #context-viewvideo { display: none; }
  77.  
  78. /* Moves View Image to the very top */
  79. menuitem[id*="view-image-context-menu-item"] { -moz-box-ordinal-group: 50 !important; order: -10 !important; }
  80. menuitem[id*="view-video-context-menu-item"] { -moz-box-ordinal-group: 50 !important; order: -10 !important; }
Advertisement
Add Comment
Please, Sign In to add comment