Advertisement
Guest User

s4k - userChrome.css

a guest
Dec 3rd, 2024
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | Source Code | 0 0
  1. @import url(autohide_sidebar.css); /* Modified */
  2. @import url(autohide_main_toolbar.css); /* Modified */
  3. @import url(drag_window_from_urlbar.css);
  4. @import url(hide_tabs_toolbar_v2.css); /* Modified, Needs Sidebery*/
  5.  
  6. :root { /* Sidebar - autohide_sidebar.css References */
  7. --as-w: 38px;
  8. --as-w-hover: 300px;
  9. --as-delay: 1000ms;
  10. --as-duration: 300ms;
  11. --as-type: ease-in-out;
  12. }
  13. :root { /* Main Toolbar - autohide_main_toolbar.css References */
  14. --amt-transform: -40px;
  15. --amt-delay: 1000ms;
  16. --amt-duration: 300ms;
  17. }
  18. /* ADDED FIX FOR AUTOHIDE MAIN TOOLBAR */
  19. /* https://github.com/MrOtherGuy/firefox-csshacks/issues/442#issuecomment-2456932184 */
  20. #nav-bar {
  21. position: relative; /* Ensure the navbar can be shifted */
  22. transform: translateY(-25px); /* Shifts hidden navbar down for hover detection, Referenced in userChrome.css */
  23. z-index: 2 !important; /* Make sure it's above everything for Hover */
  24. top: 1px !important; /* A hack to close window while maximized */
  25. }
  26. #nav-bar:hover {
  27. transform: translateY(0); /* Moves the navbar back to its original position on hover */
  28. } /* Shorten sidebar header a bit & make it draggable */
  29. #sidebar-header {
  30. -moz-window-dragging: drag;
  31. height: 38px !important;
  32. } /* Removes sidebar close button */
  33. #sidebar-close {
  34. visibility: hidden !important;
  35. } /* Removes left and right spacers in toolbar */
  36. .titlebar-spacer[type="pre-tabs"], .titlebar-spacer[type="post-tabs"] {
  37. border-inline-end: 0px solid white !important;
  38. width: 0px !important;
  39. } /* Collapses & Expands Windows Controls */
  40. .titlebar-restore, .titlebar-max, .titlebar-close{
  41. visibility: collapse;
  42. }
  43. .titlebar-buttonbox-container:hover .titlebar-restore, .titlebar-buttonbox-container:hover .titlebar-max, .titlebar-buttonbox-container:hover .titlebar-close {
  44. visibility: visible;
  45. } /* Always show sidebar when maximized */
  46. :root[sizemode="maximized"] {
  47. --as-w: 300px;
  48. } /* Needs Sidebery Shows/Hides native tab bar when sidebar is closed/open*/
  49. #main-window[titlepreface*="?? "] {
  50. #TabsToolbar > .titlebar-buttonbox-container {
  51. display: block;
  52. position: absolute;
  53. top: 0px;
  54. right: 0px;
  55. visibility: visible;
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement