Use similar code for window drag space in all stylesheets part2
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
/* Modify these to change relative widths or default height */
|
||||
#navigator-toolbox{ --uc-navigationbar-width: 40vw; --uc-toolbar-height: 40px; --window-drag-space-width: 20px}
|
||||
#navigator-toolbox{
|
||||
--uc-navigationbar-width: 40vw;
|
||||
--uc-toolbar-height: 40px;
|
||||
--window-drag-space-width: 20px;
|
||||
--uc-window-control-width: 138px;
|
||||
}
|
||||
/* Override for other densities */
|
||||
:root[uidensity="compact"] > #navigator-toolbox{ --uc-toolbar-height: 32px;}
|
||||
:root[uidensity="touch"] > #navigator-toolbox{ --uc-toolbar-height: 40px; }
|
||||
@@ -31,7 +36,13 @@
|
||||
#nav-bar{
|
||||
margin-left: calc(100vw - var(--uc-navigationbar-width));
|
||||
margin-top: calc(0px - var(--uc-toolbar-height));
|
||||
padding-right: calc(3 * 46px + var(--window-drag-space-width));
|
||||
padding-left: 0px !important;
|
||||
}
|
||||
|
||||
/* Space to drag the window on both sides of navbar */
|
||||
:root[tabsintitlebar="true"]:not([inFullscreen]) #nav-bar{
|
||||
padding-right: calc(var(--uc-window-control-width) + var(--window-drag-space-width,0px));
|
||||
padding-left: var(--window-drag-space-width,0px)
|
||||
}
|
||||
|
||||
/* 1px margin on touch density causes tabs to be too high */
|
||||
|
||||
Reference in New Issue
Block a user