Use similar code for window drag space in all stylesheets part2

This commit is contained in:
MrOtherGuy
2019-02-08 10:47:26 +02:00
parent eabff2de11
commit feba8a6403
4 changed files with 30 additions and 10 deletions

View File

@@ -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 */