2020-05-22 05:13:58 +00:00
|
|
|
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/navbar_tabs_oneliner_tabs_on_left.css made available under Mozilla Public License v. 2.0
|
|
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
|
2019-02-08 22:03:13 +00:00
|
|
|
/*Make tabs and navbar appear side-by-side tabs on left */
|
|
|
|
|
|
|
|
/* IMPORTANT */
|
|
|
|
/*
|
2019-02-09 10:45:52 +00:00
|
|
|
Get window_control_placeholder_support.css
|
2019-02-08 22:03:13 +00:00
|
|
|
Window controls will be all wrong without it
|
|
|
|
*/
|
2021-11-21 07:42:28 +00:00
|
|
|
|
2021-06-04 21:17:16 +00:00
|
|
|
:root[uidensity="compact"]{
|
|
|
|
--tab-block-margin: 2px !important;
|
|
|
|
}
|
2021-03-21 13:57:14 +00:00
|
|
|
|
2018-11-29 18:49:59 +00:00
|
|
|
/* Modify these to change relative widths or default height */
|
2019-02-08 08:47:26 +00:00
|
|
|
#navigator-toolbox{
|
2021-04-23 08:27:54 +00:00
|
|
|
--uc-navigationbar-width: 45vw;
|
2019-02-08 08:47:26 +00:00
|
|
|
--uc-toolbar-height: 40px;
|
2021-04-23 08:27:54 +00:00
|
|
|
--uc-urlbar-min-width: 50vw; /* minimum width for opened urlbar */
|
|
|
|
}
|
|
|
|
@media (-moz-proton){
|
|
|
|
#scrollbutton-up,#scrollbutton-down{ border-block-width: 2px !important; }
|
2019-02-08 08:47:26 +00:00
|
|
|
}
|
2018-11-29 18:49:59 +00:00
|
|
|
/* Override for other densities */
|
2021-03-21 13:57:14 +00:00
|
|
|
:root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 34px;}
|
|
|
|
:root[uidensity="touch"] #navigator-toolbox{ --uc-toolbar-height: 44px; }
|
2018-11-29 18:49:59 +00:00
|
|
|
|
2020-05-10 15:25:44 +00:00
|
|
|
:root[uidensity=compact] #urlbar-container{
|
2019-10-20 20:02:47 +00:00
|
|
|
--urlbar-container-height: var(--uc-toolbar-height) !important;
|
|
|
|
padding-block: 0 !important;
|
|
|
|
}
|
2020-05-10 15:25:44 +00:00
|
|
|
:root[uidensity=compact] #urlbar{
|
2019-10-20 20:02:47 +00:00
|
|
|
--urlbar-toolbar-height: var(--uc-toolbar-height) !important;
|
|
|
|
}
|
|
|
|
|
2018-11-29 18:49:59 +00:00
|
|
|
/* prevent urlbar overflow on narrow windows */
|
|
|
|
/* Dependent on how many items are in navigation toolbar and tabs-/nav-bar ratio - ADJUST AS NEEDED */
|
|
|
|
@media screen and (max-width: 1600px){
|
|
|
|
#urlbar-container{ min-width:unset !important }
|
|
|
|
}
|
|
|
|
|
2019-02-08 22:03:13 +00:00
|
|
|
#toolbar-menubar{ height: initial !important; }
|
2019-02-09 10:45:52 +00:00
|
|
|
#toolbar-menubar[inactive] > :not(.titlebar-buttonbox-container){ opacity: 0; pointer-events: none; }
|
2018-11-29 18:49:59 +00:00
|
|
|
#toolbar-menubar[inactive]{ margin-bottom: calc(0px - var(--uc-toolbar-height)) }
|
|
|
|
|
2018-11-29 19:05:43 +00:00
|
|
|
#TabsToolbar > .titlebar-buttonbox-container,
|
2018-11-29 18:49:59 +00:00
|
|
|
.titlebar-spacer[type="post-tabs"]{
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#TabsToolbar{
|
|
|
|
margin-right: var(--uc-navigationbar-width);
|
2020-08-14 13:47:24 +00:00
|
|
|
--tabs-navbar-shadow-size: 0px;
|
2018-11-29 18:49:59 +00:00
|
|
|
}
|
2021-03-21 13:57:14 +00:00
|
|
|
|
|
|
|
#tabbrowser-tabs{
|
2021-06-04 21:17:16 +00:00
|
|
|
--tab-min-height: calc(var(--uc-toolbar-height) - 2 * var(--tab-block-margin,0px)) !important;
|
2021-03-21 13:57:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container{
|
|
|
|
min-height: var(--uc-toolbar-height) !important
|
|
|
|
}
|
2018-11-29 18:49:59 +00:00
|
|
|
#tabbrowser-tabs,
|
|
|
|
.tabbrowser-tab[pinned]{
|
2021-03-21 13:57:14 +00:00
|
|
|
min-height: var(--tab-min-height) !important;
|
2018-11-29 18:49:59 +00:00
|
|
|
}
|
|
|
|
#nav-bar{
|
|
|
|
margin-left: calc(100vw - var(--uc-navigationbar-width));
|
|
|
|
margin-top: calc(0px - var(--uc-toolbar-height));
|
2019-02-08 08:47:26 +00:00
|
|
|
}
|
|
|
|
|
2019-05-05 12:20:51 +00:00
|
|
|
/* Override style set in window_control_placeholder_support.css */
|
2019-12-06 08:29:44 +00:00
|
|
|
#nav-bar{ border-left-width: 0px !important }
|
2019-05-05 12:20:51 +00:00
|
|
|
#nav-bar::before{ display:none !important }
|
|
|
|
|
|
|
|
/* Rules specific to window controls on right layout */
|
2019-02-08 22:03:13 +00:00
|
|
|
@supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
|
|
|
|
:root:not([inFullscreen]) #TabsToolbar-customization-target > .titlebar-spacer[type="pre-tabs"]{
|
2021-09-19 17:31:30 +00:00
|
|
|
width: var(--uc-window-drag-space-post) !important;
|
2019-02-08 22:03:13 +00:00
|
|
|
display: -moz-box !important;
|
|
|
|
}
|
|
|
|
#TabsToolbar > .titlebar-buttonbox-container{ display: -moz-box; }
|
2018-11-29 18:49:59 +00:00
|
|
|
}
|
|
|
|
|
2019-02-05 06:17:03 +00:00
|
|
|
/* 1px margin on touch density causes tabs to be too high */
|
|
|
|
.tab-close-button{ margin-top: 0 !important }
|
|
|
|
|
2021-04-23 08:27:54 +00:00
|
|
|
/* Make opened urlbar overlay the toolbar */
|
|
|
|
#urlbar[open]:focus-within{
|
|
|
|
min-width: var(--uc-urlbar-min-width,none) !important;
|
|
|
|
right: 0 !important;
|
|
|
|
left: auto !important;
|
|
|
|
}
|
|
|
|
|
2018-11-29 18:49:59 +00:00
|
|
|
/* Hide dropdown placeholder */
|
2019-05-05 12:20:51 +00:00
|
|
|
#urlbar-container:not(:hover) .urlbar-history-dropmarker{ margin-inline-start: -28px; }
|
2021-04-23 08:27:54 +00:00
|
|
|
|
2020-01-12 13:26:18 +00:00
|
|
|
/* Fix customization view */
|
|
|
|
#customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; }
|