Guest User

Tree Style Tab "User Style Sheet"

a guest
Mar 28th, 2025
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.83 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. /* CHANGE TAB HEIGHT #236, #2389
  18.     URL link to code source: https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#change-tab-height-236-2389
  19.     note: I'm specifically using this code snippet to make the tab height shorter in the high contrast theme*/
  20. tab-item {
  21.   --tab-size: 22px !important;
  22. }
  23. tab-item  tab-item-substance {
  24.   max-height: var(--tab-size) !important;
  25.   min-height: var(--tab-size) !important;
  26.   padding-top: 0 !important;
  27.   padding-bottom: 0 !important;
  28. }
  29.  
  30.  
  31. /* HIGHLIGHT ACTIVE TAB: This makes the active tab very noticeable increasing its height and modifying the color and font
  32.     URL link to code source: https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#highlight-active-tab */
  33.  
  34. tab-item.active tab-item-substance {
  35.   height: 39px !important;
  36. }
  37. tab-item.active .background {
  38.   background-color: steelblue;
  39. }
  40. tab-item.active .label-content {
  41.   font-weight: bold;
  42.   font-size: 14px;
  43. }
  44. tab-item.active tab-twisty,
  45. tab-item.active .label-content,
  46. tab-item.active tab-counter {
  47.   color: #fff;
  48. }
  49.  
  50.  
  51. /*ONLY SHOW CLOSE BUTTON ON HOVER #1448
  52.     URL link to code source: https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#only-show-tab-close-button-on-hover-1448 */
  53. /* "#tabbar" is required for TST 3.4.0 and later! */
  54.  
  55. #tabbar tab-item tab-item-substance:not(:hover) tab-closebox {
  56.   display: none;
  57. }
  58.  
  59.  
  60. /*
  61. #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
  62.   display: none;
  63. }
  64. */
Add Comment
Please, Sign In to add comment