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

Apply gradient stripe @color parameter #9968

Merged
merged 2 commits into from
Sep 6, 2013
Merged

Apply gradient stripe @color parameter #9968

merged 2 commits into from
Sep 6, 2013

Conversation

lukemcdonald
Copy link
Contributor

The @color parameter for the #gradient > .striped() mixin is not being used. Currently, the striped color is hard coded to be a transparent white and not the #555 color value set as the default @color parameter.

The @color argument is currently not being used for the striped gradient.
…t white.

* If the @color parameter is not removed, the stripes are the same color as the element background color. In this case, the stripes do not appear.
@@ -496,7 +496,7 @@
.progress-bar-variant(@color) {
background-color: @color;
.progress-striped & {
#gradient > .striped(@color);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove the @color parameter so the striped color does not match the background-color. It might be a good idea to provide a second parameter to the progress-bar-varient() mixin to control the striped color. Example below.

.progress-bar-varient(@background-color; @striped-color) {
    background-color: @background-color;
    .progress-striped & {
        #gradient > .striped(@striped-color);
    }
}

mdo added a commit that referenced this pull request Sep 6, 2013
@mdo mdo merged commit e5038a3 into twbs:master Sep 6, 2013
@mdo mdo mentioned this pull request Sep 6, 2013
stempler pushed a commit to stempler/bootstrap that referenced this pull request Apr 11, 2014
stempler pushed a commit to stempler/bootstrap that referenced this pull request Nov 4, 2014
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.

2 participants