Mozilla VPN is currently experiencing an outage. Our team is actively working to resolve the issue. Please check the status page for real-time updates. Thank you for your patience.

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Questions about creating CSS files

  • 6 个回答
  • 1 人有此问题
  • 5 次查看
  • 最后回复者为 cor-el

more options

Under the heading of "teach me how to fish" I have these questions/requests: 1. I need a good, comprehensive tutorial about creating CSS files. 2.Is there a comprehensive listing of CSS commands (related to FF 57) or is that statements? Either way rather than just guess a list describing what each does would be helpful. Any help most appreciated.

Under the heading of "teach me how to fish" I have these questions/requests: 1. I need a good, comprehensive tutorial about creating CSS files. 2.Is there a comprehensive listing of CSS commands (related to FF 57) or is that statements? Either way rather than just guess a list describing what each does would be helpful. Any help most appreciated.

所有回复 (6)

more options

Would say no and yes but not all in one place and not related to 57 in full way.

https://www.userchrome.org/ https://www.userchrome.org/what-is-userchrome-css.html https://github.com/axydavid/FirefoxUI/blob/master/README.md https://github.com/wilfredwee/photon-australis

have to look and search sites for other url's

Please let us know if this solved your issue or if need further assistance.

more options

Thanks for your reply /w links which I will study.

That said, since you say 'yes and no' and 'not related to 57' I guess my issue is not resolved. Does make one wonder why Mozilla would consider v57 ready for prime-time if one of its major user components is not fully documented and therefore difficult (impossible for some) to use! Will they ever give this their full attention?

more options

Some links with posts relevant to css + FF57 that may help you

the post by jscher2000 on 11/16/17 - sorry don't know how to post a link to the exact post, just scroll down to it

https://support.mozilla.org/en-US/questions/1177360

The chosen solution at this link

https://support.mozilla.org/en-US/questions/1178010?page=1

Information at these links by the author of the Classic Theme Restorer add-on

https://github.com/Aris-t2/CustomCSSforFx/

https://github.com/Aris-t2/CustomCSSforFx/issues

I've been saving the links until I have time to learn how to make the changes myself. Until then staying on 56. This time of year there is just not enough time to learn how to do something new.

more options

Thanks for the additional links. I likely would have delayed as well but my 'upgrade' was forced on me even though I had the appropriate do-not-upgrade options ticked, very annoying! I hate retreating so will push ahead through the dark. For me I consider this issue solved but any other readers that want to add links should feel free to do so. That would help us all. Might actually be 'fishing' sometime in the future.

more options

CSS rules consists of

  • selectors - these identify particular elements in the UI (e.g., tabs bar) and are particular to Firefox
  • properties - these are mostly standard CSS (e.g., visibility), but -moz-prefixed properties are particular to Firefox
  • values - these are mostly standard CSS (e.g., hidden), except for the -moz-prefixed properties

It sounds as though you are wishing for a well written guide to the useful selectors, and we should all love that. But... I'm not aware of such a thing. Other than looking at and modifying rule sets you find online, I can suggest the following:

You can inspect the local copy of the source code of the tolbar area if you paste the following address to the address bar and press Enter/Return to load it:

view-source:chrome://browser/content/browser.xul

That's hard to read as plain text. If you save it locally with a .xml extension and open it in an editor that can add syntax coloring to XML, that will make it easier to spot the ID and class attributes.

Note: The source file doesn't show dynamically generated content like the address bar drop-down or your bookmarks.

To explore interactively, check out the Browser Toolbox. See: https://developer.mozilla.org/docs/To.../Browser_Toolbox. It's not as convenient as the old DOM Inspector combined with the old Element Inspector, but hopefully it will continue to improve.

more options

You can also check out the Firefox source code on DXR. There are usually a lot of useful comments in the source code, so (new) devs can see what the code is supposed to do.