2020-05-22 05:13:58 +00:00
|
|
|
/* 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. */
|
|
|
|
|
2019-06-02 16:08:43 +00:00
|
|
|
/* 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 */
|
|
|
|
|
2020-07-05 15:45:27 +00:00
|
|
|
/* Compatibility options for hide_tabs_toolbar.css and tabs_on_bottom.css at the end of this file */
|
|
|
|
|
2020-07-06 17:29:51 +00:00
|
|
|
:root{
|
|
|
|
--uc-autohide-toolbox-delay: 200ms; /* Wait 0.1s before hiding toolbars */
|
|
|
|
}
|
2020-07-05 15:45:27 +00:00
|
|
|
|
2019-11-28 10:00:59 +00:00
|
|
|
@media (-moz-os-version: windows-win10){
|
|
|
|
|
2020-07-29 20:14:42 +00:00
|
|
|
:root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 9px !important; }
|
|
|
|
:root[tabsintitlebar][sizemode="maximized"] #navigator-toolbox{ margin-top: -1px }
|
2019-11-28 10:00:59 +00:00
|
|
|
|
|
|
|
@media screen and (min-resolution: 1.25dppx){
|
2020-07-29 20:14:42 +00:00
|
|
|
:root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 8px !important; }
|
2019-11-28 10:00:59 +00:00
|
|
|
}
|
|
|
|
@media screen and (min-resolution: 1.5dppx){
|
2020-05-11 13:01:54 +00:00
|
|
|
:root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 8px !important; }
|
2019-11-28 10:00:59 +00:00
|
|
|
}
|
|
|
|
@media screen and (min-resolution: 2dppx){
|
2020-05-11 13:01:54 +00:00
|
|
|
:root[tabsintitlebar][sizemode="maximized"]:not([inDOMFullscreen]) > body > box{ margin-top: 7px !important; }
|
2019-11-28 10:00:59 +00:00
|
|
|
}
|
2020-07-23 19:11:58 +00:00
|
|
|
#navigator-toolbox:not(:-moz-lwtheme){ background-color: rgb(32, 35, 64) !important; }
|
2019-06-12 10:33:11 +00:00
|
|
|
}
|
|
|
|
|
2020-01-14 19:15:15 +00:00
|
|
|
:root[sizemode="fullscreen"]{ margin-top: 0px !important; }
|
|
|
|
|
2019-06-02 16:08:43 +00:00
|
|
|
#navigator-toolbox{
|
|
|
|
position: fixed !important;
|
2019-09-28 09:18:59 +00:00
|
|
|
display: block;
|
2019-11-28 10:00:59 +00:00
|
|
|
background-color: var(--lwt-accent-color,black) !important;
|
2020-07-06 17:29:51 +00:00
|
|
|
transition: transform 82ms linear, opacity 82ms linear !important;
|
|
|
|
transition-delay: var(--uc-autohide-toolbox-delay) !important;
|
2019-06-02 16:08:43 +00:00
|
|
|
transform-origin: top;
|
2019-06-03 14:26:32 +00:00
|
|
|
line-height: 0;
|
2019-11-14 15:48:20 +00:00
|
|
|
z-index: 1;
|
2020-05-01 08:53:21 +00:00
|
|
|
pointer-events: none;
|
2019-06-02 16:08:43 +00:00
|
|
|
}
|
2019-06-03 14:26:32 +00:00
|
|
|
|
2020-08-03 21:25:44 +00:00
|
|
|
#navigator-toolbox:-moz-any(:hover,:focus-within){ transition-delay: 33ms !important }
|
2020-07-06 17:29:51 +00:00
|
|
|
|
2020-05-01 08:53:21 +00:00
|
|
|
#navigator-toolbox > *{ line-height: normal; pointer-events: auto }
|
2019-06-12 16:08:13 +00:00
|
|
|
|
2019-06-02 16:08:43 +00:00
|
|
|
#navigator-toolbox,
|
|
|
|
#navigator-toolbox > *{
|
|
|
|
width: 100vw;
|
|
|
|
-moz-appearance: none !important;
|
|
|
|
}
|
|
|
|
|
2020-10-04 08:20:55 +00:00
|
|
|
/* These two exist for oneliner compatibility */
|
|
|
|
#nav-bar{ width: var(--uc-navigationbar-width,100vw) }
|
|
|
|
#TabsToolbar{ width: calc(100vw - var(--uc-navigationbar-width,0px)) }
|
|
|
|
|
2019-09-13 23:26:42 +00:00
|
|
|
#navigator-toolbox:not(:focus-within):not(:hover){
|
2020-10-04 08:20:55 +00:00
|
|
|
transform: rotateX(82deg); /* This may need to be lower in osx - like 75 or so */
|
2019-06-02 16:08:43 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
2019-09-13 23:26:42 +00:00
|
|
|
|
2020-07-29 20:14:42 +00:00
|
|
|
:root[sizemode="maximized"] #navigator-toolbox:not(:focus-within):not(:hover){ transform: rotateX(89deg) }
|
2019-09-13 23:26:42 +00:00
|
|
|
|
2020-02-15 21:25:43 +00:00
|
|
|
/* Don't apply transform before window has been fully created */
|
|
|
|
:root:not([sessionrestored]) #navigator-toolbox{ transform:none !important }
|
|
|
|
|
2019-11-11 15:23:33 +00:00
|
|
|
:root[customizing] #navigator-toolbox{
|
2020-02-15 21:25:43 +00:00
|
|
|
position: relative !important;
|
|
|
|
transform: none !important;
|
|
|
|
opacity: 1 !important;
|
2019-09-13 23:26:42 +00:00
|
|
|
}
|
2019-06-03 14:26:32 +00:00
|
|
|
|
2020-01-14 19:15:15 +00:00
|
|
|
#navigator-toolbox[inFullscreen] > #PersonalToolbar,
|
|
|
|
#PersonalToolbar[collapsed="true"]{ display: none }
|
2019-06-02 16:08:43 +00:00
|
|
|
|
2019-06-03 14:26:32 +00:00
|
|
|
/* Uncomment this if tabs toolbar is hidden with hide_tabs_toolbar.css */
|
2020-02-15 21:25:43 +00:00
|
|
|
/*#titlebar{ margin-bottom: -9px }*/
|
2020-07-05 15:45:27 +00:00
|
|
|
|
|
|
|
/* 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 }
|
|
|
|
*/
|