Skip to content

Instantly share code, notes, and snippets.

@chichikinaleksei
Created May 28, 2019 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chichikinaleksei/8db8438ad5fab62b39d411340e24baf9 to your computer and use it in GitHub Desktop.
Save chichikinaleksei/8db8438ad5fab62b39d411340e24baf9 to your computer and use it in GitHub Desktop.
Radio
.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 Нет
.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