Don't depend on [inFullscreen] attribute for navigator-toolbox
Just use :root[sizemode="fullscreen"] instead
This commit is contained in:
@@ -20,7 +20,7 @@ See the above repository for updates as well as full license text. */
|
|||||||
}
|
}
|
||||||
|
|
||||||
:root[sizemode="fullscreen"],
|
:root[sizemode="fullscreen"],
|
||||||
#navigator-toolbox[inFullscreen]{ margin-top: 0 !important; }
|
:root[sizemode="fullscreen"] #navigator-toolbox{ margin-top: 0 !important; }
|
||||||
|
|
||||||
#navigator-toolbox{
|
#navigator-toolbox{
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
|
|||||||
@@ -4,16 +4,16 @@ See the above repository for updates as well as full license text. */
|
|||||||
/* Makes toolbars appear as overlay instead of pushing down the website in fullscreen mode */
|
/* Makes toolbars appear as overlay instead of pushing down the website in fullscreen mode */
|
||||||
|
|
||||||
@media (-moz-bool-pref: "browser.fullscreen.autohide"){
|
@media (-moz-bool-pref: "browser.fullscreen.autohide"){
|
||||||
#navigator-toolbox[inFullscreen]{
|
:root[sizemode="fullscreen"] #navigator-toolbox{
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
transition: margin-top 100ms ease-in-out 600ms;
|
transition: margin-top 100ms ease-in-out 600ms;
|
||||||
}
|
}
|
||||||
#navigator-toolbox[inFullscreen][style=""],
|
:root[sizemode="fullscreen"] #navigator-toolbox[style=""],
|
||||||
#navigator-toolbox[inFullscreen]:hover,
|
:root[sizemode="fullscreen"] #navigator-toolbox:hover,
|
||||||
#navigator-toolbox[inFullscreen]:focus-within,
|
:root[sizemode="fullscreen"] #navigator-toolbox:focus-within,
|
||||||
#mainPopupSet:has(> #appMenu-popup[panelopen="true"]) ~ #navigator-toolbox[inFullscreen]{
|
#mainPopupSet:has(> #appMenu-popup[panelopen="true"]) ~ #navigator-toolbox{
|
||||||
transition-delay: 0ms;
|
transition-delay: 0ms;
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ See the above repository for updates as well as full license text. */
|
|||||||
.panel-viewstack{ max-height: unset !important; }
|
.panel-viewstack{ max-height: unset !important; }
|
||||||
|
|
||||||
/* Fullscreen mode support */
|
/* Fullscreen mode support */
|
||||||
#navigator-toolbox[inFullscreen]{ margin-top: 0 !important }
|
:root[sizemode="fullscreen"] #navigator-toolbox{ margin-top: 0 !important }
|
||||||
#navigator-toolbox[inFullscreen][style*="margin-top"]{ visibility: collapse }
|
:root[sizemode="fullscreen"] #navigator-toolbox[style*="margin-top"]{ visibility: collapse }
|
||||||
#fullscr-toggler{ bottom: 0; top: unset !important; }
|
#fullscr-toggler{ bottom: 0; top: unset !important; }
|
||||||
|
|
||||||
/* These three rules exist for compatibility with autohide_toolbox.css */
|
/* These three rules exist for compatibility with autohide_toolbox.css */
|
||||||
|
|||||||
Reference in New Issue
Block a user