mobile-config-firefox/chrome/hide_tabs_with_one_tab_w_window_controls.css

58 lines
2.2 KiB
CSS
Raw Normal View History

2020-05-22 05:13:58 +00:00
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_with_one_tab_w_window_controls.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
2018-12-02 03:07:43 +00:00
/* Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs */
2018-12-02 03:30:59 +00:00
/* Firefox 65+ only */
2018-12-02 03:07:43 +00:00
/* !!USER!! - REMOVE ALL BUTTONS you can from the tabs toolbar */
2018-12-02 03:30:59 +00:00
/* IMPORTANT */
/*
Get window_control_placeholder_support.css
Window controls will be all wrong without it
*/
2018-12-02 03:30:59 +00:00
2018-12-02 03:07:43 +00:00
#titlebar{ -moz-appearance: none !important; }
/* We'll use window controls from menubar instead */
#TabsToolbar > .titlebar-buttonbox-container { display: none }
#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox, #tabbrowser-arrowscrollbox{ min-height: 0 !important; }
#TabsToolbar > .titlebar-spacer[type="post-tabs"]{ width: 178px !important; }
#toolbar-menubar > spacer{ pointer-events: none }
2019-09-01 14:25:56 +00:00
:root:not([customizing]) #tabs-newtab-button,
2018-12-02 03:07:43 +00:00
:root:not([customizing]) #tabbrowser-tabs .tabs-newtab-button{
-moz-appearance: none !important;
height: 0px;
padding-top: 0px !important;
padding-bottom: 0px !important;
-moz-box-align: stretch;
margin: 0 !important;
}
#tabbrowser-tabs .tabbrowser-tab{ height: var(--tab-min-height) }
#tabbrowser-tabs .tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"]{
visibility: collapse;
}
/* Button re-styling */
2019-09-01 14:25:56 +00:00
#tabs-newtab-button:hover,
2018-12-02 03:07:43 +00:00
#tabbrowser-tabs .tabs-newtab-button:hover{ background-color: var(--toolbarbutton-hover-background) }
2019-09-01 14:25:56 +00:00
#tabs-newtab-button > .toolbarbutton-icon,
2018-12-02 03:07:43 +00:00
#tabbrowser-tabs .tabs-newtab-button > .toolbarbutton-icon{
padding: 0 !important;
transform: scale(0.6);
background-color: transparent !important;
}
/* Extra top padding in maximized window */
@media (-moz-os-version: windows-win10){
:root[sizemode="maximized"] #navigator-toolbox{ padding-top:7px !important; }
}
2018-12-02 03:07:43 +00:00
/* Window controls in nav-bar */
:root:not([customizing]) #toolbar-menubar[inactive]{
height: initial !important;
min-height: initial !important;
margin-bottom: -28px !important;
}
:root:not([customizing]) #toolbar-menubar[autohide][inactive] > #menubar-items{ pointer-events: none; opacity: 0 }