tasbar: Move tabs close button to the left on gtk-csd-reversed-placement

Fixes #538
This commit is contained in:
Rafael Mardojai CM 2023-09-30 19:44:19 -05:00
parent 5f531cf8aa
commit 8c9db7a9cd
No known key found for this signature in database
GPG Key ID: 2B2DAB2A58566C84
1 changed files with 22 additions and 0 deletions

View File

@ -491,6 +491,28 @@ tab {
margin-inline-start: 0 !important; margin-inline-start: 0 !important;
} }
/* Left close buttons */
@media (-moz-gtk-csd-reversed-placement) {
/* Reorder and fix alignment */
.tab-icon-stack {
order: 1 !important;
margin-left: 0 !important;
}
.tab-label-container {
order: 2 !important;
margin-right: auto !important;
}
.tab-close-button {
order: 0 !important;
margin-left: 0 !important;
}
/* Overlay is nor longer needed */
.tabbrowser-tab:not([pinned]) .tab-content::before {
display: none !important;
}
}
/* OPTIONAL: Hide single tab */ /* OPTIONAL: Hide single tab */
@supports -moz-bool-pref("gnomeTheme.hideSingleTab") { @supports -moz-bool-pref("gnomeTheme.hideSingleTab") {
#tabbrowser-tabs tab:only-of-type, #tabbrowser-tabs tab:only-of-type,