mirror of
https://github.com/kognise/water.css.git
synced 2025-08-11 23:54:12 +02:00
Improve cross-platform form controls
This commit is contained in:
@@ -37,8 +37,19 @@ input[type='color'] {
|
|||||||
|
|
||||||
input[type='checkbox'],
|
input[type='checkbox'],
|
||||||
input[type='radio'] {
|
input[type='radio'] {
|
||||||
height: 1em;
|
transform: scale(1.4);
|
||||||
width: 1em;
|
}
|
||||||
|
|
||||||
|
input[type='submit']:active,
|
||||||
|
input[type='button']:active,
|
||||||
|
input[type='range']:active,
|
||||||
|
button:active {
|
||||||
|
transform: translateY(2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type='checkbox']:active,
|
||||||
|
input[type='radio']:active {
|
||||||
|
transform: translateY(2px) scale(1.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type='radio'] {
|
input[type='radio'] {
|
||||||
@@ -46,7 +57,7 @@ input[type='radio'] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
vertical-align: top;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
@@ -114,15 +125,6 @@ textarea:focus {
|
|||||||
box-shadow: 0 0 0 2px var(--focus);
|
box-shadow: 0 0 0 2px var(--focus);
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type='checkbox']:active,
|
|
||||||
input[type='radio']:active,
|
|
||||||
input[type='submit']:active,
|
|
||||||
input[type='button']:active,
|
|
||||||
input[type='range']:active,
|
|
||||||
button:active {
|
|
||||||
transform: translateY(2px);
|
|
||||||
}
|
|
||||||
|
|
||||||
input:disabled,
|
input:disabled,
|
||||||
select:disabled,
|
select:disabled,
|
||||||
button:disabled,
|
button:disabled,
|
||||||
|
Reference in New Issue
Block a user