Don't modify #browser margins when chromehidden attr is set
chromehidden attribute to various values for windows where various toolbar are disabled, such as popups etc.
This commit is contained in:
@@ -13,6 +13,13 @@ See the above repository for updates as well as full license text. */
|
||||
}
|
||||
:root[uidensity="touch"] #navigator-toolbox{ --uc-bm-padding: 6px }
|
||||
|
||||
:root[chromehidden~="directories"] #navigator-toolbox{
|
||||
--uc-bm-height: 0px;
|
||||
}
|
||||
:root[chromehidden~="toolbar"] #navigator-toolbox{
|
||||
--uc-navbar-height: 0px;
|
||||
}
|
||||
|
||||
:root[sessionrestored] #nav-bar,
|
||||
:root[sessionrestored] #PersonalToolbar{
|
||||
background-image: linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)), var(--lwt-additional-images,var(--toolbar-bgimage)) !important;
|
||||
|
||||
@@ -50,4 +50,4 @@ See the above repository for updates as well as full license text. */
|
||||
#PersonalToolbar{ transition: transform 400ms ease 1.8s !important; position: relative; z-index: 1 }
|
||||
|
||||
/* Move up the content view */
|
||||
:root[sessionrestored]:not([inFullscreen]) > body > #browser{ margin-top: var(--uc-navbar-transform); }
|
||||
:root[sessionrestored]:not([inFullscreen],[chromehidden~="toolbar"]) > body > #browser{ margin-top: var(--uc-navbar-transform); }
|
||||
|
||||
@@ -13,8 +13,8 @@ See the above repository for updates as well as full license text. */
|
||||
pointer-events: none
|
||||
}
|
||||
|
||||
:root:not([customizing]) #navigator-toolbox:hover,
|
||||
:root:not([customizing]) #titlebar{
|
||||
:root:not([customizing],[chromehidden~="menubar"]) #navigator-toolbox:hover,
|
||||
:root:not([customizing],[chromehidden~="menubar"]) #titlebar{
|
||||
margin-bottom: calc(0px - 2 * var(--tab-block-margin) - var(--tab-min-height));
|
||||
}
|
||||
#TabsToolbar:not([customizing]){ visibility: hidden; transition: visibility 0ms linear 200ms }
|
||||
|
||||
@@ -5,11 +5,11 @@ See the above repository for updates as well as full license text. */
|
||||
* of the window - kinda like a sidebar.
|
||||
* If you have disabled titlebar then you need to also get window_control_placeholder_support.css to make space for window control buttons */
|
||||
|
||||
:root:not([customizing]){
|
||||
:root:not([customizing],[chromehidden~="menubar"]){
|
||||
--uc-vertical-tabs-width: 220px;
|
||||
--uc-navbar-height: 40px;
|
||||
}
|
||||
:root[uidensity="compact"]:not([customizing]){
|
||||
:root[uidensity="compact"]:not([customizing],[chromehidden~="menubar"]){
|
||||
--uc-navbar-height: 34px;
|
||||
}
|
||||
#PersonalToolbar,
|
||||
|
||||
Reference in New Issue
Block a user