app/assets/stylesheets/layout/_errors.scss
Avoid using id selectors Open
Open
#error_explanation {
- Exclude checks
Selector field_with_errors
should be written in lowercase with hyphens Open
Open
.field_with_errors {
- Exclude checks
Shorthand form for property padding
should be written more concisely as 0 7px
instead of 0 7px 0 7px
Open
Open
padding: 0 7px 0 7px;
- Exclude checks
Properties should be ordered background-color, padding Open
Open
padding: 0 7px 0 7px;
- Exclude checks
Selector error_explanation
should be written in lowercase with hyphens Open
Open
#error_explanation {
- Exclude checks
Color literals like #f8d7da
should only be used in variable declarations; they should be referred to via variable everywhere else. Open
Open
background-color: #f8d7da;
- Exclude checks