2020-05-22 05:13:58 +00:00
|
|
|
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/show_navbar_on_focus_only.css made available under Mozilla Public License v. 2.0
|
|
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
|
2020-01-16 15:58:51 +00:00
|
|
|
/* Hides #nav-bar and overlays it on top of tabs when urlbar is focused */
|
|
|
|
/* overlay_menubar.css can be used for better handling of menubar when triggered with Alt-key */
|
|
|
|
/* This style totally breaks bookmarks toolbar but can be used with autohide_bookmarks_toolbar.css */
|
|
|
|
|
2021-04-10 06:07:47 +00:00
|
|
|
:root:not([customizing]) #navigator-toolbox{ display: grid; grid-template-rows: auto }
|
2020-01-16 15:58:51 +00:00
|
|
|
:root:not([customizing]) #navigator-toolbox > *{ grid-area: 1/1; }
|
|
|
|
:root:not([customizing]) #titlebar{ -moz-appearance: none !important; }
|
|
|
|
|
|
|
|
/* -moz-appearance: none on titlebar breaks window margins, so re-adjust that */
|
2021-06-06 05:23:40 +00:00
|
|
|
@media (-moz-os-version: windows-win7),(-moz-os-version: windows-win10){
|
2020-01-16 15:58:51 +00:00
|
|
|
|
2022-01-02 07:37:20 +00:00
|
|
|
:root[sizemode="maximized"]{ margin-top: 8px !important; }
|
2020-01-16 15:58:51 +00:00
|
|
|
|
|
|
|
@media screen and (min-resolution: 1.25dppx){
|
2022-01-02 07:37:20 +00:00
|
|
|
:root[sizemode="maximized"]{ margin-top: 7px !important; }
|
2020-01-16 15:58:51 +00:00
|
|
|
}
|
|
|
|
@media screen and (min-resolution: 1.5dppx){
|
2022-01-02 07:37:20 +00:00
|
|
|
:root[sizemode="maximized"]{ margin-top: 6px !important; }
|
2020-01-16 15:58:51 +00:00
|
|
|
}
|
|
|
|
@media screen and (min-resolution: 2dppx){
|
2022-01-02 07:37:20 +00:00
|
|
|
:root[sizemode="maximized"]{ margin-top: 5px !important; }
|
2020-01-16 15:58:51 +00:00
|
|
|
}
|
2022-01-02 07:37:20 +00:00
|
|
|
:root:not([tabsintitlebar]),
|
|
|
|
:root[inDOMFullscreen]{ margin-top: 0 !important; }
|
2020-01-16 15:58:51 +00:00
|
|
|
}
|
2021-04-10 06:07:47 +00:00
|
|
|
#urlbar-container{ margin-top: 1px }
|
2020-04-09 18:22:04 +00:00
|
|
|
:root[sessionrestored] #nav-bar:not([customizing]){
|
2020-01-17 16:17:50 +00:00
|
|
|
transform: rotateX(90deg);
|
|
|
|
transition: transform 67ms linear, opacity 0ms linear 67ms !important;
|
|
|
|
opacity: 0;
|
|
|
|
z-index: 3;
|
|
|
|
}
|
2020-04-09 18:22:04 +00:00
|
|
|
:root[sessionrestored] #nav-bar:focus-within{
|
2020-05-22 06:07:26 +00:00
|
|
|
transform: rotateX(0deg);
|
|
|
|
opacity: 1;
|
|
|
|
transition-delay: 0ms, 0ms !important;
|
2020-01-16 15:58:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* This enables compatibility with autohide_bookmarks_toolbar.css */
|
|
|
|
#PersonalToolbar{ margin-top: var(--tab-min-height) !important; }
|