virtual-labs-archive / physical-chemistry-iiith

Other
1 stars 64 forks source link

Missing vendor-prefixed CSS gradients for Webkit (Safari 5+, Chrome), Opera 11.1+. #50

Open BSravanthi opened 5 years ago

BSravanthi commented 5 years ago

CSS gradients in a cross-browser way requires using many different vendor-prefixed versions. There are currently five different vendor-prefixed versions of CSS gradient:

-ms-linear-gradient and -ms-radial-gradient for Internet Explorer 10+
-moz-linear-gradient and -moz-radial-gradient for Firefox 3.6+
-o-linear-gradient and -o-radial-gradient for Opera 11.10+
-webkit-linear-gradient and -webkit-radial-gradient for Safari 5+ and Chrome
-webkit-gradient for Safari 4+ and Chrome (aka "Old WebKit")

Meaning a simple two-color gradient that works across all browsers must look like this:

 background: -moz-linear-gradient(...); /* FF3.6+ */
 background: -webkit-gradient(...); /* Chrome,Safari4+ */
 background: -webkit-linear-gradient(...); /* Chrome10+,Safari5.1+ */
 background: -o-linear-gradient(...); /* Opera 11.10+ */
 background: -ms-linear-gradient(...); /* IE10+ */

Please refer to the following link to fix similar issues. https://app.codacy.com/app/BSravanthi/physical-chemistry-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiQ29tcGF0aWJpbGl0eSJdfSx7ImlkIjoiTGV2ZWwiLCJ2YWx1ZXMiOltudWxsXX0seyJpZCI6IlBhdHRlcm4iLCJ2YWx1ZXMiOls3MF19LHsiaWQiOiJBdXRob3IiLCJ2YWx1ZXMiOltudWxsXX0seyJ2YWx1ZXMiOltdfV0=

AksharaMayreddy commented 5 years ago

commit id's : fa3dcdbbedc22c5106714f38d4ffac7dbf5c2f6d (src/themes/blue-icon/css/style.css) 4193b538d57d5662a1da09c8a1cdce767b4ad41c (src/themes/maroon-grid/css/style.css)

somashekhar31 commented 5 years ago

commit id:https://github.com/virtual-labs/physical-chemistry-iiith/pull/54/commits/5966b97fb7e596d149bf779750f185dcbb72fbb2 (both blue-icon and maroon-grid)

snehitharangu commented 5 years ago

Valid fix @somashekhar31

VINEETHREDDYSHERI commented 5 years ago

Valid fix @somashekhar31

kasyapbhuvanagiri commented 5 years ago

commit id: 33a86d1 (src/themes/blue-icon/css/style.css) commit id: b4fc671 (src/themes/maroon-grid/css/style.css)

samhithavootkoor commented 5 years ago

validated-1 @BhuvanagiriKasyap

TSaiRamReddy commented 5 years ago

valid fix @AksharaMayreddy