当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Need help with my userChrome.css and window controls

  • 4 件の返信
  • 1 人がこの問題に困っています
  • 14 回表示
  • 最後の返信者: cor-el

more options

I'm trying to get Firefox to obey my window control order. For me, the window controls are on the left with the order of Close, Maximize, Minimize. But Firefox does not like that and puts it like macOS with Close, Minimize, Maximize.

So I got this going

#TabsToolbar {
  direction: ltr;
}

#tabbrowser-tabs {
  direction: ltr;
}

.titlebar-buttonbox {
  display: flex;
}

.titlebar-min {
  order: 2;
}

.titlebar-max {
  order: 1;
}

And it works well. But here is the problem, when the window becomes Maximized, the order changes to Maximize, Close, Minimize, as seen here in the photo. Anyone got some advice?

I'm trying to get Firefox to obey my window control order. For me, the window controls are on the left with the order of Close, Maximize, Minimize. But Firefox does not like that and puts it like macOS with Close, Minimize, Maximize. So I got this going <pre><nowiki>#TabsToolbar { direction: ltr; } #tabbrowser-tabs { direction: ltr; } .titlebar-buttonbox { display: flex; } .titlebar-min { order: 2; } .titlebar-max { order: 1; } </nowiki></pre><br> And it works well. But here is the problem, when the window becomes Maximized, the order changes to Maximize, Close, Minimize, as seen here in the photo. Anyone got some advice?
添付されたスクリーンショット

この投稿は cor-el により に変更されました

すべての返信 (4)

more options

I am unable to edit my comment, but I didn't paste the proper userChrome.css file

This is the code I am actually playing with:

  1. tabbrowser-tabs {
 direction: ltr;

}

.titlebar-buttonbox {

 display: flex;

}

.titlebar-min {

 order: 3;

}

.titlebar-max {

 order: 2;

} .titlebar-close {

 order: 1;

}

more options

In full screen mode you do not use .titlebar-buttonbox (.titlebar-buttonbox-container), but you use #window-controls.

#TabsToolbar[inFullscreen] #window-controls


この投稿は cor-el により に変更されました

more options

cor-el said

In full screen mode you do not use .titlebar-buttonbox (.titlebar-buttonbox-container), but you use #window-controls.
#TabsToolbar[inFullscreen] #window-controls


Thank you. I tried this code but the same result happened:

  1. tabbrowser-tabs {
 direction: ltr;

}

.titlebar-buttonbox {

 display: flex;

}

.titlebar-min {

 order: 3;

}

.titlebar-max {

 order: 2;

} .titlebar-close {

 order: 1;

}

  1. TabsToolbar[inFullscreen] #window-controls {
 direction: ltr;

}

.titlebar-buttonbox {

 display: flex;

}

.titlebar-min {

 order: 3;

}

.titlebar-max {

 order: 2;

} .titlebar-close {

 order: 1;

}

more options

You need different selectors for the individual window-controls as you can see if you use the Browser Toolbox to inspect the controls.