Created
May 28, 2019 13:47
-
-
Save chichikinaleksei/8db8438ad5fab62b39d411340e24baf9 to your computer and use it in GitHub Desktop.
Radio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.radio__wrapper | |
.radio | |
input(type="radio" name="choose" value="Да").radio__input | |
i.radio__real | |
p.radio__text Да | |
.radio | |
input(type="radio" name="choose" value="Нет").radio__input | |
i.radio__real | |
p.radio__text Нет |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.radio | |
display: flex | |
flex-direction: row | |
width: 53px | |
height: 30px | |
position: relative | |
&:not(:last-child) | |
margin-right: 50px | |
&__input | |
position: absolute | |
top: -10px | |
left: -3px | |
z-index: 1 | |
opacity: 0 | |
cursor: pointer | |
&__real | |
display: inline-block | |
width: 15px | |
height: 15px | |
border-radius: 50% | |
vertical-align: middle | |
border: 3px solid $main__white | |
box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .3) | |
transition: all .2s ease-in-out | |
cursor: pointer | |
z-index: 0 | |
input:checked + i | |
background-color: $main__white | |
&__text | |
margin-top: 1px | |
margin-left: 8px |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment