Use similar code for window drag space in all stylesheets part1

This commit is contained in:
MrOtherGuy
2019-02-07 12:43:36 +02:00
parent e6da6b0dc2
commit eabff2de11
6 changed files with 50 additions and 17 deletions

View File

@@ -2,8 +2,10 @@
/* Firefox 65+ only */
/* !!USER!! - REMOVE ALL BUTTONS you can from the tabs toolbar */
:root{ --uc-window-control-width: 138px; }
/* Configurable window drag space */
:root[sizemode="normal"] #nav-bar{ --window-drag-space-width: 20px }
#navigator-toolbox{ --window-drag-space-width: 20px }
#titlebar{ -moz-appearance: none !important; }
/* We'll use window controls from menubar instead */
@@ -45,4 +47,8 @@
:root:not([customizing]) #toolbar-menubar[autohide][inactive] > #menubar-items{ pointer-events: none; opacity: 0 }
#nav-bar{ padding-right: calc(3 * 46px + var(--window-drag-space-width,0px)); padding-left: var(--window-drag-space-width,0px)}
/* 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)
}