Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added @gray-base variable to make @gray-{shade} reference, also allows @... #13923

Merged
merged 2 commits into from
Jul 6, 2014

Conversation

ilikeprograms
Copy link
Contributor

Also allows @gray-base to be modified with less#modifyVars (see Using Less in the Browser) and the vars to cascade.

The reason I did this is that as I mentioned it allows less to cascade the changes to the @gray variables if the @gray-base variable is changed.
It also makes sense as all the variables have the same value, so why not extract it into a single variable.

I have done something similar in my own variables_custom.less file for my BootstrapThemeEditor project.

…s @gray-base to be modified with less#modifyVars and the vars to cascade
@gray: lighten(#000, 33.5%); // #555
@gray-light: lighten(#000, 46.7%); // #777
@gray-lighter: lighten(#000, 93.5%); // #eee
@gray-base: #000;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Horizontal alignment is off by 1 char

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the easiest way to submit amendments to a PR?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make another commit on your gray-base-variable branch and push the updated branch to GitHub. Although for very minor stuff like this, we often just fix it ourselves when merging the pull request.

@cvrebert cvrebert added the css label Jun 25, 2014
@mdo mdo added this to the v3.2.1 milestone Jul 6, 2014
mdo added a commit that referenced this pull request Jul 6, 2014
Added @gray-base variable to make @Gray-{shade} reference, also allows @...
@mdo mdo merged commit b5205bf into twbs:master Jul 6, 2014
@cvrebert cvrebert mentioned this pull request Jul 6, 2014
stempler pushed a commit to stempler/bootstrap that referenced this pull request Nov 4, 2014
…iable

Added @gray-base variable to make @Gray-{shade} reference, also allows @...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants