Answer the question
In order to leave comments, you need to log in
Framework work? Editing?
How to edit styles in the framework, directly in the framework file by replacing , or create your own file and put it in priority? It doesn’t work and I can’t understand why, I just started communicating with frameworks
Answer the question
In order to leave comments, you need to log in
Create your own styles file and save it after the main ones. It will override styles. Or do !important. You don't need to edit anything in the source code. This is bad tone.
If you use a package manager, you will understand why.
Way 1 is to override the framework's styles by loading your stylesheet after it.
Way 2 - customize the framework. Usually css frameworks have less and/or sass versions. And they have a file with variables by redefining which you can get the desired result
Path 3 - depends on the framework, bootstrap for example has an online form for customization getbootstrap.com/customize
If there is a need to interrupt styles, then you are probably doing something wrong. Frameworks are used for this, so as not to make unnecessary movements.
In the same Bootstrap, all the design is rendered in a separate CSS ... Plus, there is also a collector where you can tweak the settings for yourself.
In general, no one canceled the cascade ... Place your styles below and that's it. Just don't forget about priority... different selectors have different weights. Therefore, it is possible that something is not redefined for you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question