/// Background color of buttons.
/// @type Color
$button-background: $primary-color !default;
+$button-background-hover: color.adjust($button-background, $lightness: -10%, $space: hsl) !default;
+$button-secondary-background-hover: color.adjust($secondary-color, $lightness: +10%, $space: hsl) !default;
+$button-success-background-hover: color.adjust($success-color, $lightness: -10%, $space: hsl) !default;
+$button-alert-background-hover: color.adjust($alert-color, $lightness: -10%, $space: hsl) !default;
+$button-warning-background-hover: color.adjust($warning-color, $lightness: -10%, $space: hsl) !default;
/// Border around buttons.
/// @type Border
table.button:active {
table {
td {
- background: color.adjust($button-background, $lightness: -10%, $space: hsl);
+ background: $button-background-hover;
color: $button-color;
}
}
table.button:active {
table {
a {
- border: 0 solid color.adjust($button-background, $lightness: -10%, $space: hsl);
+ border: 0 solid $button-background-hover;
}
}
}
table.button.secondary:hover {
table {
td {
- background: color.adjust($secondary-color, $lightness: +10%, $space: hsl);
+ background: $button-secondary-background-hover;
color: $button-color;
}
a {
- border: 0 solid color.adjust($secondary-color, $lightness: +10%, $space: hsl);
+ border: 0 solid $button-secondary-background-hover;
}
}
}
table.button.success:hover {
table {
td {
- background: color.adjust($success-color, $lightness: -10%, $space: hsl);
+ background: $button-success-background-hover;
}
a {
- border: 0 solid color.adjust($success-color, $lightness: -10%, $space: hsl);
+ border: 0 solid $button-success-background-hover;
}
}
}
table.button.alert:hover {
table {
td {
- background: color.adjust($alert-color, $lightness: -10%, $space: hsl);
+ background: $button-alert-background-hover;
}
a {
- border: 0 solid color.adjust($alert-color, $lightness: -10%, $space: hsl);
+ border: 0 solid $button-alert-background-hover;
}
}
}
table.button.warning:hover {
table {
td {
- background: color.adjust($warning-color, $lightness: -10%, $space: hsl);
+ background: $button-warning-background-hover;
}
a {
- border: 0 solid color.adjust($warning-color, $lightness: -10%, $space: hsl);
+ border: 0 solid $button-warning-background-hover;
}
}
}
/// Border around a callout with the `.primary` class.
/// @type Border
$callout-border-primary: 1px solid color.adjust($primary-color, $lightness: -20%, $space: hsl) !default;
+$callout-background-primary: color.scale($primary-color, $lightness: $callout-background-fade) !default;
/// Border around a callout with the `.secondary` class.
/// @type Border
$callout-border-secondary: 1px solid color.adjust($secondary-color, $lightness: -20%, $space: hsl) !default;
+$callout-background-secondary: color.scale($secondary-color, $lightness: $callout-background-fade) !default;
/// Border around a callout with the `.success` class.
/// @type Border
$callout-border-success: 1px solid color.adjust($success-color, $lightness: -20%, $space: hsl) !default;
+$callout-background-success: color.scale($success-color, $lightness: $callout-background-fade) !default;
/// Border around a callout with the `.warning` class.
/// @type Border
$callout-border-warning: 1px solid color.adjust($warning-color, $lightness: -20%, $space: hsl) !default;
+$callout-background-warning: color.scale($warning-color, $lightness: $callout-background-fade) !default;
/// Border around a callout with the `.alert` class.
/// @type Border
$callout-border-alert: 1px solid color.adjust($alert-color, $lightness: -20%, $space: hsl) !default;
+$callout-background-alert: color.scale($alert-color, $lightness: $callout-background-fade) !default;
table.callout {
margin-bottom: $callout-margin-bottom;
background: $callout-background;
&.primary {
- background: color.scale($primary-color, $lightness: $callout-background-fade);
+ background: $callout-background-primary;
border: $callout-border-primary;
color: $black;
}
&.secondary {
- background: color.scale($secondary-color, $lightness: $callout-background-fade);
+ background: $callout-background-secondary;
border: $callout-border-secondary;
color: $black;
}
&.success {
- background: color.scale($success-color, $lightness: $callout-background-fade);
+ background: $callout-background-success;
border: $callout-border-success;
color: $black;
}
&.warning {
- background: color.scale($warning-color, $lightness: $callout-background-fade);
+ background: $callout-background-warning;
border: $callout-border-warning;
color: $black;
}
&.alert {
- background: color.scale($alert-color, $lightness: $callout-background-fade);
+ background: $callout-background-alert;
border: $callout-border-alert;
color: $black;
}