Apply browser margin to browser-bottombox

This commit is contained in:
MrOtherGuy 2020-06-26 14:53:17 +03:00
parent 3accc46a24
commit 3ab84536d0

View file

@ -2,23 +2,31 @@
See the above repository for updates as well as full license text. */ See the above repository for updates as well as full license text. */
/* Creates a statusbar at the bottom of the window by using bookmarks toolbar */ /* Creates a statusbar at the bottom of the window by using bookmarks toolbar */
/* Since it's really the bookmarks toolbar you should move bookmarks away from bookmarks toolbar - for example to menubar. You can do that with Customize Firefox mode */ /* Since it's really the bookmarks toolbar you should move bookmarks away from bookmarks toolbar - for example to menubar. You can do that with Customize Firefox mode */
/* If you want to show the page-loading status in the statusbar then put a single flexible space as the leftmost item in the bookmarks toolbar */
/* By default this flex-space will take 50% window width to show the loading status bar */
/* Toolbar buttons/items will be aligned to the right edge of the loading bar. If you wish to align them to the right edge, then add another flex-space after the first one */
:root:not([inFullscreen]) > body{ --uc-browser-base-padding: calc(2 * var(--toolbarbutton-inner-padding) + 16px) }
#PersonalToolbar{ #PersonalToolbar{
position: fixed; position: fixed;
display: flex; display: flex;
bottom: 0; bottom: 0;
width: 100vw; width: 100vw;
} }
#customization-container,
:root:not([inDOMFullscreen]) > body > #browser{ :root:not([inFullscreen]) #browser-bottombox{
margin-bottom: calc(5px + 2 * var(--toolbarbutton-inner-padding) + 16px) !important; margin-bottom: calc(5px + var(--uc-browser-base-padding)) !important;
} }
#PersonalToolbar > toolbarbutton{ padding: 0 var(--toolbarbutton-outer-padding) !important; } #PersonalToolbar > toolbarbutton{ padding: 0 var(--toolbarbutton-outer-padding) !important; }
#PersonalToolbar > toolbarbutton > .toolbarbutton-icon, #PersonalToolbar > toolbarbutton > .toolbarbutton-icon,
#PersonalToolbar > toolbarbutton > .toolbarbutton-badge-stack{ #PersonalToolbar > toolbarbutton > .toolbarbutton-badge-stack{
width: calc(2 * var(--toolbarbutton-inner-padding) + 16px) !important; width: var(--uc-browser-base-padding,0px) !important;
height: calc(2 * var(--toolbarbutton-inner-padding) + 16px) !important; height: var(--uc-browser-base-padding,0px) !important;
padding: var(--toolbarbutton-inner-padding) !important; padding: var(--toolbarbutton-inner-padding) !important;
} }
@ -26,9 +34,13 @@ See the above repository for updates as well as full license text. */
background-position: left 4px; background-position: left 4px;
background-repeat: no-repeat; background-repeat: no-repeat;
background-image: -moz-element(#statuspanel); background-image: -moz-element(#statuspanel);
max-width: none !important; max-width: 50vw !important; /* Modify this to let the status bar grow larger than 50% of window width */
width: 60ch; min-width: 60ch;
flex-grow: 10;
} }
#PersonalToolbar > toolbarspring{ flex-grow: 1; max-width: none !important; }
/* Using -moz-element() causes some problems after Firefox has been running several hours such as long tab switch times. For this reason the background image is removed on hover and focused states which appears to clear the state. */ /* Using -moz-element() causes some problems after Firefox has been running several hours such as long tab switch times. For this reason the background image is removed on hover and focused states which appears to clear the state. */
#PersonalToolbar > toolbarspring:first-of-type:hover{ background-image: none } #PersonalToolbar > toolbarspring:first-of-type:hover{ background-image: none }