virtual-labs-archive / artificial-neural-networks-iiith

This repository contains the source for Artificial Neural Networks Lab IIITH
http://cse22-iiith.vlabs.ac.in
Other
5 stars 238 forks source link

Use of !important #41

Open BSravanthi opened 6 years ago

BSravanthi commented 6 years ago

The !important annotation is used to artificially increase the specificity of a given property value in a rule. This is usually an indication that the specificity of the entire CSS has gotten a bit out of control and needs to be refactored. The more frequently !important is found in CSS, the more likely it is that developers are having trouble styling parts of a page effectively.

This rule is aimed at keeping your specificity levels in check. As such, it warns whenever !important is used.

The following patterns are considered warnings:

 .mybox {
   color: red !important;
 }

Please refer to the following link to fix similar issues. https://app.codacy.com/app/BSravanthi/artificial-neural-networks-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiRXJyb3IgUHJvbmUiXX0seyJpZCI6IkxldmVsIiwidmFsdWVzIjpbbnVsbF19LHsiaWQiOiJQYXR0ZXJuIiwidmFsdWVzIjpbNzNdfSx7InZhbHVlcyI6W119XQ==

ShivaniKomandury commented 5 years ago

Commit id : 7ab3f3b9aac5bd49af497438ecee206b82b363b5 (style.css) Commit id : 4b42f6d74ed319d6b86d2ba2beeff827aff56102 (style1.css) Commit id : fa1e018dbb760a8153e0c2f5d822c6cfd7e31398 (green-icon Update style.css) Commit id : 71fd3fa34e1e7f86f05b62d54e27c62f414c76d8 (green-icon Update style1.css) Commit id : 9ed3798b0a80f7e37127f76a8f31707dffdedd8d (maroon-grid Update default.css) Commit id : 713290c2647bb2583601206117327da00812f0f6 (Blue-icon Update default.css)

Please validate.

dmeghana98 commented 5 years ago

Valid fix @ShivaniKomanduri

SakethMattupalli commented 5 years ago

Valid fix @ShivaniKomandury

thecoderxman commented 5 years ago

Validated @ShivaniKomandury