Skip to content

Instantly share code, notes, and snippets.

@soelen
Created September 12, 2014 06:57
Show Gist options
  • Save soelen/e4466a08a0709c35fc80 to your computer and use it in GitHub Desktop.
Save soelen/e4466a08a0709c35fc80 to your computer and use it in GitHub Desktop.
//[...]
webfont:
{
icons:
{
src: 'font/baked/*.svg',
dest: 'app/webroot/fonts',
destCss: 'less',
options:
{
stylesheet : 'less',
font : 'marblefallen',
hashes : false,
syntax : 'bem',
htmlDemo : false,
relativeFontPath : '@{fonts}',
templateOptions :
{
baseClass : 'ma',
classPrefix : 'ma-',
mixinPrefix : 'ma-mixin-'
}
}
}
}
});
grunt.loadNpmTasks('grunt-webfont');
grunt.registerTask('font', ['webfont']);
};
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="512"
height="512"
id="svg4319"
version="1.1"
inkscape:version="0.48.4 r9939">
<defs
id="defs4321" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="375"
inkscape:cy="520"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1031"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="1" />
<metadata
id="metadata4324">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-540.36218)">
<path
style="display:inline"
d="m 256,540.36216 c -141.3849,0 -256,114.6151 -256,256 0,141.3849 114.6151,256.00004 256,256.00004 141.3849,0 256,-114.61514 256,-256.00004 0,-141.3849 -114.6151,-256 -256,-256 z m 13.21875,120.90625 c 18.17204,0 32.90625,14.73421 32.90625,32.90625 0,18.17204 -14.73421,32.90625 -32.90625,32.90625 -18.17204,0 -32.875,-14.73421 -32.875,-32.90625 0,-18.17204 14.70296,-32.90625 32.875,-32.90625 z m -108.90625,2.125 c 3.67673,-0.0563 7.33322,1.43521 9.9375,4.03125 l 62.34375,62.28125 c 0.36912,0.35199 0.74117,0.72512 1.09375,1.09375 l 0.375,0.375 c 0.89636,0.8156 1.69063,1.76044 2.34375,2.78125 0.0192,0.0257 0.0435,0.068 0.0625,0.0937 2.0485,2.77848 3.686,5.88236 4.78125,9.15625 0.38976,1.16506 0.65053,2.36129 0.90625,3.5625 l 78.6875,-0.0625 0.0625,0 101.5,-0.40625 c 3.71928,-0.18988 7.4526,1.1889 10.15625,3.75 2.70366,2.56108 4.3019,6.2759 4.3125,10 0.0117,3.72407 -1.56247,7.42197 -4.25,10 -2.68753,2.57802 -6.4359,4.01029 -10.15625,3.84375 L 321,774.26841 c -0.0145,3e-5 -0.048,3e-5 -0.0625,0 l -85.28125,0.125 c -1.74192,2.18438 -3.70261,4.16658 -5.9375,5.84375 l -35.40625,27.375 c -4.09583,-0.72669 -8.27007,-1.67169 -12.53125,-2.78125 -4.37845,-1.14007 -8.97423,-2.49363 -13.78125,-3.8125 -4.77288,-1.30954 -9.69055,-2.55716 -14.71875,-3.625 -5.06298,-1.07529 -10.18018,-1.92477 -15.4375,-2.40625 -5.27801,-0.48338 -10.55404,-0.56992 -15.84375,-0.28125 -5.24295,0.28609 -10.50417,0.94416 -15.6875,1.90625 -2.88933,0.5363 -5.72863,1.14608 -8.499996,1.8125 l 91.343746,-70.59375 c 0.45846,-0.36556 0.96001,-0.72261 1.4375,-1.0625 L 159.5625,695.79966 99.687504,745.14341 c -2.76565,2.46315 -6.52632,3.72327 -10.218754,3.4375 -3.692444,-0.28575 -7.240017,-2.14068 -9.59375,-5 -2.353748,-2.85929 -3.491656,-6.6652 -3.0625,-10.34375 0.42917,-3.67852 2.395035,-7.16551 5.34375,-9.40625 l 69.5625,-57.28125 c 2.39282,-1.97687 5.49037,-3.10645 8.59375,-3.15625 z m 127.875,156.9375 c 3.99423,0.0595 7.947,0.34869 11.84375,0.8125 5.18722,0.61729 10.30097,1.55732 15.34375,2.71875 5.0072,1.1532 9.82468,2.45104 14.5,3.75 4.69978,1.30579 9.20075,2.63515 13.5625,3.71875 4.39131,1.09096 8.66009,1.97927 12.75,2.59375 4.05524,0.60927 8.12903,0.92685 12.15625,0.96875 3.9518,0.0414 7.93949,-0.1914 11.96875,-0.71875 l 0.125,0 c 4.08954,-0.54079 8.24011,-1.40747 12.5625,-2.4375 4.35125,-1.03695 8.87556,-2.24387 13.5,-3.53125 4.62488,-1.28758 9.40337,-2.64366 14.375,-3.84375 a 13.166321,13.166321 0 0 1 6.15625,25.59375 c -4.32648,1.04438 -8.8268,2.29274 -13.5,3.59375 -4.67373,1.30111 -9.45935,2.60235 -14.40625,3.78125 -4.97573,1.18571 -10.07268,2.21745 -15.28125,2.90625 -5.22673,0.69117 -10.47512,1.0556 -15.78125,1 -5.27093,-0.0551 -10.5696,-0.49354 -15.8125,-1.28125 -5.20819,-0.78249 -10.21816,-1.87474 -15.125,-3.09375 -4.93632,-1.22636 -9.71415,-2.59743 -14.3125,-3.875 -4.62279,-1.28439 -9.08405,-2.51175 -13.375,-3.5 -4.25535,-0.98006 -8.42033,-1.72955 -12.53125,-2.21875 -4.10243,-0.48832 -8.11824,-0.69335 -12.0625,-0.59375 -3.98729,0.10063 -8.06858,0.48694 -12.1875,1.15625 -4.11755,0.66913 -8.39592,1.62481 -12.8125,2.75 -4.37914,1.11566 -8.94322,2.46948 -13.6875,3.78125 -4.7326,1.30855 -9.58446,2.57718 -14.59375,3.6875 -5.02116,1.11299 -10.18042,2.03941 -15.4375,2.59375 -5.23894,0.55242 -10.49087,0.74392 -15.8125,0.53125 -5.35534,-0.214 -10.61085,-0.85967 -15.71875,-1.75 -5.08882,-0.88699 -10.08438,-2.03255 -15,-3.3125 -4.91965,-1.28101 -9.6026,-2.67403 -14.09375,-3.90625 -4.52523,-1.24157 -8.91749,-2.34314 -13.1875,-3.25 -4.23515,-0.89943 -8.36537,-1.5674 -12.40625,-1.9375 -4.02016,-0.36804 -8.02284,-0.46874 -12.03125,-0.25 -4.05516,0.2213 -8.19765,0.73624 -12.3125,1.5 -4.1304,0.76667 -8.456956,1.83445 -12.968746,3.03125 a 13.163503,13.163503 0 1 1 -6.750004,-25.4375 c 4.786334,-1.26965 9.738524,-2.50956 14.90625,-3.46875 5.18331,-0.96207 10.44455,-1.58889 15.6875,-1.875 2.64487,-0.14474 5.29412,-0.20585 7.9375,-0.15625 2.6434,0.0494 5.26728,0.19582 7.90625,0.4375 5.25723,0.48152 10.43698,1.331 15.5,2.40625 5.0281,1.06789 9.91461,2.31548 14.6875,3.625 4.80701,1.31889 9.37156,2.6724 13.75,3.8125 4.38251,1.14114 8.66571,2.11003 12.875,2.84375 4.19021,0.73038 8.30723,1.21744 12.25,1.375 3.97649,0.15892 8.00331,0.0218 12.0625,-0.40625 4.04105,-0.42612 8.16048,-1.14574 12.4375,-2.09375 4.28885,-0.95065 8.74694,-2.14391 13.3125,-3.40625 4.55386,-1.25911 9.26855,-2.62178 14.1875,-3.875 4.88155,-1.24368 9.88189,-2.34562 15.0625,-3.1875 5.17917,-0.8416 10.43916,-1.39728 15.75,-1.53125 1.3385,-0.0325 2.69982,-0.051 4.03125,-0.0312 z m 0,54.6875 c 3.99424,0.0595 7.94702,0.37997 11.84375,0.84375 5.18718,0.61732 10.30093,1.52609 15.34375,2.6875 5.00724,1.1532 9.82474,2.4823 14.5,3.78125 4.69978,1.30577 9.20074,2.57264 13.5625,3.65625 4.39134,1.09094 8.6601,2.01051 12.75,2.625 4.05523,0.60925 8.12903,0.9582 12.15625,1 3.99199,0.0417 8.02238,-0.24283 12.09375,-0.78125 4.08954,-0.54075 8.24013,-1.34492 12.5625,-2.375 4.35123,-1.03693 8.87556,-2.24385 13.5,-3.53125 4.62488,-1.28755 9.40341,-2.64364 14.375,-3.84375 a 13.162059,13.162059 0 1 1 6.15625,25.5625 c -4.3265,1.0444 -8.8268,2.324 -13.5,3.625 -4.67373,1.30111 -9.45935,2.60237 -14.40625,3.78125 -4.97575,1.18575 -10.07266,2.21749 -15.28125,2.90625 -5.22673,0.69117 -10.47512,1.02435 -15.78125,0.96875 -5.27091,-0.0551 -10.5696,-0.49354 -15.8125,-1.28125 -5.20822,-0.78247 -10.21815,-1.84346 -15.125,-3.0625 -4.93629,-1.22636 -9.71414,-2.62864 -14.3125,-3.90625 -4.62286,-1.28438 -9.08411,-2.48051 -13.375,-3.46875 -4.25533,-0.98007 -8.42031,-1.72952 -12.53125,-2.21875 -4.10245,-0.48828 -8.11824,-0.7246 -12.0625,-0.625 -3.98728,0.10064 -8.06855,0.51817 -12.1875,1.1875 -4.11748,0.66908 -8.39593,1.62482 -12.8125,2.75 -4.37911,1.11567 -8.94317,2.40696 -13.6875,3.71875 -4.7326,1.30853 -9.58452,2.63967 -14.59375,3.75 -5.02118,1.113 -10.18046,2.00816 -15.4375,2.5625 -5.23895,0.55186 -10.49093,0.7439 -15.8125,0.53125 -5.35532,-0.214 -10.61083,-0.82838 -15.71875,-1.71875 -5.08884,-0.88698 -10.0844,-2.03255 -15,-3.3125 -4.91965,-1.28102 -9.60261,-2.67401 -14.09375,-3.90625 -4.52528,-1.24157 -8.91753,-2.3744 -13.1875,-3.28125 -4.2352,-0.89944 -8.3655,-1.56744 -12.40625,-1.9375 -4.02014,-0.36818 -8.02281,-0.43751 -12.03125,-0.21875 -4.0552,0.2213 -8.19771,0.73627 -12.3125,1.5 -4.13043,0.76668 -8.456956,1.83445 -12.968746,3.03125 A 13.174025,13.174025 0 1 1 85.84375,880.54966 c 4.786374,-1.26964 9.738554,-2.47829 14.90625,-3.4375 5.18336,-0.96207 10.44457,-1.62014 15.6875,-1.90625 2.64487,-0.14474 5.29412,-0.20585 7.9375,-0.15625 2.6434,0.0494 5.26725,0.19581 7.90625,0.4375 5.25736,0.48146 10.43705,1.33101 15.5,2.40625 5.02816,1.06787 9.91466,2.34677 14.6875,3.65625 4.80701,1.31889 9.37156,2.67237 13.75,3.8125 4.38253,1.14113 8.66574,2.11007 12.875,2.84375 4.19021,0.73037 8.30718,1.21745 12.25,1.375 3.97656,0.15891 8.00331,-0.009 12.0625,-0.4375 4.04105,-0.42611 8.16054,-1.11449 12.4375,-2.0625 4.2889,-0.95067 8.74698,-2.14389 13.3125,-3.40625 4.55382,-1.2591 9.26851,-2.62181 14.1875,-3.875 4.88155,-1.2437 9.88182,-2.40814 15.0625,-3.25 5.17916,-0.84163 10.43917,-1.36603 15.75,-1.5 1.3385,-0.0325 2.69982,-0.051 4.03125,-0.0312 z"
id="path3096-4"
inkscape:connector-curvature="0" />
</g>
</svg>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link href="main.css" rel="stylesheet">
</head>
<body>
<button class="btn btn-primary btn-lg"><i class="ma ma-swim-circle"></i> Test</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment