Funky custom checkmark

This commit is contained in:
2017-02-19 13:49:54 +08:00
parent 2e61b4c8ad
commit e6740d9b4f
2 changed files with 32 additions and 1 deletions
@@ -31,6 +31,35 @@ section#add-contributor {
}
}
input[type=checkbox] {
display: none;
}
label.checkbox {
line-height: 3.2rem;
font-size: 1.2rem;
&::before {
display: inline-block;
height: 3.2rem;
width: 3.2rem;
font-size: 2rem;
background-color: rgba(22, 21, 40, 0.3);
border-bottom: 1px solid rgba(255,255,255,0.2);
color: #fff;
text-align: center;
vertical-align: middle;
content: '';
margin-right: 0.8rem;
}
}
input[type=checkbox]:checked + label.checkbox {
&::before {
content: '';
background-color: rgba(22, 21, 40, 0.6);
}
}
}
}