Move window control placeholder styles to shared stylesheet

This commit is contained in:
MrOtherGuy
2019-02-09 00:03:13 +02:00
parent feba8a6403
commit 5e46b7a0a3
10 changed files with 140 additions and 73 deletions

View File

@@ -1,12 +1,23 @@
/*Make tabs and navbar appear side-by-side tabs on left */
/* IMPORTANT */
/*
Get EITHER
window_control_placeholder_support.css
OR
window_control_placeholder_support_mac.css
Window controls will be all wrong without it
*/
/* Modify these to change relative widths or default height */
#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="compact"] > #navigator-toolbox{ --uc-toolbar-height: 31px;}
:root[uidensity="touch"] > #navigator-toolbox{ --uc-toolbar-height: 40px; }
/* prevent urlbar overflow on narrow windows */
@@ -15,12 +26,11 @@
#urlbar-container{ min-width:unset !important }
}
#toolbar-menubar{ height:initial !important; }
#toolbar-menubar{ height: initial !important; }
#toolbar-menubar[inactive] > #menubar-items{ opacity: 0; pointer-events: none; }
#toolbar-menubar[inactive]{ margin-bottom: calc(0px - var(--uc-toolbar-height)) }
#TabsToolbar > .titlebar-buttonbox-container,
#TabsToolbar > .toolbar-items > spacer,
.titlebar-spacer[type="post-tabs"]{
display: none;
}
@@ -39,14 +49,16 @@
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)
@supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
:root:not([inFullscreen]) #TabsToolbar-customization-target > .titlebar-spacer[type="pre-tabs"]{
width: var(--uc-window-drag-space-width) !important;
display: -moz-box !important;
}
#TabsToolbar > .titlebar-buttonbox-container{ display: -moz-box; }
}
/* 1px margin on touch density causes tabs to be too high */
.tab-close-button{ margin-top: 0 !important }
/* Hide dropdown placeholder */
#urlbar-container:not(:hover) .urlbar-history-dropmarker{margin-inline-start: -28px;}
#urlbar-container:not(:hover) .urlbar-history-dropmarker{ margin-inline-start: -28px; }