Created
February 20, 2015 13:24
-
-
Save robertlyall/c1ff9cd9a73c87a35864 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<div class="sexy-checkbox"> | |
<label class="sexy-checkbox__container" for="swag"></label> | |
<input class="sexy-checkbox__checkbox" type="checkbox" id="swag"> | |
<label class="sexy-checkbox__fill" for="swag"></label> | |
</div> |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
.sexy-checkbox { | |
position: relative; | |
} | |
.sexy-checkbox__container { | |
border: 1px solid #d7d7d7; | |
border-radius :50%; | |
display: block; | |
height: 30px; | |
width: 30px; | |
} | |
.sexy-checkbox__checkbox { | |
display: none; | |
} | |
.sexy-checkbox__fill { | |
background: #f62f62; | |
border-radius: 50%; | |
display: none; | |
height: 26px; | |
position: absolute; | |
top: 3px; | |
left: 3px; | |
width: 26px; | |
} | |
.sexy-checkbox__checkbox:checked + .sexy-checkbox__fill { | |
display: block; | |
} |
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
.sexy-checkbox { | |
position: relative; | |
} | |
.sexy-checkbox__container { | |
border: 1px solid #d7d7d7; | |
border-radius: 50%; | |
display: block; | |
height: 30px; | |
width: 30px; | |
} | |
.sexy-checkbox__checkbox { | |
display: none; | |
} | |
.sexy-checkbox__fill { | |
background: #f62f62; | |
border-radius: 50%; | |
display: none; | |
height: 26px; | |
position: absolute; | |
top: 3px; | |
left: 3px; | |
width: 26px; | |
} | |
.sexy-checkbox__checkbox:checked + .sexy-checkbox__fill { | |
display: block; | |
} |
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
<div class="sexy-checkbox"> | |
<label class="sexy-checkbox__container" for="swag"></label> | |
<input class="sexy-checkbox__checkbox" type="checkbox" id="swag"> | |
<label class="sexy-checkbox__fill" for="swag"></label> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment