2018-10-19 15:17:02 +00:00
|
|
|
%toggle label {
|
2018-09-21 09:18:32 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
%toggle input {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-10-19 15:17:02 +00:00
|
|
|
%toggle label span {
|
2018-09-21 09:18:32 +00:00
|
|
|
display: inline-block;
|
2018-10-19 15:17:02 +00:00
|
|
|
padding-left: 34px;
|
2018-09-21 09:18:32 +00:00
|
|
|
}
|
2018-10-19 15:17:02 +00:00
|
|
|
%toggle label span::before,
|
|
|
|
%toggle label span::after {
|
2018-09-21 09:18:32 +00:00
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
content: '';
|
|
|
|
top: 50%;
|
|
|
|
}
|
2018-10-19 15:17:02 +00:00
|
|
|
%toggle label span::before {
|
2018-09-21 09:18:32 +00:00
|
|
|
left: 0px;
|
2018-10-19 15:17:02 +00:00
|
|
|
width: 24px;
|
2018-09-21 09:18:32 +00:00
|
|
|
height: 12px;
|
2018-10-19 15:17:02 +00:00
|
|
|
margin-top: -5px;
|
2018-09-21 09:18:32 +00:00
|
|
|
}
|
2018-10-19 15:17:02 +00:00
|
|
|
%toggle label span::after {
|
|
|
|
margin-top: -3px;
|
2018-09-21 09:18:32 +00:00
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
}
|
2018-10-19 15:17:02 +00:00
|
|
|
%toggle label input:checked + span::after,
|
|
|
|
%toggle-negative label input + span::after {
|
|
|
|
left: 14px;
|
|
|
|
}
|
|
|
|
%toggle label span::after,
|
|
|
|
%toggle-negative label input:checked + span::after {
|
|
|
|
left: 2px;
|
2018-09-21 09:18:32 +00:00
|
|
|
}
|