... | @@ -25,7 +25,7 @@ Comment style should be simple and consistent within a single code base. |
... | @@ -25,7 +25,7 @@ Comment style should be simple and consistent within a single code base. |
|
* Keep line-length to a sensible maximum, e.g., 80 columns.
|
|
* Keep line-length to a sensible maximum, e.g., 80 columns.
|
|
* Make liberal use of comments to break CSS code into discrete sections.
|
|
* Make liberal use of comments to break CSS code into discrete sections.
|
|
* Use "sentence case" comments and consistent text indentation.
|
|
* Use "sentence case" comments and consistent text indentation.
|
|
* There should be one line after each comment section/subsection, and 4 lines before (unless the section starts the page)
|
|
* There should be one line after each comment section/subsection, and 4 lines before sections (unless the section starts the page) and 2 lines before sub-sections.
|
|
|
|
|
|
Tip: configure your editor to provide you with shortcuts to output agreed-upon comment patterns.
|
|
Tip: configure your editor to provide you with shortcuts to output agreed-upon comment patterns.
|
|
|
|
|
... | | ... | |