Created
June 14, 2018 00:52
-
-
Save muks999/487e4f025eae80e0956f2953e14f1268 to your computer and use it in GitHub Desktop.
Radio custom
This file contains hidden or 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
label.radio | |
span.radio__text name | |
input(type="radio") | |
span.checkbox__custom | |
.radio { | |
display: block; | |
position: relative; | |
width: 100%; | |
padding-left: 30px; | |
input[type="radio"] { | |
display: none; | |
&:checked { | |
&~.radio__custom { | |
&:after { display: block; } | |
} | |
} | |
} | |
&__custom { | |
@include size(15px); | |
background-color: $white; | |
border: 1px solid $alto; | |
border-radius: 50%; | |
left: 0; | |
position: absolute; | |
top: 0; | |
&:after { | |
content: ''; | |
background-color: $black; | |
border-radius: 50%; | |
bottom: 2px; | |
display: none; | |
left: 2px; | |
position: absolute; | |
right: 2px; | |
top: 2px; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment