Add custom checkbox
This commit is contained in:
parent
b07d1eb871
commit
3d2dbd5527
File diff suppressed because one or more lines are too long
@ -53,6 +53,36 @@ button:active {
|
||||
background: #6bb758;
|
||||
}
|
||||
|
||||
input[type=checkbox] {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
input[type=checkbox] + span {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: 2px solid #777;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
input[type=checkbox]:checked + span {
|
||||
background: #6bb758;
|
||||
border-color: #6bb758;
|
||||
}
|
||||
|
||||
input[type=checkbox]:checked + span:before {
|
||||
content: "";
|
||||
width: 5px;
|
||||
height: 10px;
|
||||
border-right: 3px solid #FFF;
|
||||
border-bottom: 3px solid #FFF;
|
||||
position: absolute;
|
||||
color: #FFF;
|
||||
transform: rotate(45deg);
|
||||
left: 4px;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.5;
|
||||
}
|
||||
@ -344,10 +374,6 @@ input::-webkit-inner-spin-button {
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.connect-form-address input[type='checkbox'] {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.connect-form i {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
|
@ -21,6 +21,7 @@ const Checkbox = ({ name, label, onChange, ...props }) => (
|
||||
}}
|
||||
{...props}
|
||||
/>
|
||||
<span />
|
||||
</label>
|
||||
)}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user