You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All tags, attributes, and attribute values must be lowercase.
All attribute values must be inside double quotation marks.
All tags must be closed. Tags that do not contain data such as image and line break tags do not need to have a closing tag.
All IDs and Classes are lower camel case.
A tag's ID should be the first attribute followed by a class if one exists.
Use Unix-style line endings (LF).
Always use title-case for headers and titles. Use CSS to transform the text to uppercase.
CSS
General
Multiple selectors should be included on the same line.
Use comments to block out large section such as Icons, Links, Forms, etc.
All IDs and Classes are lower camel case.
Each property and it's value should be separated by a space, i.e. margin-top: 10px;
Use Unix-style line endings (LF).
Don't use a tag along with an ID or class selector unless its necessary for readability or for specificity. This goes against making css rules as general as possible. Example: div#myId or span.genericClass
Use shorthand for rules.
Colors should be hex values using shorthand when possible unless you are declaring a transparent background. In that case use rgba()
Nothing is ever that !important. Yes I know there can be exceptions to this rule but it's rare. Let's try first to not use !important and save it for nuke it from orbit just to be sure scenarios.
SASS
Rule blocks should begin with any extends followed by include mixins and then the general declarations for that rule.
Do not extend a normal class. You should only extend a placeholder class
When nesting rules, which you should be doing very little of, be sure to include an extra line after the last declaration and the first nested selector.