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

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2020-02-03 21:54:29 +0300
committerGitHub <noreply@github.com>2020-02-03 21:54:29 +0300
commitfbf294a605e36a4cf9c66f0c4637f13ded18f727 (patch)
tree3bce2ae6f03e71d936caad6b967bc95bda89b0c8 /scss
parent0d1aee6a2fecc865066c90e85422e192ca69ba34 (diff)
Fix disabled `.btn` cursor (#30004)
Diffstat (limited to 'scss')
-rw-r--r--scss/_buttons.scss15
1 files changed, 9 insertions, 6 deletions
diff --git a/scss/_buttons.scss b/scss/_buttons.scss
index e87d3393a1..bf7814865e 100644
--- a/scss/_buttons.scss
+++ b/scss/_buttons.scss
@@ -12,7 +12,6 @@
text-align: center;
white-space: $btn-white-space;
vertical-align: middle;
- cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
user-select: none;
background-color: transparent;
border: $btn-border-width solid transparent;
@@ -37,12 +36,16 @@
@include box-shadow(none);
}
- &:not(:disabled):not(.disabled):active,
- &:not(:disabled):not(.disabled).active {
- @include box-shadow($btn-active-box-shadow);
+ &:not(:disabled):not(.disabled) {
+ cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
- &:focus {
- @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
+ &:active,
+ &.active {
+ @include box-shadow($btn-active-box-shadow);
+
+ &:focus {
+ @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
+ }
}
}
}