Advertisement
Guest User

collapsing treestyle tabs and hidden tab bar

a guest
Nov 21st, 2017
633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  2.  
  3. /* Hide horizontal tab bar. The following only works with built-in light or dark themes */
  4. #titlebar{ margin-bottom: -29px !important;}
  5. #titlebar-content{margin-bottom: 0px !important;}
  6. #main-window,#TabsToolbar{background-color: var(--chrome-secondary-background-color) !important;}
  7. #TabsToolbar>*:not(:last-child){visibility:hidden;height:32px;}
  8. #nav-bar{border-top:0px !important;margin-right:144px;margin-top: -32px;}
  9.  
  10. /* Sidebar min and max width removal */
  11. #sidebar {
  12. max-width: none !important;
  13. min-width: 0px !important;
  14. }
  15. /* Hide splitter, when using Tree Style Tab. */
  16. #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] + #sidebar-splitter {
  17. display: none !important;
  18. }
  19. /* Hide sidebar header, when using Tree Style Tab. */
  20. #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
  21. visibility: collapse;
  22. }
  23.  
  24. /* Shrink sidebar until hovered, when using Tree Style Tab. */
  25. :root {
  26. --thin-tab-width: 40px;
  27. --wide-tab-width: 240px;
  28. }
  29. #sidebar-box:not([sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]) {
  30. min-width: var(--wide-tab-width) !important;
  31. max-width: none !important;
  32. }
  33. #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] {
  34. position: relative !important;
  35. transition: all 300ms !important;
  36. min-width: var(--thin-tab-width) !important;
  37. max-width: var(--thin-tab-width) !important;
  38. }
  39. #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:hover {
  40. transition: all 300ms !important;
  41. min-width: var(--wide-tab-width) !important;
  42. max-width: var(--wide-tab-width) !important;
  43. margin-right: calc((var(--wide-tab-width) - var(--thin-tab-width)) * -1) !important;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement