Skip to content

Enforce shorthand properties  #66

Description

@madhavipuliraju

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;
 }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions