8000 Bring back @import bootstrap/variables · Issue #18 · jasontorres/bootstrap-on-rails · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
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.
Bring back @import bootstrap/variables #18
Open
@rstacruz

Description

@rstacruz

I see that the only difference from the official Bootstrap distribution is that variables.less is excluded:

#16 (comment)

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0