From 8e5b9b476bb1e3549042754eeaa0e6d8f4c5cb2e Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 2 Dec 2018 05:30:59 +0200 Subject: [PATCH] Add drag-space support --- chrome/hide_tabs_with_one_tab.css | 7 ++++++- chrome/hide_tabs_with_one_tab_w_window_controls.css | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/chrome/hide_tabs_with_one_tab.css b/chrome/hide_tabs_with_one_tab.css index 13830c5..f322c86 100644 --- a/chrome/hide_tabs_with_one_tab.css +++ b/chrome/hide_tabs_with_one_tab.css @@ -1,6 +1,10 @@ /* Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs */ /* Firefox 65+ only */ /* !!USER!! - REMOVE ALL BUTTONS you can from the tabs toolbar */ + +/* Configurable window drag space */ +:root[sizemode="normal"] #nav-bar{ --window-drag-space-width: 20px } + #titlebar{ -moz-appearance: none !important; } #tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox{ min-height: 0 !important; } :root:not([customizing]) #tabbrowser-tabs .tabs-newtab-button, @@ -31,4 +35,5 @@ min-height: initial !important; height: initial !important; -moz-appearance: initial !important; -} \ No newline at end of file +} +#nav-bar{ padding: 0 var(--window-drag-space-width,0px) } \ No newline at end of file diff --git a/chrome/hide_tabs_with_one_tab_w_window_controls.css b/chrome/hide_tabs_with_one_tab_w_window_controls.css index 7c2ca19..e06d5a7 100644 --- a/chrome/hide_tabs_with_one_tab_w_window_controls.css +++ b/chrome/hide_tabs_with_one_tab_w_window_controls.css @@ -1,5 +1,10 @@ /* Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs */ +/* Firefox 65+ only */ /* !!USER!! - REMOVE ALL BUTTONS you can from the tabs toolbar */ + +/* Configurable window drag space */ +:root[sizemode="normal"] #nav-bar{ --window-drag-space-width: 20px } + #titlebar{ -moz-appearance: none !important; } /* We'll use window controls from menubar instead */ #TabsToolbar > .titlebar-buttonbox-container { display: none } @@ -35,4 +40,5 @@ } :root:not([customizing]) #toolbar-menubar[autohide][inactive] > #menubar-items{ pointer-events: none; opacity: 0 } -#nav-bar{ padding-right: calc(3 * 46px) } \ No newline at end of file + +#nav-bar{ padding-right: calc(3 * 46px + var(--window-drag-space-width,0px)); padding-left: var(--window-drag-space-width,0px)} \ No newline at end of file