Created
July 9, 2014 02:11
-
-
Save seafarer/bdc80686d1a4d6bfccc1 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<button class="image-stack"></button> | |
<button class="home"></button> | |
<button class="select-image"></button> | |
<button class="launch-camera"></button> | |
<button class="my-location"></button> |
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
// ---- | |
// libsass (v2.0.0) | |
// ---- | |
$icon_font_alpha: 'ico-font' !default; | |
$default_ico_margin: true !default; | |
$stack: '\e600'; | |
$home: '\e601'; | |
$image: '\e602'; | |
$images: '\e603'; | |
$camera: '\e604'; | |
$location: '\e605'; | |
%ico-font-base { | |
font-family: $icon_font_alpha; | |
speak: none; | |
font-style: normal; | |
font-weight: normal; | |
line-height: 1; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
@mixin icon($pua, $margin: .25em) { | |
&:before { | |
@extend %ico-font-base; | |
content: $pua; | |
@if $margin == true { | |
margin-right: 0.25em; | |
} | |
} | |
} | |
button { | |
font-size: 2em; | |
border-radius: 3px; | |
background-color: white; | |
border: 1px solid #333; | |
padding: 10px; | |
} | |
.image-stack { | |
@include icon('\e600', false); | |
} | |
.home { | |
@include icon($home); | |
} | |
.select-image { | |
@include icon($image); | |
} | |
.launch-camera { | |
@include icon($camera); | |
} | |
.my-location { | |
@include icon($location); | |
} | |
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
.image-stack:before, .home:before, .select-image:before, .launch-camera:before, .my-location:before { | |
font-family: 'ico-font'; | |
speak: none; | |
font-style: normal; | |
font-weight: normal; | |
line-height: 1; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; } | |
button { | |
font-size: 2em; | |
border-radius: 3px; | |
background-color: white; | |
border: 1px solid #333; | |
padding: 10px; } | |
.image-stack:before { | |
content: '\e600'; } | |
.home:before { | |
content: '\e601'; } | |
.select-image:before { | |
content: '\e602'; } | |
.launch-camera:before { | |
content: '\e604'; } | |
.my-location:before { | |
content: '\e605'; } |
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
<button class="image-stack"></button> | |
<button class="home"></button> | |
<button class="select-image"></button> | |
<button class="launch-camera"></button> | |
<button class="my-location"></button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment