/// @type Color
$badge-color-alt: $black !default;
+/// Coloring classes. The names in this list output classes in your CSS, like `.secondary`, `.success`, and so on. Each value must also be in the `$foundation-palette` map.
+/// @type List
+$badge-classes: ( secondary success warning alert ) !default;
+
/// Default padding inside badges.
/// @type Number
$badge-padding: 0.3em !default;
background: $badge-background;
color: $badge-color;
- @each $name, $color in $foundation-palette {
- @if $name != primary {
- &.#{$name} {
- background: $color;
- color: color-pick-contrast($color, ($badge-color, $badge-color-alt));
- }
+ @each $class in $badge-classes {
+ $color: get-color($class);
+ &.#{$class} {
+ background: $color;
+ color: color-pick-contrast($color, ($badge-color, $badge-color-alt));
}
}
}
large: 1.25rem,
) !default;
+/// Coloring classes. The names in this list output classes in your CSS, like `.secondary`, `.success`, and so on. Each value must also be in the `$foundation-palette` map.
+/// @type List
+$button-classes: ( secondary success warning alert ) !default;
+
/// opacity for a disabled button.
/// @type List
$button-opacity-disabled: 0.25 !default;
&.expanded { @include button-expand; }
// Colors
- @each $name, $color in $foundation-palette {
+ @each $class in $button-classes {
+ $color: get-color($class);
@if $button-fill != hollow {
- &.#{$name} {
+ &.#{$class} {
@include button-style($color, auto, auto);
}
}
@else {
- &.#{$name} {
+ &.#{$class} {
@include button-hollow-style($color);
}
- &.#{$name}.dropdown::after {
+ &.#{$class}.dropdown::after {
border-top-color: $color;
}
}
@include button-hollow;
@include button-hollow-style;
- @each $name, $color in $foundation-palette {
- &.#{$name} {
+ @each $class in $button-classes {
+ $color: get-color($class);
+ &.#{$class} {
@include button-hollow-style($color);
}
}
&[disabled] {
@include button-disabled;
- @each $name, $color in $foundation-palette {
- &.#{$name} {
+ @each $class in $button-classes {
+ $color: get-color($class);
+ &.#{$class} {
@include button-disabled($color);
}
}
/// @type Color
$label-color-alt: $black !default;
+/// Coloring classes. The names in this list output classes in your CSS, like `.secondary`, `.success`, and so on. Each value must also be in the `$foundation-palette` map.
+/// @type List
+$label-classes: ( secondary success warning alert ) !default;
+
/// Default font size for labels.
/// @type Number
$label-font-size: 0.8rem !default;
background: $label-background;
color: $label-color;
- @each $name, $color in $foundation-palette {
- @if $name != primary {
- &.#{$name} {
- background: $color;
- color: color-pick-contrast($color, ($label-color, $label-color-alt));
- }
+ @each $class in $label-classes {
+ $color: get-color($class);
+ &.#{$class} {
+ background: $color;
+ color: color-pick-contrast($color, ($label-color, $label-color-alt));
}
}
}