1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-01 09:22:55 +02:00

remove - vars, update docs to generate from data yml files, update mixins, and generate card, button, bg, and color classes from the sass map

This commit is contained in:
Mark Otto
2017-06-18 02:57:16 -07:00
parent 74f1d002b4
commit 597e9f8618
11 changed files with 72 additions and 165 deletions

View File

@@ -3,21 +3,22 @@
// Easily pump out default styles, as well as :hover, :focus, :active,
// and disabled options for all buttons
@mixin button-variant($color, $background, $border) {
$active-background: darken($background, 10%);
$active-border: darken($border, 12%);
@mixin button-variant($background, $border) {
$active-background: darken($background, 7.5%);
$active-border: darken($border, 10%);
color: $color;
@include color-yiq($background);
background-color: $background;
border-color: $border;
@include box-shadow($btn-box-shadow);
// Hover and focus styles are shared
@include hover {
color: $color;
&:hover {
@include color-yiq($background);
background-color: $active-background;
border-color: $active-border;
}
&:focus,
&.focus {
// Avoid using mixin so we can pass custom focus shadow properly
@@ -38,7 +39,6 @@
&:active,
&.active,
.show > &.dropdown-toggle {
color: $color;
background-color: $active-background;
background-image: none; // Remove the gradient for the pressed/active state
border-color: $active-border;