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
Apart from following the WordPress CSS coding standards, the CSS should also use some best practices. The first one that come into my mind (but there are a lot) are, for example:
1
Don't use element selectors if not strictly necessary. Things like .settings-fields p.timezone-info
could be simply .settings-fields .timezone-info
2
Don't use element selectors and also lower specificity as much as possible. Selectors like .settings-fields .settings-field-control p
should be just .settings-fields .description
More example welcome.
The text was updated successfully, but these errors were encountered:
Apart from following the WordPress CSS coding standards, the CSS should also use some best practices. The first one that come into my mind (but there are a lot) are, for example:
1
Don't use element selectors if not strictly necessary. Things like
.settings-fields p.timezone-info
could be simply
.settings-fields .timezone-info
2
Don't use element selectors and also lower specificity as much as possible. Selectors like
.settings-fields .settings-field-control p
should be just
.settings-fields .description
More example welcome.
The text was updated successfully, but these errors were encountered: