Guest User

userChrome.css

a guest
Feb 9th, 2018
949
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.57 KB | None | 0 0
  1. /* MULTI-ROW TABS
  2.    based on https://www.reddit.com/r/FirefoxCSS/comments/7dclp7/multirow_tabs_in_ff57/
  3.    If tabs are too narrow, go into about:config and adjust browser.tabs.tabMinWidth
  4. */
  5.  
  6. /* General Rules */
  7. #tabbrowser-tabs .arrowscrollbox-scrollbox {
  8.   overflow: visible;
  9.   display: block;
  10. }
  11. #tabbrowser-tabs .scrollbox-innerbox {
  12.   display: flex;
  13.   flex-wrap: wrap;
  14.   min-height: var(--tab-min-height);
  15.   max-height: calc((5 * var(--tab-min-height)) + 1px) !important; /* up to 5 rows */
  16. }
  17. .tabbrowser-tab, .tab-background {
  18.   height: var(--tab-min-height);
  19. }
  20. .tab-stack {
  21.   width: 100%;
  22. }
  23. #main-window[sizemode="normal"] #TabsToolbar {
  24.   border-left: 1px solid #888 !important;
  25. }
  26. /* Title bar rules */
  27. #titlebar, #titlebar-buttonbox {
  28.   height: var(--tab-min-height) !important;
  29. }
  30. #titlebar {
  31.   margin-bottom: calc(var(--tab-min-height)*-1) !important;
  32. }
  33. #main-window[sizemode="maximized"] #titlebar {
  34.   margin-bottom: calc(6px + var(--tab-min-height)*-1) !important;
  35. }
  36. #titlebar:active {
  37.   margin-bottom: 0 !important;
  38. }
  39. #titlebar:active #titlebar-content {
  40.   margin-bottom: var(--tab-min-height) !important;
  41. }
  42. /* Remove unnecessary buttons and the blank areas at left and right */
  43. #tabbrowser-tabs .scrollbutton-up, #tabbrowser-tabs .scrollbutton-down,
  44. #alltabs-button, .tabbrowser-tab:not([fadein]),
  45. .titlebar-placeholder[type="pre-tabs"],
  46. .titlebar-placeholder[type="post-tabs"] {
  47.   display: none;
  48. }
  49. /* Ensure a border between tabs (#aaa is a light gray) */
  50. .tabbrowser-tab:not(:last-of-type) {
  51.   border-right: 1px solid #aaa !important;
  52. }
Add Comment
Please, Sign In to add comment