Skip to content

Instantly share code, notes, and snippets.

@flying-sheep
Last active November 8, 2018 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flying-sheep/ad874200bbfe4034d45b9a110cb4a7b4 to your computer and use it in GitHub Desktop.
Save flying-sheep/ad874200bbfe4034d45b9a110cb4a7b4 to your computer and use it in GitHub Desktop.
A fix for firefox title bar buttons when you want them to be on the left hand side.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* button box to the left */
#TabsToolbar { direction: rtl }
/* tabs ltr again */
#titlebar-content { direction: rtl }
/* buttons inverted */
#tabbrowser-tabs { direction: ltr }
/* keep these ltr */
#titlebar-max,
#alltabs-button,
#new-tab-button,
#sync-button {
-moz-box-ordinal-group: 0;
}
/* fix margins */
#titlebar-close { margin-right: 6px }
/* remove buttons for maximized window */
#main-window[sizemode="maximized"] .titlebar-button {
visibility: hidden;
}
#main-window[sizemode="maximized"] #titlebar-buttonbox {
pointer-events: none;
}
#main-window[sizemode="maximized"] .titlebar-placeholder {
width: 0 !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment