- Firefox-Version
- 100
- Betriebssystem
- Windows Server 2008 R2
Ich würde gerne die Tabbar verstecken wenn nur ein Tab geöffnet ist.
So weit, so gut, dafür gibt es eine css-Datei...
/*
How To:
1. Find your firefox profile folder : https://support.mozilla.org/en-
US/kb/profiles-where-firefox-stores-user-data
2. create a "chrome" folder if it doesn't exist
3. Paste content of this gist in a "userChrome.css" file
4. Go to about:config and set
toolkit.legacyUserProfileCustomizations.stylesheets to true
5. Restart Firefox
Don't hesitate to say if there are bugs, I only tested this for my
workflow : I don't use tabs
at all but I want to see the bar if I open a tab by mistake (otherwise
I sometimes lose a tab)
*/
/* Copy the default settings for --tab-min-height as --hidetabs-tab-
min-height */
:root {
--hidetabs-tab-min-height: 30px;
}
:root[uidensity=compact] {
--hidetabs-tab-min-height: 29px;
}
:root[uidensity=touch] {
--hidetabs-tab-min-height: 41px;
}
/* Set --tab-min-height to 0px so tab bar can disappear */
#tabbrowser-tabs #TabsToolbar {
--tab-min-height: 0px;
}
/* Restore minimum height when more than one tab */
#TabsToolbar #tabbrowser-tabs tab {
min-height: var(--hidetabs-tab-min-height);
}
/* Collapse tab bar when there is only one tab (tab is both first &
last) */
#tabbrowser-tabs tab[first-visible-tab="true"][last-visible-tab="true"]
{
visibility: collapse;
}
/* Hide the New Tab button when there is only one tab (first visible
tab is
adjacent to new tab button) */
#tabbrowser-tabs tab[first-visible-tab="true"] + #tabs-newtab-button {
visibility: collapse;
}
Alles anzeigen
Diese funktioniert aber dank der unzähligen anderen css-Dateien nicht richtig.
Zwar werden tatsächlich keine tabs angezeigt, wenn nur eines geöffnet ist, allerdings verschwindet die Leiste trotzdem nicht.
Wohl deswegen weil nirgends wirklich angegeben ist, DASS sie verschwinden soll.
Diese Leiste setzt sich wohl zusammen aus #navigator-toolbox #Tabs-Toolbar und einem Ding namens scrollbox (laut Browser-Werkzeuge), obwohl...zum scrollen ist da eigentlich nichts.
Wie auch immer, ich hab's mittlerweile aufgegeben da noch weiter herumzuprobieren.
Hier sind die anderen css-Dateien die wohl Einfluss auf das "falsche" Verhalten haben:
@import "icons.css";
@import "statusbar.css";
@import "toolbars.css";
@import "contextmenu.css";
@import "urlbar.css";
@import "tabs.css";
@import "Separator.css";
@import "downloads.css";
@import url("./Fx56_bookmark_buttons/userChrome_Fx56_bookmark_icons.css");
#contentAreaDownloadsView {
padding: 0px !important;
}
:root {
--default-focusring: 0 !important;
}
#main-window {
background-color: #C0C0C0 !important;
color: #000 !important;
}
#reload-button {
display: -moz-box !important;
}
#stop-button {
display: -moz-box !important;
transform: scaleX(-1) !important;
}
#stop-reload-button {
transform: scaleX(-1) !important;
}
#reload-button {
transform: scaleX(-1) !important;
}
*{ scrollbar-color: auto !important; scrollbar-width: auto !important; }
/* Multi-Row Bookmarks Toolbar */
##nav-bar {
/* Override max-height */
min-height: unset !important;
max-height: unset !important;
}
##nav-bar {
/* Override hiding */
overflow-x: visible !important;
overflow-y: visible !important;
display: inline-block !important;
padding-bottom: 1px;
}
##nav-bar {
/* Reduce padding to fit rows closer together */
padding-top: 1px !important;
padding-bottom: 1px !important;
}
#PanelUI-menu-button {
display: none !important;
}
##nav-bar-overflow-button {
visibility: collapse !important;
@-moz-document url-prefix() { ::-moz-focus-inner {border: none} select:-moz-focusring { color: transparent; text-shadow: 0px 0px 0px #000; } }
#TabsToolbar {
visibility:collapse;
}
#navigator-toolbox:hover #TabsToolbar{
visibility: visible !important;
}
Alles anzeigen
/* TABS: height */
*|*:root {
--menubar-height: 30px;
--bookmarkbar-height: 18.3px;
/*--tabbar-top: calc(var(--menubar-height) + var(--bookmarkbar-height) + var(--tab-min-height) + 8px); /*89+*/
}
/*
:root {
--tab-min-height: 28px !important;
}
:root #tabbrowser-tabs {
--tab-min-height: 28px !important;
}*/
/* Benutze ein Hintergrundbild für die Symbolleisten */
menubar, toolbox, toolbar, .tabbrowser-tabs {
xbackground-image: url("Kopie von ie2.jpg") !important;
background-color: none !important;
background-repeat: no-repeat;
}
#TabsToolbar {
xbackground-image: url("Kopie von ie2.jpg") !important;
background-color: none !important;
background-repeat: no-repeat;
}
#nav-bar:not(:-moz-lwtheme) {
margin-top: 1px !important;
background-color: inherit !important;
background-image: url("image/xtop.png") !important;
background-position: left bottom;
padding: 0 !important;
border: 2px solid !important;
border-top: 2px solid !important;
border-left: 7px solid !important;
border-image: url("image/toolbar_handle_top.png") !important;
border-image-slice: 2 2 2 7 !important;
height: 55px !important;
}
/*:not(#uc-toolbar)*/
toolbar:not(#toolbar-menubar):not(#nav-bar):not(#TabsToolbar):not(:-moz-lwtheme) {
-moz-appearance: none !important;
background-color: inherit !important;
padding: 1px !important;
border: 2px solid !important;
border-left: 7px solid !important;
border-top: 0px !important;
border-image: url("image/toolbar_handle.png") !important;
border-image-slice: 2 2 2 7 !important; }
min-height: 55px !important;
max-height: 55px !important;
position: absolute !important;
background-repeat: no-repeat;
#main-window[uidensity="compact"] toolbar:not(#TabsToolbar):not(#toolbar-menubar):not(#nav-bar):not(:-moz-lwtheme) {
margin-bottom: 0px !important;
}
#toolbar-menubar {
-moz-appearance: none !important;
background-color: #c0c0c0 !important;
padding: 0px !important;
padding-left: 2px !important;
border: 2px solid !important;
border-left: 7px solid !important;
border-right: 43px solid !important;
border-bottom: 0px !important;
border-image: url("image/menu_bar_handle.png") !important;
border-image-slice: 2 43 2 7 !important; }
opacity: 0.5;
#main-window[tabsintitlebar="true"] #toolbar-menubar {
border: none !important;
height: 100% !important;
background-image: linear-gradient(to right, #000060,#A1C4E9) !important;
}
#main-window[tabsintitlebar="true"] #toolbar-menubar .menubar-text {
color: #fff !important;
}
#TabsToolbar .titlebar-buttonbox-container {
visibility: collapse !important;
}
#browser {
xborder: solid !important;
padding: 0px !important;
margin-top: -1px !important;
border-width: 2px 2px 2px 2px !important;
border-image: url("image/combobox.png") !important;
border-image-slice: 2 2 2 2 !important;
#navigator-toolbox toolbar:not(#nav-bar):not(#toolbar-menubar) {-moz-box-ordinal-group:10}
}
#navigator-toolbox {
min-height: 120px !important;
max-height: 210px !important;
}
#TabsToolbar {-moz-box-ordinal-group:1000!important}
#TabsToolbar {
display: block !important;
position: absolute !important;
## top: var(--tabbar-top) !important;
top: 126px !important;
min-height: 0px !important;
max-height: 30px !important;
width: 100vw !important;
-moz-appearance: none !important;
/*background-image: url("image/bottom.png") !important;*/
background-color: inherit !important;
border: 2px solid !important;
border-left: 7px solid !important;
border-top: 0px !important;
border-image: url("image/toolbar_handle.png") !important;
padding: 0px !important;
padding-left: 0px !important;
border-image-slice: 2 2 2 7 !important;
}
#tabbrowser-tabs, #tabbrowser-tabs .toolbar-items {
margin-top: -4px !important;
border: 0px solid !important;
border-right: 0px solid !important;
border-image: url("image/tabs_handle.png") !important;
border-image-slice: 1 8 2 2 !important;
width: 100vw !important;
}
#main-window:not([chromehidden*="toolbar"]) #navigator-toolbox {padding-bottom: var(--tab-min-height) !important;}
#configuration_toolbar {
margin-top: 20px !important;
min-height: 70px !important;
max-height: 70px !important;
}
#uc-toolbar {
background-image: url("Kopie von ie.jpg") !important;
border-left: 7px solid !important;
border-top: 0px !important;
border-image: url("image/toolbar_handle.png") !important;
border-image-slice: 2 2 2 7 !important; }
}
Alles anzeigen
/* remove default tab colors */
.tab-line { /* = light top line in selected tab in Quantum default */
display: none !important;
}
.tab-background {
border: transparent !important;
background: transparent;
color: transparent;
opacity: 0.0;
}
#TabsToolbar:not(:-moz-lwtheme) .tabbrowser-tab[visuallyselected="true"],
#TabsToolbar:not(:-moz-lwtheme) .tabbrowser-tab, .tabbrowser-tab, .tab-content {
border: unset !important;
}
#TabsToolbar:not(:-moz-lwtheme) .tabbrowser-tab, .tabbrowser-tab,
#TabsToolbar:not(:-moz-lwtheme) .tabbrowser-tab[visuallyselected="true"] {
min-height: 0px !important;
max-height: 30px !important;
padding: 0px !important;
border: 0px solid transparent !important;
border-right: 3px solid #D3D3D3 !important;
box-shadow: inset -1px 0px #757575 !important;
}
.tab-content {
min-height: 18px !important;
max-height: 28px !important;
min-width: 28px !important;
padding: 0px !important;
padding-top: 1px !important;
padding-left: 12px !important;
padding-right: 8px !important;
border: unset !important;
background-image: url("image/3dtab.png") !important;
}
.tab-content:hover {
background-image: url("image/3dtab hover.png") !important;
}
.tab-content[selected="true"] {
/*color: #fff !important;*/
background-image: url("image/3dtab hover.png") !important;
}
.tab-content[selected="true"]:hover {
/*color: #fff !important;*/
background-image: url("image/3dtab hover.png") !important;
}
/*
#tabs-newtab-button {
border-right: 3px solid #fff !important;
box-shadow: inset -1px 0px #505050 !important;
}*/
spacer[part=overflow-start-indicator],
spacer[part=overflow-end-indicator] {
display: none !important; }
.tab-icon-image {
margin-top: -1px !important;
margin-left: -5px !important;
margin-right: 3px !important;
}
#tabs-newtab-button > image {
display: none !important;
}
#tabs-newtab-button {
background: url("NewTab2.png") no-repeat !important;
background-position: 0px 2px !important;
padding-left: 34px !important;
margin-bottom: -4px !important;
}
#tabs-newtab-button:hover {
background: lightgrey url("NewTab3.png") no-repeat !important;
background-position: 0px 2px !important;
padding-left: 34px !important;
margin-bottom: -4px !important;
}
Alles anzeigen
Ich kann gut verstehen, wenn wirklich niemand die Lust hat sich den ganzen Kram anzusehen.
Aber fragen kostet ja nichts.