1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Revert "use :read-only css selector instead [readonly] for consistency (#33642)" (#33961)

This reverts commit 17252bb3b0.

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
Mark Otto 2021-05-13 07:01:46 -07:00 committed by GitHub
parent 7ed48943cf
commit 1e4b924aa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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