Reputation: 69
is it poosible to remove all the Js and CSS linked to the input tag? im in need of removing all of them so that i can style them as i wish.
Upvotes: 0
Views: 1620
Reputation: 752
I checked it out. Unfortunately Materialize.css provides Input & Select components in Forms.css & Forms.js
// In Rails, we include like this
----------------------------------------------
CSS :
@import "materialize/components/form";
JS :
//= require materialize/forms
But they have other elements as well. Your best way is to override the existing properties in your own global CSS file.
-------------------------------------------------------- Edit ----------------------------------------------
Yes you can include only the components which you need from materialize.css. I could show how to include materialize partially but I don't know your tech-stack
-- OR --
You can define your own CSS and override the properties that differ from materialize CSS properties
input[type=text]{
color : red;
line-height : 1.5;
}
Upvotes: 1