Advertisement
Guest User

treestyletab.css

a guest
Aug 26th, 2021
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.18 KB | None | 0 0
  1. tab-item.unread .label-content {
  2.   font-style: italic;
  3. }
  4.  
  5. /********************************************************************/
  6.  
  7. /* As little space before the tab name as possible.
  8.    The fold/unfold icon is not affected. */
  9. tab-item:not(.pinned) {
  10.   padding-left: 0px !important; /* !important is required when there are enough tabs to cause a scrollbar */
  11. }
  12.  
  13. /*********************************************************************/
  14.  
  15. /* Tab numbering and counting
  16.  
  17. All of the options in this section need the raw count of tabs available. This is done using CSS counters: */
  18.  
  19. #tabbar {
  20.   counter-reset: vtabs atabs tabs;
  21.   /* vtabs tracks visible tabs, atabs tracks active tabs, tabs tracks all tabs */
  22. }
  23. tab-item:not(.collapsed):not(.discarded) {
  24.   counter-increment: vtabs atabs tabs;
  25. }
  26. tab-item:not(.collapsed) {
  27.   counter-increment: vtabs tabs;
  28. }
  29. tab-item:not(.discarded) {
  30.   counter-increment: atabs tabs;
  31. }
  32. tab-item {
  33.   counter-increment: tabs;
  34. }
  35.  
  36. /*********************************************************************/
  37.  
  38. /*  Numbering of tabs #1601, #2220
  39.     Note: this requires the counting CSS block listed right above.
  40.  
  41. This displays the number of each visible tab along side each tab. *
  42.  
  43. tab-item .extra-items-container.behind {
  44.   z-index: unset !important;
  45. }
  46. tab-item .extra-items-container.behind::after {
  47.   background: Highlight;
  48.   color: HighlightText;
  49.   content: counter(vtabs);
  50.   font-size: x-small;
  51.   right: 0.2em;
  52.   padding: 0.2em;
  53.   pointer-events: none;
  54.   position: absolute;
  55.   bottom: 0.2em;
  56.  
  57.   z-index: 1000;
  58. }
  59.  
  60. /********************************************
  61.  
  62. /*  Tab numbering on hovered tabs
  63.  
  64.     Note: this requires the counting CSS block listed here and the label CSS block listed right above.
  65.  
  66. To show tab numbering only on hovered tabs, use this CSS: */
  67. /*
  68. tab-item .extra-items-container.behind::after {
  69.   opacity: 0;
  70.   transition: 0.2s;
  71. }
  72. tab-item:hover .extra-items-container.behind::after {
  73.   opacity: 1;
  74. }
  75.  
  76.  
  77. /*********************************************************************/
  78.  
  79.  
  80. .newtab-button::after {
  81.   content: var(--tab-count-text);
  82.   pointer-events: none;
  83.    
  84.   position: absolute;
  85.   left: 0.5em;
  86.  
  87.   /* TST 2.4.0 - Fix for Issue #1664 */
  88.   background: transparent !important;
  89.   mask: none !important;
  90. }
  91.  
  92. .newtab-button {
  93.   --tab-count-text: counter(atabs) "/" counter(tabs) " tabs";
  94. }
  95.  
  96. /*
  97.  
  98. .newtab-button-box {
  99.   position: fixed;
  100.   top: 0;
  101.   left: 0;
  102.   right: 0;
  103.   height: 20px;
  104. }
  105. #tabbar {
  106.   top: 20px !important;
  107.   bottom: 0 !important;
  108. }
  109. tab-item.pinned {
  110. margin-top:20px;
  111. }
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. /*****/
  120.  
  121. :root {
  122.   --colorA: #404040;
  123.   --colorB: #5b5d5d;
  124.   --colorC: #b4b4b4;
  125.   --colorD: #5caaaa;
  126.   --colorE: #313131;
  127.   --colorF: #281f1a;
  128.   --colorG: green;
  129.   --tab-height: 22px;
  130.   --font-size: 12px;
  131.   background-color: var(--colorF);
  132. }
  133.  
  134. :root.simulate-svg-context-fill .tab.active .closebox::after {
  135.   background: black;
  136. }
  137.  
  138. :root.simulate-svg-context-fill .tab:hover .closebox::after {
  139.   background: black;
  140. }
  141.  
  142. :root.simulate-svg-context-fill .tab.active .sound-button::after {
  143.   background: black;
  144. }
  145.  
  146. :root.simulate-svg-context-fill .tab:hover .sound-button::after {
  147.   background: black;
  148. }
  149.  
  150. .tab {
  151.   background-color: var(--colorE);
  152.   height: var(--tab-height);
  153.   border-top: none;
  154.   border-right: none;
  155.   border-left: none;
  156.   border-bottom: 1px solid var(--colorF);
  157. }
  158.  
  159. .label {
  160.   font-size: var(--font-size);
  161. }
  162.  
  163. .tab .label {
  164.   color: #c1c1c1;
  165. }
  166.  
  167. .tab.active .label {
  168.   color: #afafaf;
  169. }
  170.  
  171. .tab .counter {
  172.   color: var(--colorD);
  173. }
  174.  
  175. .tab.active .twisty
  176. {
  177.   color: var(--colorG);
  178. }
  179.  
  180. .tab.active {
  181.   color: black;
  182.   background-color: var(--colorA);
  183. }
  184.  
  185. .tab.active:hover {
  186.   background-color: var(--colorA);
  187. }
  188.  
  189. .tab:hover .label {
  190.   color: black;
  191. }
  192.  
  193. .tab:hover, .tab:not(.active):hover {
  194.   color: black;
  195.   background-color: var(--colorB);
  196. }
  197.  
  198. .tab.unread .label {
  199.   font-style: italic;
  200. }
  201.  
  202. .tab.discarded {
  203.   color: var(--colorC);
  204.   background-color: #111111;
  205.   border-top: none;
  206.   border-bottom: 1px solid black;
  207. }
  208.  
  209. .tab.private-browsing .label:before {
  210.   content: "🕶";
  211. }
  212. /****/
  213. .tab {
  214.   height: 27px;
  215. }
  216.  
  217. .label {
  218.   font-size: 13px;
  219. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement