mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-31 17:11:48 +02:00
Remove all uses of selector &
If we want to support namespaced import: ```scss .twbs { @import 'bootstrap'; } ``` We cannot use `selector &`, see sass/sass#1817. `fieldset[disabled] &` is not needed as we no longer support IE8.
This commit is contained in:
@@ -39,8 +39,7 @@
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&:disabled,
|
||||
fieldset[disabled] & {
|
||||
&:disabled {
|
||||
cursor: $cursor-disabled;
|
||||
opacity: .65;
|
||||
@include box-shadow(none);
|
||||
@@ -111,8 +110,7 @@ fieldset[disabled] a.btn {
|
||||
&,
|
||||
&:active,
|
||||
&.active,
|
||||
&:disabled,
|
||||
fieldset[disabled] & {
|
||||
&:disabled {
|
||||
background-color: transparent;
|
||||
@include box-shadow(none);
|
||||
}
|
||||
@@ -129,8 +127,7 @@ fieldset[disabled] a.btn {
|
||||
text-decoration: $link-hover-decoration;
|
||||
background-color: transparent;
|
||||
}
|
||||
&:disabled,
|
||||
fieldset[disabled] & {
|
||||
&:disabled {
|
||||
@include hover-focus {
|
||||
color: $btn-link-disabled-color;
|
||||
text-decoration: none;
|
||||
|
Reference in New Issue
Block a user