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
diff options
context:
space:
mode:
authorMark Otto <markd.otto@gmail.com>2021-05-13 17:01:46 +0300
committerGitHub <noreply@github.com>2021-05-13 17:01:46 +0300
commit1e4b924aa9fcf1e4bbba586243ad72ae9972dcea (patch)
treec5e942a1493dac93d3d969e765bcdd30d632a79e /scss/forms
parent7ed48943cfa5044163c11ceecd914e965c066f30 (diff)
Revert "use `:read-only` css selector instead `[readonly]` for consistency (#33642)" (#33961)
This reverts commit 17252bb3b0c751ad2be1c1c1226ebcf43e7967f3. Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'scss/forms')
-rw-r--r--scss/forms/_form-control.scss10
1 files changed, 5 insertions, 5 deletions
diff --git a/scss/forms/_form-control.scss b/scss/forms/_form-control.scss
index 5e43aea991..9728b91f34 100644
--- a/scss/forms/_form-control.scss
+++ b/scss/forms/_form-control.scss
@@ -25,7 +25,7 @@
&[type="file"] {
overflow: hidden; // prevent pseudo element button overlap
- &:not(:disabled):not(:read-only) {
+ &:not(:disabled):not([readonly]) {
cursor: pointer;
}
}
@@ -65,7 +65,7 @@
// disabled if the fieldset is disabled. Due to implementation difficulty, we
// don't honor that edge case; we style them as disabled anyway.
&:disabled,
- &:read-only {
+ &[readonly] {
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.
@@ -88,7 +88,7 @@
@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;
}
@@ -107,7 +107,7 @@
@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;
}
}
@@ -203,7 +203,7 @@ textarea {
height: auto; // Override fixed browser height
padding: $input-padding-y;
- &:not(:disabled):not(:read-only) {
+ &:not(:disabled):not([readonly]) {
cursor: pointer;
}