autohide main toolbar: add background for nav-bar when sidebar tabs
When tabs are in sidebar, nav-bar has .browser-titlebar class so use that to conditionally inherit background from toolbox
This commit is contained in:
@@ -74,7 +74,15 @@ See the above repository for updates as well as full license text. */
|
|||||||
transition-delay: 33ms !important;
|
transition-delay: 33ms !important;
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
/* If tabs are in sidebar then nav-bar doesn't normally have its own background - so we nee to add it back */
|
||||||
|
#nav-bar.browser-titlebar{
|
||||||
|
background: inherit;
|
||||||
|
}
|
||||||
|
#toolbar-menubar:not([autohide="true"]) ~ #nav-bar.browser-titlebar{
|
||||||
|
background-position-y: -28px; /* best guess, could vary */
|
||||||
|
border-top: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Bookmarks toolbar needs so extra rules */
|
/* Bookmarks toolbar needs so extra rules */
|
||||||
#PersonalToolbar{ transition: transform var(--uc-autohide-toolbar-duration) ease var(--uc-autohide-toolbar-delay) !important; position: relative; z-index: 1 }
|
#PersonalToolbar{ transition: transform var(--uc-autohide-toolbar-duration) ease var(--uc-autohide-toolbar-delay) !important; position: relative; z-index: 1 }
|
||||||
|
|||||||
Reference in New Issue
Block a user