Skip to content

Commit

Permalink
use bootstrap mixins to try to do better
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed authored and jkeck committed Mar 29, 2018
1 parent 5da8eaf commit a9f515e
Showing 1 changed file with 17 additions and 30 deletions.
47 changes: 17 additions & 30 deletions app/assets/stylesheets/blacklight/_icons.scss
Expand Up @@ -5,38 +5,25 @@
width: $font-size-base;
}

.btn-primary {
.blacklight-icons g {
@include stroke-yiq(theme-color("primary"));
@each $color, $value in $theme-colors {
.btn-#{$color} {
.blacklight-icons g {
@include stroke-yiq(theme-color($color));
}
}
}

.btn-light {
.blacklight-icons g {
@include stroke-yiq(theme-color("light"));
}
}

.btn-info {
.blacklight-icons g {
@include stroke-yiq(theme-color("info"));
}
}

.btn-success {
.blacklight-icons g {
@include stroke-yiq(theme-color("success"));
}
}

.btn-warning {
.blacklight-icons g {
@include stroke-yiq(theme-color("warning"));
}
}
.btn-outline-#{$color} {
.blacklight-icons g {
stroke: $value;
}

.btn-danger {
.blacklight-icons g {
@include stroke-yiq(theme-color("danger"));
&.hover,
&:hover,
&:active,
&.active {
.blacklight-icons g {
@include stroke-yiq(theme-color($color));
}
}
}
}

0 comments on commit a9f515e

Please sign in to comment.