W
W
weredy2016-05-19 16:49:33
css
weredy, 2016-05-19 16:49:33

How to correctly override styles in scss libraries?

There are sass component libraries: bourbon, bootstrap, materialize, etc. Some of the things in them are customized through variables, while others are defined in the style itself. How would it be correct to override such things? Here I have a .btn that has a shadow in it, I want to remove it - what is the best way to do this? Doing this directly in the library seems to be not accepted, overriding it in your styles produces css code.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sim3x, 2016-05-19
@sim3x

Only to produce code is a fee for using any frameworks
But no one bothers you, for such a small thing as a button, copy the code from the framework and correct it for yourself by making .mybutton

F
fetis26, 2016-05-19
@fetis26

In my own style, of course. The source code of the library should never be touched.

A
Alex Glebov, 2016-05-19
@SkiperX

It happens that the library code needs to be replaced with a new version. And all your edits will fly ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question