Skip to content

Commit 1b82ab9

Browse files
author
Johan Van den Rym
committed
Updated grunticons styles template
1 parent a2333df commit 1b82ab9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

_includes/grunticon.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script>
2+
/* grunticon Stylesheet Loader | https://github.com/filamentgroup/grunticon | (c) 2012 Scott Jehl, Filament Group, Inc. | MIT license. */
3+
window.grunticon=function(e){if(e&&3===e.length){var t=window,n=!(!t.document.createElementNS||!t.document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect||!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")||window.opera&&-1===navigator.userAgent.indexOf("Chrome")),o=function(o){var a=t.document.createElement("link"),r=t.document.getElementsByTagName("script")[0];a.rel="stylesheet",a.href=e[o&&n?0:o?1:2],a.media="only x",r.parentNode.insertBefore(a,r),setTimeout(function(){a.media="all"})},a=new t.Image;a.onerror=function(){o(!1)},a.onload=function(){o(1===a.width&&1===a.height)},a.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}};
4+
grunticon(["/assets/css/data.svg.css", "/assets/css/data.png.css", "/assets/css/url.png.css"]);
5+
</script>
6+
<noscript><link href="/assets/css/url.png.css" rel="stylesheet"></noscript>
7+

grunticon.hbs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{#each customselectors}}{{this}}{{#if @last}}{{else}},{{/if}}
2+
{{/each}}{
3+
background-image: url('{{datauri}}');
4+
background-repeat: no-repeat;
5+
}

0 commit comments

Comments
 (0)