Guest User

treestyletab.css

a guest
Mar 21st, 2023
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. /* Show title of unread tabs with red and italic font */
  2. /*
  3. :root.sidebar tab-item.unread .label-content {
  4. color: red !important;
  5. font-style: italic !important;
  6. }
  7. */
  8.  
  9. /* Add private browsing indicator per tab */
  10. /*
  11. :root.sidebar tab-item.private-browsing tab-label:before {
  12. content: "🕶";
  13. }
  14. */
  15.  
  16.  
  17.  
  18.  
  19. /* Hide border on tab bar, force its state to 'scroll', adjust margin-left for width of scrollbar. */
  20. #tabbar {
  21. border: 0;
  22. scrollbar-width: none;
  23. overflow: scroll !important;
  24. margin-top: 0 !important;
  25. }
  26.  
  27. /* Include 'reveal' animation ... stagers by level */
  28. #tabbar .tab {
  29. transition: 0.1s margin-top, 0.2s 0.1s margin-left, 0.2s 0.1s visibility;
  30. }
  31.  
  32. /* delay transitions on open */
  33. #tabbar:not(:hover) .tab {
  34. transition-delay: 0s;
  35. margin-left: 0;
  36. }
  37.  
  38. /* animate twisty reveal */
  39. #tabbar .tab .twisty {
  40. transition: 0.2s margin;
  41. }
  42.  
  43. /* general tabs */
  44. .tab {
  45. background-color: transparent;
  46. }
  47. .tab,
  48. .tab.pinned {
  49. height: 2.8em;
  50. }
  51.  
  52. /* Push tab labels slightly to the right so they're completely hidden in collapsed state, but still look fine while expanded. */
  53. .tab .label {
  54. margin-left: 1em;
  55. }
  56.  
  57. /* fix closebox */
  58. .tab .closebox {
  59. margin-left: 0;
  60. }
  61.  
  62. .tab .counter {
  63. margin-left: auto;
  64. display: inline-block !important;
  65. }
  66.  
  67. /* Hide .twisty and adjust margins so favicons have 7px on left. */
  68. #tabbar:not(:hover) .tab .twisty {
  69. visibility: hidden;
  70. margin-left: -12px;
  71. transition-delay: 0s;
  72. }
  73.  
  74.  
  75. /* hide closebox unless needed */
  76. .tab:not(:hover) .closebox {
  77. visibility: hidden;
  78. }
  79.  
  80. /* Hide sound playing/muted button. */
  81. .sound-button {
  82. margin-left: 0;
  83. display: inline-block;
  84. visibility: collapse;
  85. }
  86.  
  87. .tab.audible .sound-button {
  88. visibility: visible;
  89. margin-left: 0.25em;
  90. }
  91.  
  92. .tab:not([data-child-ids]) .counter {
  93. /* visibility: hidden; */
  94. }
  95.  
  96. tab-item:not(.subtree-collapsed) .counter {
  97. visibility: hidden;
  98. }
  99.  
  100. /* Hide 'new tab' button. */
  101. .newtab-button {
  102. display: none;
  103. }
  104.  
  105. /* active tab */
  106. .tab.active {
  107. background-color: rgba(255, 255, 255, 0.05) !important;
  108. box-shadow: inset 3px 0 0 #ffffff99 !important;
  109. }
  110. .tab:hover,
  111. .tab.active:hover {
  112. background-color: inherit;
  113. }
  114. .tab.active .label {
  115. font-weight: bold;
  116. color: #f4f4f4 !important;
  117. }
  118. .tab .label,
  119. .tab.active .label {
  120. border-bottom: 1px solid transparent;
  121. }
  122. .tab:hover .label,
  123. .tab.active:hover .label {
  124. border-bottom: 1px dotted;
  125. min-width: 0 !important;
  126. flex-shrink: 1 !important;
  127. flex-grow: unset !important;
  128. }
  129.  
  130. /* pending / unloaded tabs */
  131. .tab.discarded {
  132. background-color: #1d1d1d;
  133. }
  134. .tab.discarded .label {
  135. color: #efefefCC !important;
  136. }
  137. .tab.discarded:hover .label {
  138. color: #efefef !important;
  139. }
  140.  
  141. /* Adjust style for tab that has sound playing. */
  142. .tab.sound-playing .favicon::after,
  143. .tab.muted .favicon::after {
  144. content: '🔊';
  145. z-index: var(--favicon-base-z-index);
  146. position: absolute;
  147. font-size: 0.5em;
  148. bottom: -0.35em;
  149. right: -0.7em;
  150. }
  151.  
  152. /* Adjust style for tab that is muted. */
  153. .tab.muted .favicon::after {
  154. content: '🔇';
  155. }
  156.  
  157. /* Pinned tabs: */
  158. /* Hide all non-active pinned tabs (these are included in top-bar instead) */
  159. .tab.pinned {
  160. position: relative;
  161. max-width: none;
  162. width: auto;
  163. top: 0 !important;
  164. left: 0 !important;
  165. }
  166. .tab.pinned:not(.active) {
  167. display: none;
  168. }
  169. .tab.pinned .label {
  170. display: block;
  171. }
  172. .tab.pinned .sound-button {
  173. position: relative;
  174. transform: none;
  175. }
  176. .tab.pinned .twisty {
  177. display: block;
  178. min-width: none;
  179. width: auto;
  180. }
Add Comment
Please, Sign In to add comment