Skip to content

Instantly share code, notes, and snippets.

@wuworkshop
Last active August 29, 2015 14:06
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 wuworkshop/ab7ad0282bbbc32b30d6 to your computer and use it in GitHub Desktop.
Save wuworkshop/ab7ad0282bbbc32b30d6 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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";
// }
.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