.iwb-checkbox { display: inline-block; position: relative; padding-left: 30px; color: $iwb-color; margin-bottom: 10px; cursor: pointer; font-size: .875rem; -webkit-transition: all 0.3s; transition: all 0.3s; cursor: pointer; > input { position: absolute; z-index: -1; opacity: 0; filter: alpha(opacity=0); } > span { position: relative; } > span:before { content: ''; border-radius: 3px; background: none; position: absolute; top: 0; left: -24px; height: 18px; width: 18px; color: inherit; border: 1px solid; } > span:after { content: ''; position: absolute; display: none; } input:checked ~ span:before { -webkit-transition: all 0.3s; transition: all 0.3s; background: none; } input:checked ~ span:after { display: block; top: 3px; left: -18px; width: 5px; height: 10px; border-color: inherit; border-style: solid; border-width: 0 2px 2px 0 !important; -webkit-transform: rotate(45deg); transform: rotate(45deg); } &.checkbox-solid { input:checked ~ span:before { -webkit-transition: all 0.3s; transition: all 0.3s; background: $iwb-color; } input:checked ~ span:after { border-color: #fff; } } @each $name, $color in $colors { @include iwb-checkbox-variant($name, $color); } }