mirror of
https://codeberg.org/claui/mobile-config-firefox.git
synced 2024-11-09 19:30:15 +00:00
4918f31c82
This patch makes tab label work better when label has rtl text. Secondary tab label (like "muted" etc.) is now also centered.
20 lines
684 B
CSS
20 lines
684 B
CSS
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/centered_tab_label.css made available under Mozilla Public License v. 2.0
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
.tab-label-container{
|
|
display: grid;
|
|
justify-content: safe center;
|
|
align-items: safe center;
|
|
}
|
|
|
|
.tab-secondary-label{
|
|
-moz-box-pack: center;
|
|
}
|
|
|
|
.tab-label,
|
|
.tab-secondary-label{ overflow: hidden }
|
|
|
|
.tabbrowser-tab[selected]:not(:hover) .tab-label-container:not([labeldirection="rtl"]),
|
|
#tabbrowser-tabs:not([closebuttons="activetab"]) .tabbrowser-tab:not(:hover,[pinned]) .tab-label-container:not([labeldirection="rtl"]){
|
|
margin-inline-end: 7px;
|
|
}
|