File: /home/frenchy/www/french-american.org/current/node_modules/gulp-svg-sprites/tmpl/preview-defs.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="cache-control" content="max-age=0"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT"/>
<meta http-equiv="pragma" content="no-cache"/>
<title>Icon kit preview | gulp-svg-sprites</title>
<style type="text/css">@CHARSET "UTF-8";
* {
box-sizing: border-box;
}
body {
padding: 0;
margin: 0;
color: #666;
background: #fafafa;
font-family: Arial, Helvetica, sans-serif;
font-size: 1em;
line-height: 1.4
}
header {
display: block;
padding: 3em 3em 2em 3em;
background-color: #fff
}
header p {
margin: 0 0 0 0;
}
nav {
font-size: .7em;
display: block;
width: 100%;
margin: 0 0 2em 0
}
nav a {
display: inline-block;
text-decoration: none;
margin-left: 2em;
color: #0f7595;
white-space: nowrap
}
nav a:hover {
text-decoration: underline
}
nav a.current {
font-weight: bold;
text-decoration: underline;
color: #666
}
section {
border-top: 1px solid #eee;
padding: 2em 3em 0 3em
}
ul {
margin: 0;
padding: 0
}
.icon-boxes li {
display: inline-block;
background-color: #fff;
position: relative;
margin: 0 2em 2em 0;
vertical-align: top;
border: 1px solid #ccc;
padding: 1em 1em 1em 1em;
cursor: default
}
.icon-box {
margin: 0;
width: 144px;
height: 144px;
position: relative;
background: #ccc url(data:image/gif;base64,R0lGODlhDAAMAIAAAMzMzP///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjEgNjQuMTQwOTQ5LCAyMDEwLzEyLzA3LTEwOjU3OjAxICAgICAgICAiPiA8cmRmOl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0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAAAAAAAsAAAAAAwADAAAAhaEH6mHmmzcgzJAUG/NVGrfOZ8YLlABADs=) top left repeat;
border: 1px solid #ccc;
display: table-cell;
vertical-align: middle;
text-align: center
}
.icon-box.inverted {
background: black;
}
.icon {
display: inline;
display: inline-block
}
.snippet-popover {
position: absolute;
display: none;
opacity: 0;
bottom: 0;
left: 0;
background: white;
border: 1px solid #ccc;
padding: 16px;
z-index: 1;
transition: all .3s;
}
.snippet-popover.active {
display: block;
opacity: 1;
}
pre {
margin: 0;
margin-bottom: 20px;
}
h2 {
margin: 0;
padding: 5px 0;
font-size: 1em;
font-weight: normal;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
h4 {
margin: 0;
}
footer {
display: block;
margin: 0;
padding: 0 3em 3em 3em
}
footer p {
margin: 0;
font-size: .7em
}
footer a {
color: #0f7595;
margin-left: 0
}
</style>
</head>
<body>
{svgInline|s}
<header>
<h1 id="logo">Gulp SVG Sprites <small>({svg.length} icons in <defs> mode)</small></h1>
<h4>Files Generated:</h4>
<ol>
<li><a href="{config.svg.defs}">{config.svg.defs}</a></li>
</ol>
<h4>Usage:</h4>
<ol>
<li>
Include the <strong>contents</strong> of the <a href="{config.svg.defs}">SVG file</a> just after the opening <code><body></code> tag.
</li>
<li>
Paste one of the snippets anywhere into your website.
</li>
</ol>
</header>
<section>
<ul class="icon-boxes">
{#svg}
<li title="{name}">
<div class="icon-box" id="icon-box-{name}">
<svg viewBox="0 0 {width} {height}" class="{#common}{common} {/common}{#selector}{raw}{/selector}" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<use xlink:href="#{name}"></use>
</svg>
</div>
<h2>{name}</h2>
<button onclick="showPopover('snippet-{name}')">Show Snippet</button>
<br/>
<button onclick="invertBackground('icon-box-{name}')">Invert Background</button>
<div class="snippet-popover" id="snippet-{name}">
<pre><code><svg viewBox="{viewBox}" class="{#common}{common} {/common}{#selector}{raw}{/selector}" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<use xlink:href="#svg-arr-black-reversed"></use>
</svg></code></pre>
<button onclick="hidePopover()">Close</button>
</div>
</li>
{/svg}
</ul>
</section>
<footer>
<p>Generated by <a href="https://github.com/shakyshane/gulp-svg-sprites">Gulp Svg Sprites</a> - Preview page courtesy of <a href="http://iconizr.com" target="_blank">iconizr</a>.</p>
</footer>
<script type="text/javascript">
var openSnippet;
function showPopover(id) {
openSnippet = document.getElementById(id);
openSnippet.classList.add("active");
}
function hidePopover() {
openSnippet.classList.remove("active");
}
function invertBackground(id) {
var elem = document.getElementById(id);
elem.classList.toggle("inverted");
}
</script>
</body>
</html>