|
|
@@ -1,64 +1,5 @@
|
|
|
$theme-colors: map-merge($theme-colors, $colors);
|
|
|
|
|
|
-@mixin button-svg-icon-variant($background, $hover-background: darken($background, 7.5%), $active-background: darken($background, 10%)) {
|
|
|
- svg {
|
|
|
- fill: color-yiq($background);
|
|
|
- }
|
|
|
-
|
|
|
- @include hover() {
|
|
|
- svg {
|
|
|
- fill: color-yiq($hover-background);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- &:focus,
|
|
|
- &.focus {
|
|
|
- svg {
|
|
|
- fill: color-yiq($hover-background);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // Disabled comes first so active can properly restyle
|
|
|
- &.disabled,
|
|
|
- &:disabled {
|
|
|
- svg {
|
|
|
- fill: color-yiq($background);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- &:not(:disabled):not(.disabled):active,
|
|
|
- &:not(:disabled):not(.disabled).active,
|
|
|
- .show > &.dropdown-toggle {
|
|
|
- svg {
|
|
|
- fill: color-yiq($active-background);
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-@mixin button-outline-svg-icon-variant($value, $color-hover: $value) {
|
|
|
- svg {
|
|
|
- fill: $value;
|
|
|
- }
|
|
|
- @include hover() {
|
|
|
- svg {
|
|
|
- fill: $value;
|
|
|
- }
|
|
|
- }
|
|
|
- &.disabled,
|
|
|
- &:disabled {
|
|
|
- svg {
|
|
|
- fill: $value;
|
|
|
- }
|
|
|
- }
|
|
|
- &:not(:disabled):not(.disabled):active,
|
|
|
- &:not(:disabled):not(.disabled).active,
|
|
|
- .show > &.dropdown-toggle {
|
|
|
- svg {
|
|
|
- fill: $value;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
@each $color, $value in $theme-colors {
|
|
|
@include bg-variant('.bg-#{$color}', $value);
|
|
|
}
|