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/_buttons.scss')
-rw-r--r--assets/stylesheets/bootstrap/_buttons.scss34
1 files changed, 14 insertions, 20 deletions
diff --git a/assets/stylesheets/bootstrap/_buttons.scss b/assets/stylesheets/bootstrap/_buttons.scss
index 119cf1c..e36ff0f 100644
--- a/assets/stylesheets/bootstrap/_buttons.scss
+++ b/assets/stylesheets/bootstrap/_buttons.scss
@@ -11,41 +11,34 @@
text-align: center;
white-space: nowrap;
vertical-align: middle;
- cursor: pointer;
user-select: none;
border: $input-btn-border-width solid transparent;
@include button-size($btn-padding-y, $btn-padding-x, $font-size-base, $btn-border-radius);
- @include transition(all .2s ease-in-out);
-
- &,
- &:active,
- &.active {
- &:focus,
- &.focus {
- @include tab-focus();
- }
- }
+ @include transition($btn-transition);
+ // Share hover and focus styles
@include hover-focus {
text-decoration: none;
}
+ &:focus,
&.focus {
- text-decoration: none;
- }
-
- &:active,
- &.active {
- background-image: none;
outline: 0;
- @include box-shadow($btn-active-box-shadow);
+ box-shadow: $btn-focus-box-shadow;
}
+ // Disabled comes first so active can properly restyle
&.disabled,
&:disabled {
cursor: $cursor-disabled;
opacity: .65;
@include box-shadow(none);
}
+
+ &:active,
+ &.active {
+ background-image: none;
+ @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
+ }
}
// Future-proof disabling of clicks on `<a>` elements
@@ -105,7 +98,7 @@ fieldset[disabled] a.btn {
// Make a button look and behave like a link
.btn-link {
- font-weight: normal;
+ font-weight: $font-weight-normal;
color: $link-color;
border-radius: 0;
@@ -130,8 +123,9 @@ fieldset[disabled] a.btn {
background-color: transparent;
}
&:disabled {
+ color: $btn-link-disabled-color;
+
@include hover-focus {
- color: $btn-link-disabled-color;
text-decoration: none;
}
}