2017-08-01 10:02:19 +02:00
|
|
|
/* ----------------------------- */
|
|
|
|
/* ==Rdio */
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* use .radio class on input type=radio */
|
|
|
|
/* recommanded HTML : <input type="radio" class="radio" name="radio" id="r1"><label for="r1">Click here</label> */
|
|
|
|
|
|
|
|
.radio {
|
|
|
|
@extend .visually-hidden;
|
|
|
|
|
|
|
|
& ~ label {
|
2017-08-28 10:56:28 +02:00
|
|
|
display: flex;
|
2017-08-01 10:02:19 +02:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: baseline;
|
|
|
|
transform: translateY(.2rem);
|
|
|
|
margin-right: .5rem;
|
|
|
|
width: 1.1em; height: 1.1em;
|
|
|
|
border: 0;
|
|
|
|
background: #fff;
|
|
|
|
border-radius: 50%;
|
2017-09-08 15:45:48 +02:00
|
|
|
box-shadow: 0 0 0 2px $color-checkbox inset;
|
2017-08-01 10:02:19 +02:00
|
|
|
transition: .25s background;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:checked ~ label:before {
|
|
|
|
background-image: radial-gradient(circle at center, #fff 30%, transparent 38%);
|
2017-09-08 15:45:48 +02:00
|
|
|
background-color: $color-checkbox;
|
2017-08-01 10:02:19 +02:00
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|