Skip to content

Instantly share code, notes, and snippets.

@oidualc
Last active February 7, 2020 20:27
Show Gist options
  • Save oidualc/9f7c0a6591ada0d391ee6813a518dc3b to your computer and use it in GitHub Desktop.
Save oidualc/9f7c0a6591ada0d391ee6813a518dc3b to your computer and use it in GitHub Desktop.
Firefox Client Side Decorations: close, minimize, maximize on the left
#TabsToolbar {
direction: rtl;
}
#tabbrowser-tabs {
direction: ltr;
}
.titlebar-buttonbox {
display: flex;
}
.titlebar-min {
order: 2;
}
.titlebar-max {
order: 1;
}
.titlebar-close {
order: 3;
margin-right: 6px !important;
}
@jw-00000
Copy link

jw-00000 commented Feb 7, 2020

The snippet above doesn't seem to work anymore. I use the following in Firefox 72:

/* Turn top bar into flex container, whose contents can be re-ordered */
#TabsToolbar { display: flex !important; }
/* Move x+- to the first position */
.titlebar-buttonbox-container { order: -1; }
/* .toolbar-items contains the tab bar and the other buttons, these should expand to fill the flex container */
.toolbar-items { flex-grow: 1; }
/* Remove spacers, which I don't like the look of */
.titlebar-spacer[type="pre-tabs"], .titlebar-spacer[type="post-tabs"] { display: none; }
/* Re-order the buttons from -+x to x-+ and fix spacing */
.titlebar-buttonbox { display: flex; }
.titlebar-min { order: 2; }
.titlebar-max { order: 3; }
.titlebar-close { order: 1; margin-left: 2px !important; margin-right: 6px !important; }

(Commenting this because this gist is linked from Stack Overflow.)

@oidualc
Copy link
Author

oidualc commented Feb 7, 2020

For Firefox 72 this shouldn't be needed anymore in Linux, where it initially was meant to be used, because Firefox now follows the relative system preference and moves the three buttons to the left if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment