Guest User

Firefox CSS auto-hide Address and Bookmarks Bar

a guest
Oct 3rd, 2026
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. /* AUTO-HIDE ADDRESS BAR */
  2.  
  3. #browser {
  4. margin-top: 0 !important;
  5. }
  6. #navigator-toolbox {
  7. position: fixed !important;
  8. top: 0 !important;
  9. left: 0 !important;
  10. width: 100vw !important;
  11. z-index: 99999 !important;
  12. background-color: var(--lwt-accent-color, var(--toolbar-bgcolor, #2b2a33)) !important;
  13. transition: all 0.2s ease-in-out 1s !important;
  14. }
  15. #navigator-toolbox::after {
  16. content: "";
  17. position: absolute;
  18. display: block;
  19. top: 0;
  20. left: 0;
  21. width: 100vw;
  22. height: 3px;
  23. background: transparent;
  24. z-index: -1;
  25. }
  26. #navigator-toolbox:not(:hover):not(:focus-within) {
  27. max-height: 3px !important;
  28. opacity: 0 !important;
  29. overflow: hidden !important;
  30. }
  31. #navigator-toolbox #nav-bar {
  32. transition: all 0.2s ease-in-out 1s !important;
  33. }
  34. #navigator-toolbox:not(:hover):not(:focus-within) #nav-bar {
  35. margin-top: -80px !important;
  36. opacity: 0 !important;
  37. }
  38. #navigator-toolbox:hover,
  39. #navigator-toolbox:focus-within {
  40. max-height: 400px !important;
  41. opacity: 1 !important;
  42. overflow: visible !important;
  43. transition: all 0.2s ease-in-out 0s !important;
  44. }
  45. #navigator-toolbox:hover::after,
  46. #navigator-toolbox:focus-within::after {
  47. height: 150px !important;
  48. }
  49. #navigator-toolbox:hover #nav-bar,
  50. #navigator-toolbox:focus-within #nav-bar {
  51. margin-top: 0 !important;
  52. opacity: 1 !important;
  53. transition: all 0.2s ease-in-out 0s !important;
  54. }
  55. #TabsToolbar, #nav-bar, #PersonalToolbar {
  56. background-color: var(--toolbar-bgcolor) !important;
  57. }
  58.  
Tags: CSS
Advertisement
Add Comment
Please, Sign In to add comment