&[type="file"] {
overflow: hidden; // prevent pseudo element button overlap
- &:not(:disabled):not([readonly]) {
+ &:not(:disabled):not(:read-only) {
cursor: pointer;
}
}
// disabled if the fieldset is disabled. Due to implementation difficulty, we
// don't honor that edge case; we style them as disabled anyway.
&:disabled,
- &[readonly] {
+ &:read-only {
background-color: $input-disabled-bg;
border-color: $input-disabled-border-color;
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
@include transition($btn-transition);
}
- &:hover:not(:disabled):not([readonly])::file-selector-button {
+ &:hover:not(:disabled):not(:read-only)::file-selector-button {
background-color: $form-file-button-hover-bg;
}
@include transition($btn-transition);
}
- &:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
+ &:hover:not(:disabled):not(:read-only)::-webkit-file-upload-button {
background-color: $form-file-button-hover-bg;
}
}
height: auto; // Override fixed browser height
padding: $input-padding-y;
- &:not(:disabled):not([readonly]) {
+ &:not(:disabled):not(:read-only) {
cursor: pointer;
}