R
R
Rikitikiti2016-08-06 18:55:31
css
Rikitikiti, 2016-08-06 18:55:31

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

3 answer(s)
S
Stanislav Pochepko, 2016-08-06
@DJZT

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.

M
Maxim Timofeev, 2016-08-06
@webinar

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

A
Andrey Verkh, 2016-08-06
@sadisme

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 question

Ask a Question

731 491 924 answers to any question