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

The properties padding-top, padding-bottom, padding-left, padding-right can be replaced by padding. #88

Open
BSravanthi opened this issue Nov 22, 2018 · 6 comments

Comments

@BSravanthi
Copy link
Contributor

When using a rule like the one below you should check if it has a shorthand property and if possible use it, it will shrink your file and speed up 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;
 }

** Please refer to the following link to fix similar issues.**
https://app.codacy.com/app/BSravanthi/pattern-recognition-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiUGVyZm9ybWFuY2UiXX0seyJpZCI6IkxldmVsIiwidmFsdWVzIjpbbnVsbF19LHsiaWQiOiJQYXR0ZXJuIiwidmFsdWVzIjpbNTZdfSx7ImlkIjoiQXV0aG9yIiwidmFsdWVzIjpbbnVsbF19LHsidmFsdWVzIjpbXX1d

@AksharaMayreddy
Copy link

commit id's :

82a4baf (green-icon/style.css)
a1d500c (green-icon/style1.css)

@ShivaniKomandury
Copy link

Commit id : ef072f3 (green-icon style.css)
Commit id : 2b3bb35 (green-icon style1.css)

Please validate.

@niveditareddy
Copy link

Valid fix@AksharaMayreddy

@samhithavootkoor
Copy link

commit id : f14c5ad
commit id: d29349a

@VINEETHREDDYSHERI
Copy link

Valid fix @samhithavootkoor

@Khwaja-Bilkhis
Copy link

validated-2 @samhithavootkoor

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

7 participants