Guest User

Sidebery Styles

a guest
Oct 31st, 2023
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.28 KB | Source Code | 0 0
  1. #root {
  2.   --tabs-font: 10pt Segoe UI;
  3.   --tabs-count-font: .625rem Segoe UI;
  4.   --bookmarks-bookmark-font: .875rem Segoe UI;
  5.   --bookmarks-folder-font: 10pt Segoe UI;
  6. }
  7.  
  8. /* Adjust styles according to sidebar width */
  9. @media screen and (max-width: 49px) {
  10.   #root {
  11.     --tabs-indent: unset;
  12.   }
  13.   .ScrollBox > .scroll-container {
  14.     overflow: hidden;
  15.   }
  16.   .Tab .audio {
  17.     left: 10px;
  18.     transform: translateY(4px) translateX(-7px) ;
  19.     z-index: 99 !important;
  20.   }
  21.   .Tab .title {
  22.     visibility: collapse;
  23.   }
  24. }
  25.  
  26. @media screen and (min-width: 49px) {
  27.   .Tab .audio {
  28.     left: 28px;
  29.   }
  30. }
  31.  
  32. /*
  33.  * Add margins and rounding around tabs
  34.  */
  35.  
  36. #root {
  37.   --tabs-height: 43px;
  38. }
  39.  
  40. /* Background layer */
  41.  
  42. .Tab {
  43.   margin: 0 4px;
  44.   width: unset;
  45. }
  46. .Tab .lvl-wrapper:after {
  47.   content: '';
  48.   position: absolute;
  49.   top: 4px;
  50.   width: 100%;
  51.   height: calc(100% - 5px);
  52.   border-radius: 4px;
  53.   z-index: -1;
  54. }
  55.  
  56. @media (prefers-color-scheme:light) {
  57.   #root {
  58.     --tabs-activated-bg: white !important;
  59.     --tabs-bg-active: var(--tabs-activated-bg) !important;
  60.     --tabs-selected-fg: var(--tabs-activated-fg) !important;
  61.     --tabs-selected-bg: var(--tabs-activated-bg) !important;
  62.     --bg: #f0f0f0 !important;
  63.   }
  64.   .Tab[data-selected] .lvl-wrapper:after,
  65.   .Tab[data-active] .lvl-wrapper:after {
  66.     box-shadow: 0 0 1px rgba(128,128,142,0.9), 0 0 4px rgba(128,128,142,0.5);
  67.   }
  68. }
  69.  
  70.  
  71. /* Reset default styles */
  72. .Tab:hover,
  73. .Tab:active,
  74. .Tab[data-active],
  75. .Tab[data-active]:active,
  76. .Tab[data-selected],
  77. .Tab[data-selected]:hover,
  78. .Tab[data-selected]:active {
  79.   background: transparent;
  80. }
  81.  
  82. /* Reapply styles */
  83.  
  84. .Tab:hover .lvl-wrapper:after {
  85.   background-color: var(--tabs-bg-hover);
  86. }
  87.  
  88. .Tab:active .lvl-wrapper:after,
  89. .Tab[data-active]:active .lvl-wrapper:after {
  90.   background-color: var(--tabs-bg-active);
  91. }
  92.  
  93. .Tab[data-active] .lvl-wrapper:after {
  94.   background-color: var(--tabs-activated-bg);
  95. }
  96.  
  97.  
  98. .Tab[data-selected] .lvl-wrapper:after {
  99.   background-color: var(--tabs-selected-bg);,
  100. }
  101.  
  102. /* Resize and reposition favicons */
  103. .Tab .fav {
  104.   width: 18px;
  105.   height: 18px;
  106.   margin-left: 10px;
  107. }
  108.  
  109. .Tab .placeholder > svg {
  110.   width: 18px;
  111.   height: 18px;
  112. }
  113.  
  114. .Tab .fav,
  115. .Tab .placeholder,
  116. .Tab .t-box {
  117.   margin-bottom: 2px;
  118. }
  119.  
Advertisement
Add Comment
Please, Sign In to add comment