Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/stylesheets/bootstrap/mixins/_buttons.scss')
-rw-r--r--assets/stylesheets/bootstrap/mixins/_buttons.scss19
1 files changed, 11 insertions, 8 deletions
diff --git a/assets/stylesheets/bootstrap/mixins/_buttons.scss b/assets/stylesheets/bootstrap/mixins/_buttons.scss
index 09ef0cb..eeade6a 100644
--- a/assets/stylesheets/bootstrap/mixins/_buttons.scss
+++ b/assets/stylesheets/bootstrap/mixins/_buttons.scss
@@ -7,12 +7,15 @@
$background,
$border,
$color: color-contrast($background),
- $hover-background: darken($background, 7.5%),
- $hover-border: darken($border, 10%),
+ $hover-background: if($color == $color-contrast-light, darken($background, 7.5%), lighten($background, 7.5%)),
+ $hover-border: if($color == $color-contrast-light, darken($border, 10%), lighten($border, 5%)),
$hover-color: color-contrast($hover-background),
- $active-background: darken($background, 10%),
- $active-border: darken($border, 12.5%),
- $active-color: color-contrast($active-background)
+ $active-background: if($color == $color-contrast-light, darken($background, 10%), lighten($background, 10%)),
+ $active-border: if($color == $color-contrast-light, darken($border, 12.5%), lighten($border, 5%)),
+ $active-color: color-contrast($active-background),
+ $disabled-background: $background,
+ $disabled-border: $border,
+ $disabled-color: color-contrast($disabled-background)
) {
color: $color;
@include gradient-bg($background);
@@ -61,11 +64,11 @@
&:disabled,
&.disabled {
- color: $color;
- background-color: $background;
+ color: $disabled-color;
+ background-color: $disabled-background;
// Remove CSS gradients if they're enabled
background-image: if($enable-gradients, none, null);
- border-color: $border;
+ border-color: $disabled-border;
}
}