-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
279 lines (239 loc) · 12.7 KB
/
index.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!DOCTYPE html>
<html id="patternlab-html" lang="en-US">
<head id="patternlab-head">
<title id="title">Pattern Lab</title>
<meta charset="UTF-8">
<!-- never cache patterns -->
<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" />
<!-- handle the viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- load the pattern lab css -->
<link rel="stylesheet" href="styleguide/css/styleguide.min.css" media="all" />
<link rel="stylesheet" href="styleguide/css/prism-typeahead.min.css" media="all" />
</head>
<body id="patternlab-body">
<!--Style Guide Header-->
<header class="sg-header" role="banner">
<a href="#sg-nav-container" class="sg-nav-toggle">Menu</a>
<div class="sg-nav-container" id="sg-nav-container">
<ol class="sg-nav" id="pl-pattern-nav-target"><!-- pattern lab nav will be inserted here --></ol>
<div class="sg-controls" id="sg-controls"><!-- ish Controls will be inserted here --></div>
</div>
</header>
<!--End Style Guide Header-->
<!-- iFrame -->
<div id="sg-vp-wrap">
<div id="sg-cover"></div>
<div id="sg-gen-container">
<iframe id="sg-viewport" name="sg-viewport" sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>
<div id="sg-rightpull-container">
<div id="sg-rightpull"></div>
</div>
</div>
</div>
<!--end iFrame-->
<!-- modal window -->
<div id="sg-modal-container" class="sg-modal anim-ready" style="bottom: -2000px">
<!-- modal close btn -->
<button id="sg-modal-close-btn" class="sg-modal-close-btn" title="Hide pattern info">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="12" height="12" viewBox="0 0 12 12">
<title>Close</title>
<path fill="#808080" d="M11.8905,9.6405 L11.8905,9.6405 L8.25,6 L11.8905,2.3595 L11.8905,2.3595 C11.9295,2.3205 11.958,2.27475 11.976,2.226 C12.0255,2.0925 11.997,1.9365 11.8905,1.82925 L10.17075,0.1095 C10.0635,0.00225 9.9075,-0.02625 9.774,0.024 C9.72525,0.042 9.6795,0.0705 9.6405,0.1095 L9.6405,0.1095 L6,3.75 L2.3595,0.1095 L2.3595,0.1095 C2.3205,0.0705 2.27475,0.042 2.226,0.024 C2.0925,-0.0255 1.9365,0.00225 1.82925,0.1095 L0.1095,1.82925 C0.00225,1.9365 -0.02625,2.0925 0.024,2.226 C0.042,2.27475 0.0705,2.3205 0.1095,2.3595 L0.1095,2.3595 L3.75,6 L0.1095,9.6405 L0.1095,9.6405 C0.0705,9.6795 0.042,9.72525 0.024,9.774 C-0.0255,9.9075 0.00225,10.0635 0.1095,10.17075 L1.82925,11.8905 C1.9365,11.99775 2.0925,12.02625 2.226,11.976 C2.27475,11.958 2.3205,11.9295 2.3595,11.8905 L2.3595,11.8905 L6,8.25 L9.6405,11.8905 L9.6405,11.8905 C9.6795,11.9295 9.72525,11.958 9.774,11.976 C9.9075,12.0255 10.0635,11.99775 10.17075,11.8905 L11.8905,10.17075 C11.99775,10.0635 12.02625,9.9075 11.976,9.774 C11.958,9.72525 11.9295,9.6795 11.8905,9.6405 L11.8905,9.6405 Z"></path>
</svg>
</button><!--end .sg-modal-close-btn-->
<div id="sg-modal-content" class="sg-modal-content"></div><!--end .sg-modal-content-->
</div><!--end .sg-modal-->
<!-- end modal window -->
<!-- mustache templates -->
<script type="text/mustache" id="pl-pattern-nav-template">
{{# patternTypes }}
<li><a class="sg-acc-handle">{{ patternTypeUC }}</a><ol class="sg-acc-panel">
{{# patternTypeItems }}
<li><a class="sg-acc-handle">{{ patternSubtypeUC }}</a><ol class="sg-acc-panel sg-sub-nav">
{{# patternSubtypeItems }}
<li><a href="patterns/{{ patternPath }}" class="sg-pop {{# patternState }}sg-pattern-state {{ patternState }}{{/ patternState }}" data-patternpartial="{{ patternPartial }}">{{ patternName }}</a></li>
{{/ patternSubtypeItems }}
</ol></li>
{{/ patternTypeItems }}
{{# patternItems }}
<li><a href="patterns/{{ patternPath }}" class="sg-pop {{# patternState }}sg-pattern-state {{ patternState }}{{/ patternState }}" data-patternpartial="{{ patternPartial }}">{{ patternName }}</a></li>
{{/ patternItems }}
</ol></li>
{{/ patternTypes }}
{{^ ishControlsHide.views-all }}
<li><a href="styleguide/html/styleguide.html" class="sg-pop" data-patternpartial="all">All</a></li>
{{/ ishControlsHide.views-all }}
</script>
<script type="text/mustache" id="pl-ish-controls-template">
<div class="sg-control-content">
<ul class="sg-control">
<li class="sg-size">
<div class="sg-current-size">
<form id="sg-form">
<label for="sg-size-px">Size</label>
<input type="text" class="sg-input sg-size-px" id="sg-size-px" value="---">px /
<input type="text" class="sg-input sg-size-em" value="---">em
</form><!--end #sg-form-->
</div><!--end #sg-current-size-->
<ul class="sg-size-options">
{{^ ishControlsHide.s }}
<li><a href="#" id="sg-size-s">S</a></li>
{{/ ishControlsHide.s }}
{{^ ishControlsHide.m }}
<li><a href="#" id="sg-size-m">M</a></li>
{{/ ishControlsHide.m }}
{{^ ishControlsHide.l }}
<li><a href="#" id="sg-size-l">L</a></li>
{{/ ishControlsHide.l }}
{{^ ishControlsHide.full }}
<li><a href="#" id="sg-size-full">Full</a></li>
{{/ ishControlsHide.full }}
{{^ ishControlsHide.random }}
<li><a href="#" id="sg-size-random">Rand</a></li>
{{/ ishControlsHide.random }}
{{^ ishControlsHide.disco }}
<li><a href="#" class="mode-link" id="sg-size-disco">Disco</a></li>
{{/ ishControlsHide.disco }}
{{^ ishControlsHide.hay }}
<li><a href="#" class="mode-link" id="sg-size-hay">Hay!</a></li>
{{/ ishControlsHide.hay }}
</ul>
</li>
{{^ ishControlsHide.tools-all }}
<li class="sg-tools">
<button class="sg-acc-handle sg-tools-toggle" id="sg-tools-toggle" title="Tools">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" viewBox="0 0 14 14">
<title>Pattern Lab Tools</title>
<path fill="#808080" d="M12.767 8.343c-0.735-1.272-0.293-2.903 0.986-3.643l-1.376-2.383c-0.393 0.23-0.85 0.363-1.338 0.363-1.47 0-2.662-1.2-2.662-2.68h-2.752c0.004 0.457-0.11 0.92-0.355 1.343-0.735 1.272-2.367 1.705-3.649 0.967l-1.376 2.383c0.396 0.225 0.739 0.555 0.983 0.977 0.733 1.27 0.294 2.897-0.98 3.64l1.376 2.383c0.392-0.228 0.847-0.359 1.332-0.359 1.466 0 2.654 1.192 2.662 2.665h2.752c-0.001-0.452 0.113-0.91 0.355-1.329 0.733-1.27 2.362-1.703 3.642-0.971l1.376-2.383c-0.393-0.225-0.734-0.554-0.977-0.974zM7 9.835c-1.566 0-2.835-1.269-2.835-2.835s1.269-2.835 2.835-2.835c1.566 0 2.835 1.269 2.835 2.835s-1.269 2.835-2.835 2.835z"></path>
</svg>
</button>
<ul class="sg-acc-panel sg-right sg-checklist">
<li><a href="#" id="sg-t-patterninfo">Show Pattern Info</a></li>
{{^ ishControlsHide.views-new }}
<li><a href="#" target="_blank" id="sg-raw">Open in new window</a></li>
{{/ ishControlsHide.views-new }}
{{^ ishControlsHide.tools-docs }}
<li><a href="http://patternlab.io/docs/" target="_blank">Pattern Lab Docs</a></li>
{{/ ishControlsHide.tools-docs }}
{{^ ishControlsHide.find }}
<li id="sg-find"><input class="typeahead" id="typeahead" type="text" placeholder="Find pattern" /></li>
{{/ ishControlsHide.find }}
</ul>
</li>
{{/ ishControlsHide.tools-all }}
</ul>
</div>
</script>
<!-- the template for the modal slider -->
<script type="text/mustache" id="pl-panel-template-base">
<div class="sg-pattern-extra-inner">
<!-- description, etc. -->
{{# descBlockExists }}
<div class="sg-pattern-extra-info">
{{# isPatternView }}
<!-- if this is for a single pattern provide some extra info -->
<div class="sg-pattern-head">
<div class="sg-pattern-breadcrumb">
{{# patternBreadcrumb }}
{{ patternType }}
{{# patternSubtype }}
/ {{ patternSubtype }}
{{/ patternSubtype }}
{{/ patternBreadcrumb }}
</div>
<h2 class="sg-pattern-title">
{{ patternNameCaps }}
{{# patternState }}
<span class="sg-pattern-state {{ patternState }}">{{ patternState }}</span>
{{/ patternState }}
</h2>
</div><!--end .sg-pattern-head-->
{{/ isPatternView }}
{{# patternDescExists }}
<div class="sg-pattern-desc">
{{{ patternDesc }}}
{{# patternDescAdditions }}
{{{ patternDescAdditions }}}
{{/ patternDescAdditions }}
</div><!--end .sg-pattern-desc-->
{{/ patternDescExists }}
{{# lineageExists }}
<p class="sg-pattern-lineage">
The <strong>{{ patternName }}</strong> pattern contains the following patterns:
<span id="sg-code-lineage-fill">
{{# lineage }}
<a href='{{ lineagePath }}' class='{{# lineageState }}sg-pattern-state {{ lineageState }}{{/ lineageState }}' data-patternPartial='{{ lineagePattern }}'>{{ lineagePattern }}</a>{{# hasComma }}, {{/ hasComma }}
{{/ lineage }}
</span>
</p><!--end .sg-pattern-lineage-->
{{/ lineageExists }}
{{# lineageRExists }}
<p class="sg-pattern-lineage">
The <strong>{{ patternName }}</strong> pattern is included in the following patterns:
<span id="sg-code-lineager-fill">
{{# lineageR }}
<a href='{{ lineagePath }}' class='{{# lineageState }}sg-pattern-state {{ lineageState }}{{/ lineageState }}' data-patternPartial='{{ lineagePattern }}'>{{ lineagePattern }}</a>{{# hasComma }}, {{/ hasComma }}
{{/ lineageR }}
</span>
</p><!--end .sg-pattern-lineage-->
{{/ lineageRExists }}
{{# annotationExists }}
<div class="sg-annotations" id="sg-annotations">
<h2 class="sg-annotations-title">Annotations</h2>
<ol class="sg-annotations-list">
{{# annotations }}
<li><h4 class="sg-annotations-list-title">{{ title }}</h4> {{{ comment }}}</li>
{{/ annotations }}
</ol>
</div>
{{/ annotationExists }}
</div><!--end .sg-pattern-extra-info-->
{{/ descBlockExists }}
<div class="sg-pattern-extra-code">
<div id="sg-{{ patternPartial }}-tabs" class="sg-tabs">
<ul class="sg-tabs-list">
{{# panels }}
<li id="sg-{{ patternPartial }}-{{ id }}-tab" data-patternpartial="{{ patternPartial }}" data-panelid="{{ id }}"><a href="#sg-{{ patternPartial }}-{{ id }}-panel" class="active">{{ name }}</a></li>
{{/ panels }}
</ul><!--end .sg-tabs-list-->
<div id="sg-{{ patternPartial }}-panels" class="sg-tabs-content">
{{# panels }}
<div id="sg-{{ patternPartial }}-{{ id }}-panel" class="sg-tabs-panel" style="display: none">
{{{ content }}}
</div>
{{/ panels }}
</div><!--end .sg-tabs-content-->
</div><!--end .sg-tabs-->
</div><!--end .sg-pattern-extra-code-->
</div><!--end .sg-pattern-extra-inner-->
</script>
<!-- the tempalte for code-related tabs in the code view slider -->
<script type="text/mustache" id="pl-panel-template-code">
<pre class="language-markup">
<code id="sg-code-fill-{{ language }}" class="language-{{ language }}">{{{ code }}}</code>
</pre>
</script>
<!-- load the data generated by pattern lab -->
<script src="styleguide/data/patternlab-data.js"></script>
<script src="annotations/annotations.js"></script>
<!-- load the external library js -->
<script src="styleguide/bower_components/jquery.min.js"></script>
<script src="styleguide/bower_components/hogan-3.0.2.min.js"></script>
<script src="styleguide/bower_components/prism.min.js"></script>
<script src="styleguide/bower_components/jwerty.min.js"></script>
<script src="styleguide/bower_components/classList.min.js"></script>
<script src="styleguide/bower_components/typeahead.bundle.min.js"></script>
<script src="styleguide/bower_components/EventEmitter.min.js"></script>
<script src="styleguide/bower_components/script.min.js"></script>
<!-- set-up the dispatcher -->
<script>
var Dispatcher = new EventEmitter();
</script>
<!-- load the pattern lab viewer js -->
<script src="styleguide/js/patternlab-viewer.min.js"></script>
</body>
</html>