mirror of
https://github.com/pure-css/pure.git
synced 2024-11-07 21:34:24 +00:00
Forms: Make [readonly] inputs easily readable
This commit is contained in:
parent
3782be8c29
commit
4c5caee1aa
@ -78,15 +78,18 @@
|
||||
.pure-form input[type="tel"][disabled],
|
||||
.pure-form input[type="color"][disabled],
|
||||
.pure-form select[disabled],
|
||||
.pure-form textarea[disabled],
|
||||
.pure-form input[readonly],
|
||||
.pure-form select[readonly],
|
||||
.pure-form textarea[readonly] {
|
||||
.pure-form textarea[disabled] {
|
||||
cursor: not-allowed;
|
||||
background-color: #eaeded;
|
||||
color: #cad2d3;
|
||||
border-color: transparent;
|
||||
}
|
||||
.pure-form input[readonly],
|
||||
.pure-form select[readonly],
|
||||
.pure-form textarea[readonly] {
|
||||
cursor: not-allowed;
|
||||
color: #777;
|
||||
}
|
||||
.pure-form input:focus:invalid,
|
||||
.pure-form textarea:focus:invalid,
|
||||
.pure-form select:focus:invalid {
|
||||
|
@ -250,7 +250,13 @@
|
||||
<h2>Disabled Inputs</h2>
|
||||
<p>Add the disabled attribute to any form control.</p>
|
||||
<form class="pure-form">
|
||||
<input class="pure-input-xlarge" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
|
||||
<input class="pure-input-xlarge" id="disabledInput" type="text" placeholder="Disabled input here..." value="Foo bar baz" disabled>
|
||||
</form>
|
||||
|
||||
<h2>Readonly Inputs</h2>
|
||||
<p>Add the readonly attribute to any form control.</p>
|
||||
<form class="pure-form">
|
||||
<input class="pure-input-xlarge" id="readonlyInput" type="text" placeholder="Readonly input here..." value="Foo bar baz" readonly>
|
||||
</form>
|
||||
|
||||
<h2>Rounded Form</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user