/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_toolbox.css made available under Mozilla Public License v. 2.0 See the above repository for updates as well as full license text. */ /* Hide the whole toolbar area unless urlbar is focused or cursor is over the toolbar */ /* Dimensions on non-Win10 OS probably needs to be adjusted */ /* Compatibility options for hide_tabs_toolbar.css and tabs_on_bottom.css at the end of this file */ :root{ --uc-autohide-toolbox-delay: 200ms; /* Wait 0.1s before hiding toolbars */ } @media (-moz-os-version: windows-win10){ :root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 10px !important; } :root[tabsintitlebar][sizemode="maximized"] #navigator-toolbox{ margin-top: -2px } @media screen and (min-resolution: 1.25dppx){ :root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 9px !important; } } @media screen and (min-resolution: 1.5dppx){ :root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 8px !important; } :root[tabsintitlebar][sizemode="maximized"] #navigator-toolbox{ margin-top: -1px } } @media screen and (min-resolution: 2dppx){ :root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 7px !important; } } } :root[sizemode="fullscreen"]{ margin-top: 0px !important; } #navigator-toolbox{ position: fixed !important; display: block; background-color: var(--lwt-accent-color,black) !important; transition: transform 82ms linear, opacity 82ms linear !important; transition-delay: var(--uc-autohide-toolbox-delay) !important; transform-origin: top; line-height: 0; z-index: 1; pointer-events: none; } #navigator-toolbox:hover{ transition-delay: 33ms !important } #navigator-toolbox > *{ line-height: normal; pointer-events: auto } #navigator-toolbox, #navigator-toolbox > *{ width: 100vw; -moz-appearance: none !important; } #navigator-toolbox:not(:focus-within):not(:hover){ transform: rotateX(86deg); /* This may need to be lower in osx - like 75 or so */ opacity: 0; } :root[sizemode="maximized"] #navigator-toolbox:not(:focus-within):not(:hover){ transform: rotateX(89.5deg) } /* Don't apply transform before window has been fully created */ :root:not([sessionrestored]) #navigator-toolbox{ transform:none !important } :root[customizing] #navigator-toolbox{ position: relative !important; transform: none !important; opacity: 1 !important; } #navigator-toolbox[inFullscreen] > #PersonalToolbar, #PersonalToolbar[collapsed="true"]{ display: none } /* Uncomment this if tabs toolbar is hidden with hide_tabs_toolbar.css */ /*#titlebar{ margin-bottom: -9px }*/ /* Uncomment the following for compatibility with tabs_on_bottom.css - this isn't well tested though */ /* :root{ --uc-titlebar-padding: 0px !important; } #navigator-toolbox{ flex-direction: column; display: flex; } #titlebar{ order: 2 } */