Advertisement
Guest User

s4k - hide_tabs_toolbar_v2.css

a guest
Dec 3rd, 2024
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | Source Code | 0 0
  1. /* 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
  2. See the above repository for updates as well as full license text. */
  3.  
  4. /* This requires Firefox 133+ to work */
  5. #main-window[titlepreface*="?? "] { /* Works only with Sidebery, Added to activate when sidebar is open */
  6. @media (-moz-bool-pref: "sidebar.verticalTabs"){
  7. #sidebar-main{
  8. visibility: collapse;
  9. }
  10. }
  11. @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"){
  12. #nav-bar > .titlebar-buttonbox-container{
  13. order: -1 !important;
  14. > .titlebar-buttonbox{
  15. flex-direction: row-reverse;
  16. }
  17. }
  18. }
  19. @media not (-moz-bool-pref: "sidebar.verticalTabs"){
  20. #TabsToolbar{
  21. visibility: collapse;
  22. }
  23. :root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{
  24. display: flex !important;
  25. }
  26. :root:is([tabsintitlebar],[customtitlebar]) #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
  27. > .titlebar-buttonbox-container{
  28. display: flex !important;
  29. }
  30. :root[sizemode="normal"] & {
  31. > .titlebar-spacer{
  32. display: flex !important;
  33. }
  34. }
  35. :root[sizemode="maximized"] & {
  36. > .titlebar-spacer[type="post-tabs"]{
  37. display: flex !important;
  38. }
  39. @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"),
  40. (-moz-gtk-csd-reversed-placement),
  41. (-moz-platform: macos){
  42. > .titlebar-spacer[type="post-tabs"]{
  43. display: none !important;
  44. }
  45. > .titlebar-spacer[type="pre-tabs"]{
  46. display: flex !important;
  47. }
  48. }
  49. }
  50. }
  51. }
  52. } /* Works only with Sidebery, Added to activate when sidebar is open */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement