Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce shorthand properties #66

Open
madhavipuliraju opened this issue May 21, 2018 · 0 comments
Open

Enforce shorthand properties #66

madhavipuliraju opened this issue May 21, 2018 · 0 comments

Comments

@madhavipuliraju
Copy link
Contributor

When using a rule like the one bellow you should check if it has a shorthand property and if possible use it, it will shrink your file and speedup your page load time and it will even make your CSS more readable and simple.

Ex:

 .foo {
   margin-top: 10px;
   margin-right: 20px;
   margin-bottom: 10px;
   margin-left: 20px;
 }

Should be:

 .foo {
   margin: 10px 20px;
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant