Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  2. /* TABBAR */
  3. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  4.  
  5. /* Same background-color than NavBar */
  6. #titlebar { background: var(--toolbar-bgcolor) !important }
  7.  
  8. /* Make border-bottom transparent */
  9. #navigator-toolbox { border-bottom-color: transparent !important }
  10.  
  11. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  12. /* TABS ON BOTTOM */
  13. /* CREDITS: https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/Fx65_tabs_on_bottom.css */
  14.  
  15. :root { --uc-titlebar-padding: 0 }
  16. :root[sizemode="maximized"][tabsintitlebar] { --uc-titlebar-padding: 8px }
  17.  
  18. .titlebar-buttonbox-container {
  19. position: fixed;
  20. display: block;
  21. top: var(--uc-titlebar-padding,0);
  22. right: 0;
  23. height: 40px }
  24.  
  25. :root[uidensity="compact"] .titlebar-buttonbox-container { height: 32px }
  26.  
  27. #toolbar-menubar[inactive] > .titlebar-buttonbox-container { opacity: 0 }
  28.  
  29. #navigator-toolbox { padding-top: var(--uc-titlebar-padding,0) !important }
  30.  
  31. .titlebar-buttonbox-container > .titlebar-buttonbox { height: 100% }
  32.  
  33. #titlebar {
  34. -moz-box-ordinal-group: 2;
  35. -moz-appearance: none !important }
  36.  
  37. .titlebar-placeholder,
  38. #TabsToolbar .titlebar-spacer { display: none }
  39. /* Also hide the toolbox bottom border which isn't at bottom with this setup */
  40. #navigator-toolbox::after { display: none !important }
  41.  
  42. @media (-moz-gtk-csd-close-button) { .titlebar-button { -moz-box-orient: vertical } }
  43.  
  44. /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
  45. /* MULTI-ROW TABS */
  46. /* CREDITS: https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/multi-row_tabs.css
  47. Makes tabs to appear on multiple lines.
  48. Tab reordering will not work and can't be made to work.
  49. It's recommended to move tabs new-tab-button outside tabs toolbar. */
  50.  
  51. /* Change the --multirow-n-rows to change maximum number of rows before the rows will start to scroll */
  52. :root {
  53. --multirow-n-rows: 3;
  54. --multirow-tab-min-width: 100px;
  55. --multirow-tab-dynamic-width: 1 /* Change to 0 for fixed-width tabs using the above width. */ }
  56.  
  57. /* Scrollbar can't be clicked but the rows can be scrolled with mouse wheel.
  58. Uncomment the next line if you want to be able to use the scrollbar with mouse clicks */
  59. /* .tabbrowser-arrowscrollbox{ -moz-window-dragging: no-drag } */
  60.  
  61. /* 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 */
  62. #tabbrowser-tabs {
  63. min-height: unset !important;
  64. padding-inline-start: 0 !important }
  65.  
  66. /* Selectors for Firefox 71+ */
  67. /* These are not tabs toolbar specific but horizontal scrollbox isn't used elsewhere, except in bookmarks toolbar but there it doesn't have [part] attribute since it's not in shadow-root */
  68. @-moz-document url(chrome://browser/content/browser.xhtml) {
  69. .scrollbutton-up[orient="horizontal"][part]~spacer,
  70. .scrollbutton-up[orient="horizontal"][part],
  71. .scrollbutton-down[orient="horizontal"][part] { display: none }
  72.  
  73. scrollbox[part][orient="horizontal"] {
  74. display: flex;
  75. flex-wrap: wrap;
  76. overflow-y: auto;
  77. max-height: calc(var(--tab-min-height) * var(--multirow-n-rows));
  78. scrollbar-color: currentColor transparent;
  79. scrollbar-width: thin } }
  80.  
  81. /* Test for Firefox > 66 */
  82. @supports (inset-block:auto) {
  83. #tabbrowser-tabs > .tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
  84. display: flex;
  85. flex-wrap: wrap;
  86. overflow-y: auto;
  87. max-height: calc(var(--tab-min-height) * var(--multirow-n-rows));
  88. scrollbar-color: var(--toolbar-bgcolor) var(--lwt-accent-color);
  89. scrollbar-width: thin }
  90. #tabbrowser-tabs > .tabbrowser-arrowscrollbox {
  91. overflow: -moz-hidden-unscrollable;
  92. display: block } }
  93.  
  94. .tabbrowser-tab { height: var(--tab-min-height) }
  95. #tabbrowser-tabs .tabbrowser-tab[pinned] {
  96. position: static !important;
  97. margin-inline-start: 0 !important }
  98.  
  99. .tabbrowser-tab[fadein]:not([pinned]) {
  100. min-width: var(--multirow-tab-min-width) !important;
  101. flex-grow: var(--multirow-tab-dynamic-width);
  102. /* Uncomment to enable full-width tabs, also makes tab dragging a tiny bit more sensible.
  103. Don't set to none or you'll see errors in console when closing tabs. */
  104. /*max-width: 100vw !important;*/ }
  105.  
  106. .tabbrowser-tab > stack {
  107. width: 100%;
  108. height: 100% }
  109.  
  110. #tabbrowser-tabs .scrollbutton-up,
  111. #tabbrowser-tabs .scrollbutton-down,
  112. #alltabs-button,
  113. :root:not([customizing]) #TabsToolbar #new-tab-button,
  114. #tabbrowser-tabs spacer,
  115. .tabbrowser-tab::after { display: none !important }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement