Firefox/Windows 8 Metro Style Guides
< Firefox
Jump to navigation
Jump to search
Nota Bene
- this a spot to jot down guidelines of varying types, largely for front end developers & designers. This includes code style, theming style, and whatever else will help us produce a consistent, shiny produce faster. If you have questions about this page, please ping :ally in #windev.
- Design/Theming guidelines
- use flyout panes over dialogs
- Coding Guidelines
- Generally we use Mozilla Coding Style, with a few exceptions:
- You don't need to wrap lines to 80 characters. Use longer lines (up to around 120 characters; use your judgement) if it improves readability.
- Generally we use Mozilla Coding Style, with a few exceptions:
- Consistency is king, and supersedes any particular rule.
- JS
- else in if/else pairings are double cuddled ( eg } else {
- CSS
- if you create an attribute and it has only one value, do not set it to true/false. Remove the attribute in the case of false. This produces cleaner, more concise css, without imperiling js readability.
- JS
- helpful references
- yuan's list of design links: https://kippt.com/yuan/designing-for-windows-8
- general coding guidelines for mozilla: https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style