fenix-fox/chrome/navbar_below_content.css
2020-05-22 08:13:58 +03:00

36 lines
No EOL
1.2 KiB
CSS

/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/navbar_below_content.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Moves the main toolbar (#nav-bar) to the bottom of the window */
/* REQUIRES browser.urlbar.update1 to be true, otherwise urlbar won't show any results */
:root:not([inFullscreen]){
--uc-bottom-toolbar-height: calc(39px + var(--toolbarbutton-outer-padding) )
}
:root[uidensity="compact"]:not([inFullscreen]){
--uc-bottom-toolbar-height: calc(29px + var(--toolbarbutton-outer-padding) )
}
#browser,
#customization-container{ margin-bottom: var(--uc-bottom-toolbar-height,0px) }
#nav-bar{
position: fixed !important;
bottom: 0px;
display: flex;
width: 100%;
z-index: 1;
}
#nav-bar-customization-target{ flex-grow: 1; }
#urlbar[breakout][breakout-extend]{
display: flex !important;
flex-direction: column-reverse;
bottom: -2px !important; /* Change to 3-5 px if using compact_urlbar_megabar.css depending on toolbar density */
top: auto !important;
}
#urlbar[open] > .urlbarView{ margin-block: 0px calc(var(--urlbar-height) + 1px) !important; box-shadow: none !important; }