![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
How to change toolbar button icon color in Library window?
Is there way to separate the icon color from the icons in the library window? i used
#nav-bar .chromeclass-toolbar-additional, #nav-bar .webextension-browser-action, #reload-button, #stop-button, .toolbarbutton-icon { fill: #ffffff !important; }
but it also applied it in the library window.
Is there way to separate the icon color from the icons in the library window? i used
<pre><nowiki>#nav-bar .chromeclass-toolbar-additional, #nav-bar .webextension-browser-action,
#reload-button, #stop-button, .toolbarbutton-icon {
fill: #ffffff !important;
}</nowiki></pre>
but it also applied it in the library window.
由cor-el于
被采纳的解决方案
Enclose the code in a @-moz-document block to restrict the code to browser.xul (future Firefox versions will switch to browser.xhtml).
@-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml){ (your code) }定位到答案原位置 👍 1
所有回复 (2)
选择的解决方案
Enclose the code in a @-moz-document block to restrict the code to browser.xul (future Firefox versions will switch to browser.xhtml).
@-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml){ (your code) }
由cor-el于
Thank you. got it working!
由joeyburrow于