Created
December 29, 2017 14:10
-
-
Save maglietti/c864560c1ce33123807ec1842522167b to your computer and use it in GitHub Desktop.
Create a style-sheet table layout from the Icomoon style.css file
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
perl -lne ‘print $1 if /\.(.*):before/’ < style.css | awk ‘{ print “<div class=\“col-xs-6 col-sm-4 col-md-2\“><div class=\“twx-icon-wrapper\“><span class=\“twx-icon “$1"\” aria-hidden=\“true\“></span><div class=\“twx-icon-label\“>”$1"</div></div></div>” }’ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment