This repository was archived by the owner on Jul 18, 2020. It is now read-only.
This repository was archived by the owner on Jul 18, 2020. It is now read-only.
Open
Description
I see that the only difference from the official Bootstrap distribution is that variables.less is excluded:
This is not necessary. Assuming bootstrap/bootstrap
includes the variables, you can override Less variables in this manner:
@import "bootstrap/bootstrap";
@brand-danger: #f82ca0;
Less variables are not evaluated like programming languages. You can define a variable after its being used, although this seems very counter-intuitive.
p { color: @red; }
@red: #ff0000;
/* output: p { color: #ff0000 } */
Conversely, this allows you to override variables after rules are in place:
@red: #ff0000;
p { color: @red; }
@red: #ee5533;
/* output: p { color: #ee5533 } */
Metadata
Metadata
Assignees
Labels
No labels