Answer the question
In order to leave comments, you need to log in
Is it worth editing variables.less in bootstrap, or is it better to override css properties in project styles?
I'm making a landing.
I included bootstrap as less in my project to be able to use mixins.
Now I'm thinking that maybe it makes sense not to redefine different colors in your project, but to specify them directly in the bootstrap's variables.less file.
I don’t make landingos for myself, and I would like everything to be as transparent and obvious as possible, so that people can then figure out how it works.
What do you do in such cases? Are you redefining styles in files directly in your project, or are you using the ability to reconfigure bootstrap via variables.less?
Answer the question
In order to leave comments, you need to log in
The bootstrap out of the box has a theme.less file - this is an example of how to customize the bootstrap. Customizing only through variables.less will not work.
As a result, we will get two style files
then we merge them into one style.css and minify them through some kind of refresh-sf.com (merges the same selectors into one)
Sample structure
-- web
---- bower
------ bootstrap
---- less // theme
------ variables.less
------ theme.less
---- css
------ theme.css
------ style.css
------ style.min .css
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question