Advertisement
Guest User

Untitled

a guest
Dec 8th, 2024
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. /* Sidebery Settings */
  2. :root {
  3. --sidebar-shown: 2px; /* size of pinned tabs */
  4. --sidebar-width: 250px; /* fixed width of panel */
  5. --sidebar-height: 100vh; /* fixed height of panel */
  6. }
  7.  
  8. /* Sidebery Auto-hiding Sidebar */
  9. /* hides panel by pushing it off screen */
  10. #main-window:not([extradragspace="true"])
  11. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"]:not([hidden]) {
  12. position: fixed;
  13. left: calc(-1 * var(--sidebar-width) + var(--sidebar-shown));
  14. z-index: 1;
  15. transition: all 0.2s ease-in-out;
  16. }
  17.  
  18. /* moves panel back to 0 on hover */
  19. #main-window:not([extradragspace="true"])
  20. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"]:not([hidden]):hover {
  21. position: fixed;
  22. left: 0px;
  23. z-index: 1;
  24. }
  25.  
  26. /* fixed width of each tab. does not change */
  27. #main-window:not([extradragspace="true"])
  28. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"],
  29. #main-window:not([extradragspace="true"])
  30. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] #sidebar {
  31. width: var(--sidebar-width) !important;
  32. }
  33.  
  34. /* adjust if your sidebery is not tall enough */
  35. #main-window:not([extradragspace="true"])[inFullscreen]
  36. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"],
  37. #main-window:not([extradragspace="true"])
  38. #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] {
  39. height: var(--sidebar-height);
  40. }
  41. /* -------------------------------------------- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement