mirror of
https://github.com/kognise/water.css.git
synced 2026-01-22 04:57:04 +01:00
142 lines
2.1 KiB
CSS
142 lines
2.1 KiB
CSS
button,
|
|
select,
|
|
input[type='submit'],
|
|
input[type='button'],
|
|
input[type='checkbox'],
|
|
input[type='range'],
|
|
input[type='radio'] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
input:not([type='checkbox']):not([type='radio']),
|
|
select {
|
|
display: block;
|
|
}
|
|
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
color: var(--form-text);
|
|
background-color: var(--background);
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
margin-right: 6px;
|
|
margin-bottom: 6px;
|
|
padding: 10px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
outline: none;
|
|
}
|
|
|
|
input[type='checkbox'],
|
|
input[type='radio'] {
|
|
height: 1em;
|
|
width: 1em;
|
|
}
|
|
|
|
input[type='radio'] {
|
|
border-radius: 100%;
|
|
}
|
|
|
|
input {
|
|
vertical-align: top;
|
|
}
|
|
|
|
label {
|
|
vertical-align: middle;
|
|
margin-bottom: 4px;
|
|
display: inline-block;
|
|
}
|
|
|
|
input:not([type='checkbox']):not([type='radio']),
|
|
input[type='range'],
|
|
select,
|
|
button,
|
|
textarea {
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
textarea {
|
|
display: block;
|
|
margin-right: 0;
|
|
box-sizing: border-box;
|
|
resize: vertical;
|
|
}
|
|
|
|
textarea:not([cols]) {
|
|
width: 100%;
|
|
}
|
|
|
|
textarea:not([rows]) {
|
|
min-height: 140px;
|
|
}
|
|
|
|
select {
|
|
background: var(--background) var(--select-arrow) calc(100% - 12px) 50% / 12px no-repeat;
|
|
padding-right: 35px;
|
|
}
|
|
|
|
select::-ms-expand {
|
|
display: none;
|
|
}
|
|
|
|
select[multiple] {
|
|
padding-right: 10px;
|
|
background-image: none;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
button,
|
|
input[type='submit'],
|
|
input[type='button'] {
|
|
padding-right: 30px;
|
|
padding-left: 30px;
|
|
}
|
|
|
|
button:hover,
|
|
input[type='submit']:hover,
|
|
input[type='button']:hover {
|
|
background: var(--button-hover);
|
|
}
|
|
|
|
input:focus,
|
|
select:focus,
|
|
button:focus,
|
|
textarea: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,
|
|
select:disabled,
|
|
button:disabled,
|
|
textarea:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
::placeholder {
|
|
color: var(--form-placeholder);
|
|
}
|
|
|
|
fieldset {
|
|
border: 1px var(--focus) solid;
|
|
border-radius: 6px;
|
|
margin: 0;
|
|
margin-bottom: 12px;
|
|
padding: 10px;
|
|
}
|
|
|
|
legend {
|
|
font-size: 0.9em;
|
|
font-weight: 600;
|
|
}
|