Guest User

Untitled

a guest
Apr 19th, 2023
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.82 KB | None | 0 0
  1. /*** Tree Style Tabs ***/
  2.  
  3. /* This value should be updated here and in the tree-style-tabs-theme.css */
  4. :root {
  5.   --tst-sidepanel-hide-delay: 0.5s;
  6. }
  7.  
  8. /* Hide main tabs toolbar */
  9. #main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
  10.     opacity: 0;
  11.     pointer-events: none;
  12. }
  13.  
  14. #main-window:not([tabsintitlebar="true"]) #TabsToolbar {
  15.     visibility: collapse !important;
  16. }
  17.  
  18. /* Sidebar min and max width removal */
  19. #sidebar {
  20.   max-width: none !important;
  21.   min-width: 0px !important;
  22. }
  23.  
  24. /* Hide sidebar header, when using Tree Style Tab */
  25. #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
  26.   visibility: collapse;
  27. }
  28.  
  29. /* Shrink sidebar until hovered, when using Tree Style Tab */
  30. :root {
  31.   --thin-tab-width: 30px;
  32.   --wide-tab-width: 200px;
  33. }
  34.  
  35. #sidebar-box:not([sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]) {
  36.   min-width: var(--wide-tab-width) !important;
  37.   max-width: none !important;
  38. }
  39.  
  40. #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] {
  41.   overflow: hidden !important;
  42.   position: relative !important;
  43.   transition: all 0.2s var(--tst-sidepanel-hide-delay) !important;
  44.   min-width: var(--thin-tab-width) !important;
  45.   max-width: var(--thin-tab-width) !important;
  46.   z-index: 2;
  47. }
  48. #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:hover,
  49. #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar {
  50.   transition-delay: 0s !important;
  51.   min-width: var(--wide-tab-width) !important;
  52.   max-width: var(--wide-tab-width) !important;
  53.   z-index: 1;
  54. }
  55. #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:hover {
  56.   margin-right: calc((var(--wide-tab-width) - var(--thin-tab-width)) * -1) !important;
  57. }
Add Comment
Please, Sign In to add comment