-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile.html
191 lines (152 loc) · 8.56 KB
/
file.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<title>SVG stack preview | svg-sprite</title>
<style>@charset "UTF-8";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:2em 0 0 0}section{border-top:1px solid #eee;padding:2em 3em 0 3em}section ul{margin:0;padding:0}section li{display:inline;display:inline-block;background-color:#fff;position:relative;margin:0 2em 2em 0;vertical-align:top;border:1px solid #ccc;padding:1em 1em 3em 1em;cursor:default}.icon-box{margin:0;width:144px;height:144px;position:relative;background:#ccc url(data:image/gif;base64,R0lGODlhDAAMAIAAAMzMzP///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmU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6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAAAAAAAsAAAAAAwADAAAAhaEH6mHmmzcgzJAUG/NVGrfOZ8YLlABADs=) top left repeat;border:1px solid #ccc;display:table-cell;vertical-align:middle;text-align:center}.icon{display:inline;display:inline-block}h1{margin-top:0}h2{margin:0;padding:0;font-size:1em;font-weight:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:absolute;left:1em;right:1em;bottom:1em}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>
<!--
Sprite shape dimensions
====================================================================================================
You will need to set the sprite shape dimensions via CSS when you use them as stack SVGs, otherwise
they would become a huge 100% in size. You may use the following dimension classes for doing so.
They might well be outsourced to an external stylesheet of course.
-->
<style type="text/css">
.svg-ic_attachment_48px-dims { width: 48px; height: 48px; }
.svg-ic_cloud_48px-dims { width: 48px; height: 48px; }
.svg-ic_cloud_circle_48px-dims { width: 48px; height: 48px; }
.svg-ic_cloud_done_48px-dims { width: 48px; height: 48px; }
.svg-ic_cloud_download_48px-dims { width: 48px; height: 48px; }
.svg-ic_cloud_off_48px-dims { width: 48px; height: 48px; }
.svg-ic_cloud_queue_48px-dims { width: 48px; height: 48px; }
.svg-ic_cloud_upload_48px-dims { width: 48px; height: 48px; }
.svg-ic_file_download_48px-dims { width: 48px; height: 48px; }
.svg-ic_file_upload_48px-dims { width: 48px; height: 48px; }
.svg-ic_folder_48px-dims { width: 48px; height: 48px; }
.svg-ic_folder_open_48px-dims { width: 48px; height: 48px; }
.svg-ic_folder_shared_48px-dims { width: 48px; height: 48px; }
</style>
<!--
====================================================================================================
-->
</head>
<body>
<header>
<h1>SVG stack preview</h1>
<p>This preview features an SVG stack. Please have a look at the HTML source for further details and be aware of the following constraints:</p>
<ul>
<li>Your browser has to <a href="http://caniuse.com/#feat=svg-fragment" target="_blank">support SVG fragment identifiers</a> for SVG stacks to work.</li>
<li>Support for SVG fragment identifiers hasn't always been that decent. For older browsers you will have to use some prolyfill like <a href="https://github.com/preciousforever/SVG-Stacker/blob/master/fixsvgstack.jquery.js" target="_blank">fixsvgstack.jquery.js</a>.</li>
</ul>
</header>
<section>
<!--
SVG stack
====================================================================================================
These SVG images make use of fragment identifiers (IDs) to reference certain portions of the
external sprite. By default, all shapes inside the sprite are hidden by CSS. The `:target` pseudo
selector is used to show the very shape that is referenced by the fragment identifier.
-->
<ul>
<li title="ic_attachment_48px">
<div class="icon-box">
<!-- ic_attachment_48px -->
<img src="file.svg#attachment" class="svg-ic_attachment_48px-dims" alt="ic_attachment_48px"/>
</div>
<h2>attachment</h2>
</li>
<li title="ic_cloud_48px">
<div class="icon-box">
<!-- ic_cloud_48px -->
<img src="file.svg#cloud" class="svg-ic_cloud_48px-dims" alt="ic_cloud_48px"/>
</div>
<h2>cloud</h2>
</li>
<li title="ic_cloud_circle_48px">
<div class="icon-box">
<!-- ic_cloud_circle_48px -->
<img src="file.svg#cloud_circle" class="svg-ic_cloud_circle_48px-dims" alt="ic_cloud_circle_48px"/>
</div>
<h2>cloud_circle</h2>
</li>
<li title="ic_cloud_done_48px">
<div class="icon-box">
<!-- ic_cloud_done_48px -->
<img src="file.svg#cloud_done" class="svg-ic_cloud_done_48px-dims" alt="ic_cloud_done_48px"/>
</div>
<h2>cloud_done</h2>
</li>
<li title="ic_cloud_download_48px">
<div class="icon-box">
<!-- ic_cloud_download_48px -->
<img src="file.svg#cloud_download" class="svg-ic_cloud_download_48px-dims" alt="ic_cloud_download_48px"/>
</div>
<h2>cloud_download</h2>
</li>
<li title="ic_cloud_off_48px">
<div class="icon-box">
<!-- ic_cloud_off_48px -->
<img src="file.svg#cloud_off" class="svg-ic_cloud_off_48px-dims" alt="ic_cloud_off_48px"/>
</div>
<h2>cloud_off</h2>
</li>
<li title="ic_cloud_queue_48px">
<div class="icon-box">
<!-- ic_cloud_queue_48px -->
<img src="file.svg#cloud_queue" class="svg-ic_cloud_queue_48px-dims" alt="ic_cloud_queue_48px"/>
</div>
<h2>cloud_queue</h2>
</li>
<li title="ic_cloud_upload_48px">
<div class="icon-box">
<!-- ic_cloud_upload_48px -->
<img src="file.svg#cloud_upload" class="svg-ic_cloud_upload_48px-dims" alt="ic_cloud_upload_48px"/>
</div>
<h2>cloud_upload</h2>
</li>
<li title="ic_file_download_48px">
<div class="icon-box">
<!-- ic_file_download_48px -->
<img src="file.svg#file_download" class="svg-ic_file_download_48px-dims" alt="ic_file_download_48px"/>
</div>
<h2>file_download</h2>
</li>
<li title="ic_file_upload_48px">
<div class="icon-box">
<!-- ic_file_upload_48px -->
<img src="file.svg#file_upload" class="svg-ic_file_upload_48px-dims" alt="ic_file_upload_48px"/>
</div>
<h2>file_upload</h2>
</li>
<li title="ic_folder_48px">
<div class="icon-box">
<!-- ic_folder_48px -->
<img src="file.svg#folder" class="svg-ic_folder_48px-dims" alt="ic_folder_48px"/>
</div>
<h2>folder</h2>
</li>
<li title="ic_folder_open_48px">
<div class="icon-box">
<!-- ic_folder_open_48px -->
<img src="file.svg#folder_open" class="svg-ic_folder_open_48px-dims" alt="ic_folder_open_48px"/>
</div>
<h2>folder_open</h2>
</li>
<li title="ic_folder_shared_48px">
<div class="icon-box">
<!-- ic_folder_shared_48px -->
<img src="file.svg#folder_shared" class="svg-ic_folder_shared_48px-dims" alt="ic_folder_shared_48px"/>
</div>
<h2>folder_shared</h2>
</li>
</ul>
<!--
====================================================================================================
-->
</section>
<footer>
<p>Generated at Sat, 08 Aug 2015 18:09:08 GMT by <a href="https://github.com/jkphl/svg-sprite" target="_blank">svg-sprite</a>.</p>
</footer>
</body>
</html>