mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 06:44:35 +02:00
Fix disabled .btn
cursor (#30004)
This commit is contained in:
@@ -12,7 +12,6 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: $btn-white-space;
|
white-space: $btn-white-space;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: $btn-border-width solid transparent;
|
border: $btn-border-width solid transparent;
|
||||||
@@ -37,8 +36,11 @@
|
|||||||
@include box-shadow(none);
|
@include box-shadow(none);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(:disabled):not(.disabled):active,
|
&:not(:disabled):not(.disabled) {
|
||||||
&:not(:disabled):not(.disabled).active {
|
cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&.active {
|
||||||
@include box-shadow($btn-active-box-shadow);
|
@include box-shadow($btn-active-box-shadow);
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
@@ -46,6 +48,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Future-proof disabling of clicks on `<a>` elements
|
// Future-proof disabling of clicks on `<a>` elements
|
||||||
a.btn.disabled,
|
a.btn.disabled,
|
||||||
|
Reference in New Issue
Block a user