scratch-www/src/components/forms/checkbox.scss

44 lines
1.1 KiB
SCSS
Raw Normal View History

2016-06-23 07:27:43 -04:00
@import "../../colors";
@import "../../frameless";
.row {
.checkbox {
label {
font-weight: 300;
}
input {
&[type=checkbox] {
display: block;
float: left;
margin-right: 1rem;
2016-08-05 15:51:48 -04:00
border: 1px solid $active-dark-gray;
border-radius: 3px;
width: 1.25rem;
height: 1.25rem;
appearance: none;
2016-06-23 07:27:43 -04:00
&:checked,
&:focus {
transition: all .5s ease;
outline: none;
box-shadow: 0 0 0 .25rem $active-dark-gray;
}
2016-06-23 07:27:43 -04:00
&:checked {
background-color: $ui-blue;
text-align: center;
text-indent: .125rem;
line-height: 1.25rem;
font-size: .75rem;
2016-06-23 07:27:43 -04:00
&:after {
color: $type-white;
content: "\2714";
}
}
2016-06-23 07:27:43 -04:00
}
}
}
}