Last active
August 29, 2015 14:06
-
-
Save wuworkshop/ab7ad0282bbbc32b30d6 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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
// Icons! | |
// ====== | |
// icons map | |
$icons: ( | |
rss: '\e599', | |
clippers: '\e600', | |
aid: '\e601', | |
twitter: '\e602', | |
feed: '\e603', | |
github: '\e604' | |
); | |
@each $i, $val in $icons{ | |
.icons-#{$i}:before { | |
content: $val; | |
} | |
} | |
@function icons($key) { | |
@if not map-has-key($icons, $key) { | |
//@warn messages show up in console | |
@warn "Key #{$key} not found in $icons map."; | |
@return "#{$key} not found in $icons map"; | |
} | |
@return map-get($icons, $key); | |
} | |
.alert { | |
//content: map-get($icons, twitter); | |
content: icons(fb); | |
} | |
// .icon-rss:before { | |
// content: "\e599"; | |
// } | |
// .icon-clippers:before { | |
// content: "\e600"; | |
// } | |
// .icon-aid:before { | |
// content: "\e601"; | |
// } | |
// .icon-twitter:before { | |
// content: "\e602"; | |
// } | |
// .icon-feed:before { | |
// content: "\e603"; | |
// } | |
// .icon-github:before { | |
// content: "\e604"; | |
// } |
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
.icons-rss:before { | |
content: "\e599"; | |
} | |
.icons-clippers:before { | |
content: "\e600"; | |
} | |
.icons-aid:before { | |
content: "\e601"; | |
} | |
.icons-twitter:before { | |
content: "\e602"; | |
} | |
.icons-feed:before { | |
content: "\e603"; | |
} | |
.icons-github:before { | |
content: "\e604"; | |
} | |
.alert { | |
content: "fb not found in $icons map"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment