Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

How to use userChrome.css to move favicon and text on tabs up 3px and left 2px

  • 2 απαντήσεις
  • 1 έχει αυτό το πρόβλημα
  • 246 προβολές
  • Τελευταία απάντηση από Gojira

more options

I would like to control the positioning of the favicon and text which appears on the tabs. I'm hoping this will be possible by using userChrome.css. Also, would it be possible to reduce the height of the background behind the tabs with userChrome.css?

My goal is basically to reduce the height of the tabs and the background behind the tabs.

Thanks

I would like to control the positioning of the favicon and text which appears on the tabs. I'm hoping this will be possible by using userChrome.css. Also, would it be possible to reduce the height of the background behind the tabs with userChrome.css? My goal is basically to reduce the height of the tabs and the background behind the tabs. Thanks

Επιλεγμένη λύση

You can find the relevant code for the tab bar height in this file that you can open via the location bar.

  • chrome://browser/skin/browser.css

I use code like this to adjust the height:

@namespace url("https://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

/* Tab bar: adjust height - chrome://browser/skin/browser.css */
#tabbrowser-tabs,
.tab-background-start[selected=true]::after,
.tab-background-start[selected=true]::before,
.tab-background-start,
.tab-background-end,
.tab-background-end[selected=true]::after,
.tab-background-end[selected=true]::before {
  min-height: 24px!important;
}
#tabbrowser-tabs {height:26px!important;}
#tabbrowser-tabs toolbar button > .toolbarbutton-icon { padding-bottom:2px !important; }

For the icon and the text you can modify the padding or margin of those elements with these selectors:

.tab-text {padding-bottom:3px !important; }
.tab-throbber, .tab-icon-image  {padding-left:2px !important; }
Ανάγνωση απάντησης σε πλαίσιο 👍 2

Όλες οι απαντήσεις (2)

more options

Επιλεγμένη λύση

You can find the relevant code for the tab bar height in this file that you can open via the location bar.

  • chrome://browser/skin/browser.css

I use code like this to adjust the height:

@namespace url("https://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

/* Tab bar: adjust height - chrome://browser/skin/browser.css */
#tabbrowser-tabs,
.tab-background-start[selected=true]::after,
.tab-background-start[selected=true]::before,
.tab-background-start,
.tab-background-end,
.tab-background-end[selected=true]::after,
.tab-background-end[selected=true]::before {
  min-height: 24px!important;
}
#tabbrowser-tabs {height:26px!important;}
#tabbrowser-tabs toolbar button > .toolbarbutton-icon { padding-bottom:2px !important; }

For the icon and the text you can modify the padding or margin of those elements with these selectors:

.tab-text {padding-bottom:3px !important; }
.tab-throbber, .tab-icon-image  {padding-left:2px !important; }
more options

This has achieved exactly what I wanted!!!

Thank you for you help!!! d(^_^)