mirror of
https://github.com/primer/css.git
synced 2024-12-29 17:12:27 +03:00
Merge pull request #29 from BrianCS/patch-1
Add note on SCSS' overloaded rgba() function
This commit is contained in:
commit
2d70ae5d52
@ -108,7 +108,7 @@ Make use of `<thead>`, `<tfoot>`, `<tbody>`, and `<th>` tags (and `scope` attrib
|
||||
|
||||
### Formatting
|
||||
|
||||
* Use hex color codes `#000` unless using `rgba()`.
|
||||
* Use hex color codes `#000` unless using `rgba()` in raw CSS (SCSS' `rgba()` function is overloaded to accept hex colors as a param, e.g., `rgba(#000, .5)`).
|
||||
* Use `//` for comment blocks (instead of `/* */`).
|
||||
* Avoid specifying units for zero values, e.g., `margin: 0;` instead of `margin: 0px;`.
|
||||
* Strive to limit use of shorthand declarations to instances where you must explicitly set all the available values.
|
||||
|
Loading…
Reference in New Issue
Block a user