Skip to content

Instantly share code, notes, and snippets.

@davious
Last active August 29, 2015 14:12
Show Gist options
  • Save davious/428ae84ee2d756117031 to your computer and use it in GitHub Desktop.
Save davious/428ae84ee2d756117031 to your computer and use it in GitHub Desktop.
Font-Awesome Glyphicon Initial Map Effort
g_words = [line[len(".glyphicon-"):line.index(" ")] for line in g_less.split("\n")]
fa_words = [line[len("@fa-var-"):line.index(":")] for line in fa_less.split("\n")]
for word in g_words:
print ".glyphicon-%s%s{ &:before { content: @fa-var-%s; } }" \
% (word," " * (len(".glyphicon-object-align-horizontal") - len(word)), word if word in fa_words else "??")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment