115 lines
2.2 KiB
SCSS
115 lines
2.2 KiB
SCSS
.inp {
|
|
background: unset;
|
|
border: 1px grey solid;
|
|
padding: 0 .5rem;
|
|
height: 2rem;
|
|
display: inline-block;
|
|
min-width: 10rem;
|
|
|
|
&:focus {
|
|
border-color: $primary;
|
|
}
|
|
}
|
|
|
|
textarea.inp {
|
|
height: unset !important;
|
|
min-height: 6rem !important;
|
|
}
|
|
|
|
.input-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
@extend .margin;
|
|
|
|
input {
|
|
@extend .inp;
|
|
}
|
|
|
|
label {
|
|
display: inline-block;
|
|
margin-bottom: .3rem;
|
|
margin-left: .5rem;
|
|
}
|
|
}
|
|
|
|
.input-checkbox {
|
|
|
|
@extend .margin;
|
|
|
|
display: block;
|
|
position: relative;
|
|
padding-left: 35px;
|
|
margin-bottom: 12px;
|
|
cursor: pointer;
|
|
font-size: 22px;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
|
|
|
|
/* Hide the browser's default checkbox */
|
|
input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
height: 0;
|
|
width: 0;
|
|
}
|
|
|
|
/* Create a custom checkbox */
|
|
span {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 25px;
|
|
width: 25px;
|
|
transition: background-color .2s;
|
|
}
|
|
|
|
/* On mouse-over, add a grey background color */
|
|
:hover input~span {
|
|
background-color: #ccc;
|
|
}
|
|
|
|
/* When the checkbox is checked, add a blue background */
|
|
input:checked~span {
|
|
background-color: $primary;
|
|
}
|
|
|
|
/* Create the checkmark/indicator (hidden when not checked) */
|
|
span:after {
|
|
content: "";
|
|
position: absolute;
|
|
display: none;
|
|
}
|
|
|
|
/* Show the checkmark when checked */
|
|
input:checked~span:after {
|
|
display: block;
|
|
}
|
|
|
|
input[type=checkbox]+span:after {
|
|
/* Style the checkmark/indicator */
|
|
left: 9px;
|
|
top: 5px;
|
|
width: 5px;
|
|
height: 10px;
|
|
border: solid white;
|
|
border-width: 0 3px 3px 0;
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
input[type=radio]+span {
|
|
border-radius: 50%;
|
|
|
|
&:after {
|
|
top: 9px;
|
|
left: 9px;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background-color: white;
|
|
}
|
|
}
|
|
} |