mirror of
https://github.com/Karaka-Management/cssOMS.git
synced 2026-02-14 00:38:40 +00:00
improve inputs
This commit is contained in:
parent
d5b171aacb
commit
045af4c6b7
55
input.scss
55
input.scss
|
|
@ -168,23 +168,60 @@ textarea, .textarea {
|
||||||
font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
|
font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.checkbox, span.radio {
|
span.radio {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
-webkit-user-select: none;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
-webkit-user-select: none;
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
|
order: 3;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
span.checkbox input[type="checkbox"], span.radio input[type="radio"] {
|
input {
|
||||||
position: relative;
|
order: 1;
|
||||||
vertical-align: middle;
|
opacity: 0;
|
||||||
bottom: 1px;
|
cursor: pointer;
|
||||||
margin-right: 5px;
|
|
||||||
cursor: pointer;
|
&:checked ~ .checkmark {
|
||||||
|
background-color: var(--button-colored-background);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:checked ~ .checkmark:after {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkmark {
|
||||||
|
position: relative;
|
||||||
|
order: 2;
|
||||||
|
height: 15px;
|
||||||
|
width: 15px;
|
||||||
|
margin-right: 10px;
|
||||||
|
background-color: #eee;
|
||||||
|
border-radius: 50%;
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
display: none;
|
||||||
|
top: 5px;
|
||||||
|
left: 5px;
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover input ~ .checkmark {
|
||||||
|
background-color: var(--input-icon-color);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="range"] {
|
input[type="range"] {
|
||||||
|
|
|
||||||
46
styles.css
46
styles.css
|
|
@ -3699,20 +3699,46 @@ textarea, .textarea {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace; }
|
font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace; }
|
||||||
|
|
||||||
span.checkbox, span.radio {
|
span.radio {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
-webkit-user-select: none;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
-webkit-user-select: none;
|
|
||||||
user-select: none; }
|
user-select: none; }
|
||||||
span.checkbox label, span.radio label {
|
span.radio label {
|
||||||
|
order: 3;
|
||||||
|
cursor: pointer; }
|
||||||
|
span.radio input {
|
||||||
|
order: 1;
|
||||||
|
opacity: 0;
|
||||||
|
cursor: pointer; }
|
||||||
|
span.radio input:checked ~ .checkmark {
|
||||||
|
background-color: var(--button-colored-background); }
|
||||||
|
span.radio input:checked ~ .checkmark:after {
|
||||||
|
display: block; }
|
||||||
|
span.radio .checkmark {
|
||||||
|
position: relative;
|
||||||
|
order: 2;
|
||||||
|
height: 15px;
|
||||||
|
width: 15px;
|
||||||
|
margin-right: 10px;
|
||||||
|
background-color: #eee;
|
||||||
|
border-radius: 50%; }
|
||||||
|
span.radio .checkmark:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
display: none;
|
||||||
|
top: 5px;
|
||||||
|
left: 5px;
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #fff; }
|
||||||
|
span.radio:hover input ~ .checkmark {
|
||||||
|
background-color: var(--input-icon-color);
|
||||||
cursor: pointer; }
|
cursor: pointer; }
|
||||||
|
|
||||||
span.checkbox input[type="checkbox"], span.radio input[type="radio"] {
|
|
||||||
position: relative;
|
|
||||||
vertical-align: middle;
|
|
||||||
bottom: 1px;
|
|
||||||
margin-right: 5px;
|
|
||||||
cursor: pointer; }
|
|
||||||
|
|
||||||
input[type="range"] {
|
input[type="range"] {
|
||||||
border: none;
|
border: none;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user