0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

Move hardcoded opacity value in .btn:disabled to variable $btn-disabled-opacity (#24680)

This commit is contained in:
Patrick Yeo 2017-11-06 13:34:42 -08:00 committed by Mark Otto
parent 1524837af2
commit e2c15da967
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@
// Disabled comes first so active can properly restyle
&.disabled,
&:disabled {
opacity: .65;
opacity: $btn-disabled-opacity;
@include box-shadow(none);
}

View File

@ -357,6 +357,7 @@ $btn-font-weight: $font-weight-normal !default;
$btn-box-shadow: inset 0 1px 0 rgba($white, .15), 0 1px 1px rgba($black, .075) !default;
$btn-focus-width: $input-btn-focus-width !default;
$btn-focus-box-shadow: $input-btn-focus-box-shadow !default;
$btn-disabled-opacity: .65 !default;
$btn-active-box-shadow: inset 0 3px 5px rgba($black, .125) !default;
$btn-link-disabled-color: $gray-600 !default;