Advertisement
Guest User

multi row

a guest
Jan 19th, 2022
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. /* Firefox Quantum userChrome.css tweaks ************************************************/
  2. /* Github: https://github.com/aris-t2/customcssforfx ************************************/
  3. /****************************************************************************************/
  4.  
  5. /****************************************************************************************/
  6. /* multirow / multiple tab lines - modified for CustomCSSforFx **************************/
  7. /* all credits go to the original authors: **********************************************/
  8. /* https://www.reddit.com/r/FirefoxCSS/comments/7dclp7/multirow_tabs_in_ff57/ ***********/
  9. /* https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/multi-row_tabs.css */
  10. /****************************************************************************************/
  11.  
  12.  
  13. /* NOTE ********************************************************************************/
  14. /* Variables are set inside '.\config\' folders CSS files, if complete package is used! */
  15.  
  16. :root{
  17. --tabs-lines: 3; /* row count */
  18. --tab_min_width_mlt: 90px; /* tab min width */
  19. --tab_max_width_mlt: 100px; /* tab max width */
  20. --tab-min-height_mlt: 60; /* modified by me */
  21.  
  22. /*--tab-min-height_mlt: var(--tab-min-height,75px); /* set own value here, if used without configuration files */
  23. }
  24.  
  25. #tabbrowser-tabs{
  26. min-height: unset !important;
  27. padding-inline-start: 0px !important
  28. }
  29.  
  30. @-moz-document url(chrome://browser/content/browser.xhtml){
  31. #scrollbutton-up~spacer,
  32. #scrollbutton-up,
  33. #scrollbutton-down{
  34. display: var(--scrollbutton-display-model,initial);
  35. }
  36.  
  37. scrollbox[part][orient="horizontal"]{
  38. display: flex;
  39. flex-wrap: wrap;
  40. overflow-y: auto;
  41. max-height: calc(var(--tab-min-height_mlt) * var(--tabs-lines)); /* */
  42. scrollbar-color: currentColor transparent;
  43. scrollbar-width: thin;
  44. }
  45. }
  46.  
  47. .scrollbox-clip[orient="horizontal"],
  48. #tabbrowser-arrowscrollbox{
  49. overflow: -moz-hidden-unscrollable;
  50. display: block;
  51. --scrollbutton-display-model: none;
  52. }
  53.  
  54. .tabbrowser-tab{
  55. height: var(--tab-min-height_mlt);
  56. }
  57.  
  58. :-moz-any(.tabs-newtab-button,#tabs-newtab-button) {
  59. height: var(--tab-min-height_mlt) !important;
  60. }
  61.  
  62. #tabbrowser-tabs .tabbrowser-tab[pinned]{
  63. position: static !important;
  64. margin-inline-start: 0px !important;
  65. }
  66.  
  67. .tabbrowser-tab[fadein]:not([pinned]) {
  68. flex-grow: 1;
  69. min-width: var(--tab_min_width_mlt) !important;
  70. max-width: var(--tab_max_width_mlt) !important;
  71. }
  72.  
  73. .tabbrowser-tab > stack{
  74. width: 100%;
  75. height: 100%;
  76. }
  77.  
  78. #urlbar-background { border-radius: 12px !important; } /* rounded adress bar */
  79.  
  80. .tabbrowser-tab:not([pinned]):hover .tab-close-button{ /* close button on hover */
  81. display:-moz-box !important;
  82. }
  83.  
  84. #alltabs-button,
  85. :root:not([customizing]) #TabsToolbar #new-tab-button,
  86. #tabbrowser-arrowscrollbox > spacer,
  87. .tabbrowser-tab::after{
  88. display: none !important;
  89. }
  90.  
  91. :root {
  92. --tab-toolbar-navbar-overlap: 0px !important;
  93. --tab-min-height_tnot: 32px;
  94. --tab-min-height: 28px !important;
  95. --arrowpanel-menuitem-padding: 1px 2px !important;
  96. --user-tab-rounding: 6px !important;
  97. }
  98.  
  99.  
  100. @media (-moz-proton) {
  101. .tab-background {
  102. border-radius: var(--user-tab-rounding) var(--user-tab-rounding) 0px 0px !important;
  103. margin-block: 1px 0 !important;
  104. }
  105. }
  106.  
  107.  
  108. menupopup > menuitem, menupopup > menu {
  109. padding-block: 1px !important;
  110. }
  111.  
  112. .tab-background{ border-bottom: none !important } /* ?? */
  113.  
  114. #navigator-toolbox { --lwt-tabs-border-color: transparent !important; }
  115. #tabbrowser-tabs{ --lwt-tab-line-color: transparent !important; }
  116.  
  117. #urlbar-background,
  118. #searchbar {
  119. border: 1px solid var(--chrome-content-separator-color) !important;
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement