Tabs below bookmarks toolbar in 68.2.0esr ?

User Help for Mozilla Firefox
Post Reply
User avatar
Clueless in Seattle
Posts: 503
Joined: March 27th, 2006, 11:58 am
Location: duh!

Tabs below bookmarks toolbar in 68.2.0esr ?

Post by Clueless in Seattle »

I reluctantly updated to Firefox 68.2.0esr running under Windows 7. I say "reluctantly" because it seems that every update disables features and settings that are important to me.

Among other changes, this most recent update forced my tabs up to the top of the window, above the address bar. I've not been able to figure out how to move the tabs back down to the location directly above the the web pages they refer to. I think I used to have an add-on that accomplished but it no longer works.

It's likely that in response to past updates that also had forced the tabs to the top of the window I may have made changes to my userChrome.css file. But I'm an old guy and my memory's not so good these days so I can't recall what I may have changed or why.

I tried a fix posted in this forum but it only made things worse: http://forums.mozillazine.org/viewtopic ... 2&start=15

And I've found a web page that seems to offer a solution, albeit a complicated one: https://support.mozilla.org/en-US/kb/fo ... ow-url-bar

I'm worried that new code may conflict with the old code in my userChrome.css file.

I'd be grateful if someone could look at my old file and tell me if there's code that needs to be deleted before I try pasting in the code suggested on that Mozilla web site:

Code: Select all

/* Tab bar below Navigation & Bookmarks Toolbars */
#nav-bar { /* main toolbar */
  -moz-box-ordinal-group: 1 !important;
  box-shadow: none !important;
}
#PersonalToolbar { /* bookmarks toolbar */
  -moz-box-ordinal-group: 2 !important;
}
#TabsToolbar { /* tab bar */
  -moz-box-ordinal-group: 3 !important;
  padding-top: 0 !important;
}
#PlacesToolbarItems toolbarbutton[container="true"] .toolbarbutton-icon {
  display: none !important;
}
/* Clean up spacing */
.titlebar-placeholder {
  display: none !important;
}
toolbarbutton.bookmark-item {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

/* Vertical space for min/max/close buttons above the main toolbar */
/* On Mac, if not showing title bar, allow 20 pixels */
#main-window[tabsintitlebar="true"]:not([inFullscreen="true"]) #toolbar-menubar:not([accesskey]) ~  #nav-bar {
  margin-top: 20px !important;
}
/* On Windows, if not showing title bar or menu bar, allow 20 pixels */
#main-window[tabsintitlebar="true"] #toolbar-menubar[autohide="true"][inactive="true"] ~ #nav-bar {
  margin-top: 20px !important; /* More px may be better on Win10 */
}
/* Sorry, Linux users, I don't know the best approach for you! */

/* Background for Light and Dark themes */
#main-window[lwthemetextcolor="bright"] #TabsToolbar, 
#main-window[lwthemetextcolor="dark"] #TabsToolbar {
  background-color: var(--chrome-secondary-background-color) !important;
  background-image: none !important;
}
#main-window[lwthemetextcolor="dark"] .scrollbutton-up,
#main-window[lwthemetextcolor="dark"] .scrollbutton-down,
#main-window[lwthemetextcolor="dark"] .tabs-newtab-button,
#main-window[lwthemetextcolor="dark"] #new-tab-button,
#main-window[lwthemetextcolor="dark"] #alltabs-button {
  fill: var(--lwt-text-color) !important;
}
/* Left and right borders on Win 7 & 8, but not on 10 and later: */
@media (-moz-os-version: windows-win7), (-moz-os-version: windows-win8) {
  /* Vertical toolbar border */
  #main-window[sizemode=normal] #navigator-toolbox > toolbar#TabsToolbar {
    border-left: 1px solid hsla(240,5%,5%,0.3) !important;;
    border-right: 1px solid hsla(240,5%,5%,0.3) !important;;
    background-clip: padding-box;
  }
}

/* Override vertical shifts when moving a tab (9 Jan 2018) */
#TabsToolbar[movingtab] {
  padding-bottom: 0 !important;
}
#TabsToolbar[movingtab] > .tabbrowser-tabs {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
#TabsToolbar[movingtab] + #nav-bar {
  margin-top: 0 !important;
}
/* Recreates the basic functionality of the popular Roomy Bookmarks Toolbar add-on:
Hide bookmarks bar items label text, show on hover. */

.bookmark-item > .toolbarbutton-text {
  margin-top: -1px !important;
}
.bookmark-item {
  margin: -1px !important;
}

.bookmark-item:not([container]):not([open="true"]) > .toolbarbutton-text {
  display: none !important;
}

#PlacesToolbarItems > .bookmark-item:not([container]):not([open="true"]) > .toolbarbutton-icon[label]:not([label=""]) {
  margin-inline-end: 0px !important;
}
_____________
Will in Seattle
a.k.a. "Clueless"
User avatar
dickvl
Posts: 54164
Joined: July 18th, 2005, 3:25 am

Re: Tabs below bookmarks toolbar in 68.2.0esr ?

Post by dickvl »

You only need to remove this no longer working code at the start of your file that works for older Firefox versions:

Code: Select all

/* Tab bar below Navigation & Bookmarks Toolbars */
#nav-bar { /* main toolbar */
  -moz-box-ordinal-group: 1 !important;
  box-shadow: none !important;
}
#PersonalToolbar { /* bookmarks toolbar */
  -moz-box-ordinal-group: 2 !important;
}
#TabsToolbar { /* tab bar */
  -moz-box-ordinal-group: 3 !important;
  padding-top: 0 !important;
}
You can possibly place the new code in a separate file and use an @import url(file); to import this file.
This @import line needs to be placed at the start of userChrome.css above the default @namespace line.
Post Reply