Advertisement
TaylorKing

Firefox CSS (Box size 0)

Dec 8th, 2024 (edited)
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. /* HIDE TABS TOOLBAR */
  2.  
  3. /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_toolbar_v2.css made available under Mozilla Public License v. 2.0
  4. See the above repository for updates as well as full license text. */
  5.  
  6. /* This requires Firefox 133+ to work */
  7.  
  8. @media (-moz-bool-pref: "sidebar.verticalTabs"){
  9. #sidebar-main{
  10. visibility: collapse;
  11. }
  12. }
  13. @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"){
  14. #nav-bar > .titlebar-buttonbox-container{
  15. order: -1 !important;
  16. > .titlebar-buttonbox{
  17. flex-direction: row-reverse;
  18. }
  19. }
  20. }
  21. @media not (-moz-bool-pref: "sidebar.verticalTabs"){
  22. #TabsToolbar{
  23. visibility: collapse;
  24. }
  25. :root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{
  26. display: flex !important;
  27. }
  28. :root[tabsintitlebar] #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
  29. > .titlebar-buttonbox-container{
  30. display: flex !important;
  31. }
  32. :root[sizemode="normal"] & {
  33. > .titlebar-spacer{
  34. display: flex !important;
  35. }
  36. }
  37. :root[sizemode="maximized"] & {
  38. > .titlebar-spacer[type="post-tabs"]{
  39. display: flex !important;
  40. }
  41. @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"),
  42. (-moz-gtk-csd-reversed-placement),
  43. (-moz-platform: macos){
  44. > .titlebar-spacer[type="post-tabs"]{
  45. display: none !important;
  46. }
  47. > .titlebar-spacer[type="pre-tabs"]{
  48. display: flex !important;
  49. }
  50. }
  51. }
  52. }
  53. }
  54.  
  55. /* SIDEBERY */
  56.  
  57.  
  58. #sidebar-box {
  59. --bar-width: 1px;
  60. position: relative !important;
  61. overflow-x: hidden !important;
  62. /* margin-right: calc(10px * -1) !important; */
  63. /* left: var(--bar-width) !important; */
  64. min-width: var(--bar-width) !important;
  65. max-width: var(--bar-width) !important;
  66. z-index: 1;
  67. transition: all 0.1s;
  68. }
  69.  
  70.  
  71. #sidebar-box:hover {
  72. --expanded-width: 400px;
  73. position: relative !important;
  74. margin-right: calc(
  75. calc(var(--expanded-width) - var(--bar-width)) * -1
  76. ) !important;
  77. /*left: var(--expanded-width) !important; */
  78. z-index: 3;
  79. min-width: var(--expanded-width) !important;
  80. max-width: var(--expanded-width) !important;
  81. }
  82.  
  83.  
  84.  
  85. /* #sidebar-header is hidden by default, change "none" to "inherit" to restore it. */
  86. #sidebar-header {
  87. display: none !important;
  88. }
  89.  
  90. /* #sidebar-splitter styles the divider between the sidebar and the rest of the browser. */
  91. #sidebar-splitter {
  92. display: none;
  93. }
  94.  
  95.  
  96.  
  97.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement