1
+ <!DOCTYPE html>
2
+ < html id ="patternlab-html ">
3
+ < head id ="patternlab-head ">
4
+
5
+ < title id ="title "> Pattern Lab</ title >
6
+ < meta charset ="UTF-8 ">
7
+
8
+ <!-- never cache patterns -->
9
+ < meta http-equiv ="cache-control " content ="max-age=0 " />
10
+ < meta http-equiv ="cache-control " content ="no-cache " />
11
+ < meta http-equiv ="expires " content ="0 " />
12
+ < meta http-equiv ="expires " content ="Tue, 01 Jan 1980 1:00:00 GMT " />
13
+ < meta http-equiv ="pragma " content ="no-cache " />
14
+
15
+ <!-- handle the viewport -->
16
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
17
+
18
+ <!-- load the pattern lab css -->
19
+ < link rel ="stylesheet " href ="styleguide/css/styleguide.css " media ="all " />
20
+ < link rel ="stylesheet " href ="styleguide/css/styleguide-specific.css " media ="all " />
21
+
22
+ <!-- load the external library css -->
23
+ < link rel ="stylesheet " href ="styleguide/css/typeahead.css " media ="all " />
24
+ < link rel ="stylesheet " href ="styleguide/bower_components/prism/themes/prism-okaidia.css " media ="all " />
25
+
26
+ <!-- not sure why jquery is loaded here... -->
27
+ < script src ="styleguide/bower_components/jquery/dist/jquery.min.js "> </ script >
28
+
29
+ </ head >
30
+ < body id ="patternlab-body ">
31
+
32
+ <!--Style Guide Header-->
33
+ < header class ="sg-header " role ="banner ">
34
+ < a href ="#sg-nav-container " class ="sg-nav-toggle "> < span class ="icon-menu "> </ span > Menu</ a >
35
+ < div class ="sg-nav-container " id ="sg-nav-container ">
36
+ < ol class ="sg-nav " id ="pl-pattern-nav-target "> <!-- pattern lab nav is going to be inserted here --> </ ol >
37
+ < div class ="sg-controls " id ="sg-controls "> <!-- ish Controls are going to be inserted here --> </ div >
38
+ </ div >
39
+ </ header >
40
+ <!--End Style Guide Header-->
41
+
42
+ <!-- iFrame -->
43
+ < div id ="sg-vp-wrap ">
44
+ < div id ="sg-cover "> </ div >
45
+ < div id ="sg-gen-container ">
46
+ < iframe id ="sg-viewport " name ="sg-viewport " sandbox ="allow-same-origin allow-scripts allow-popups allow-forms "> </ iframe >
47
+ < div id ="sg-rightpull-container ">
48
+ < div id ="sg-rightpull "> </ div >
49
+ </ div >
50
+ </ div >
51
+ </ div >
52
+ <!--end iFrame-->
53
+
54
+ <!-- mustache templates -->
55
+ < script type ="text/mustache " id ="pl-pattern-nav-template ">
56
+ { { # patternTypes } }
57
+ < li class = "sg-nav-{{ patternTypeLC }}" > < a class = "sg-acc-handle" > { { patternTypeUC } } </ a > < ol class = "sg-acc-panel" >
58
+ { { # patternTypeItems } }
59
+ < li class = "sg-nav-{{ patternSubtypeLC }}" > < a class = "sg-acc-handle" > { { patternSubtypeUC } } </ a > < ol class = "sg-acc-panel sg-sub-nav" >
60
+ { { # patternSubtypeItems } }
61
+ < li > < a href = "patterns/{{ patternPath }}" class = "sg-pop {{# patternState }}sg-pattern-state {{ . }}{{/ patternState }}" data-patternpartial = "{{ patternPartial }}" > { { patternName } } </ a > </ li >
62
+ { { / patternSubtypeItems } }
63
+ </ ol > </ li >
64
+ { { / patternTypeItems } }
65
+ { { # patternItems } }
66
+ < li > < a href = "patterns/{{ patternPath }}" class = "sg-pop {{# patternState }}sg-pattern-state {{ . }}{{/ patternState }}" data-patternpartial = "{{ patternPartial }}" > { { patternName } } </ a > </ li >
67
+ { { / patternItems } }
68
+ </ ol > </ li >
69
+ { { / p a t t e r n T y p e s } }
70
+ < li > < a href = "styleguide/html/styleguide.html" class = "sg-pop" data-patternpartial = "all" > All</ a > < / l i >
71
+ </ script >
72
+
73
+ < script type ="text/mustache " id ="pl-ish-controls-template ">
74
+ < div class = "sg-control-content" >
75
+ < ul class = "sg-control" >
76
+ < li class = "sg-size" >
77
+ < div class = "sg-current-size" >
78
+ < form id = "sg-form" >
79
+ Size < input type = "text" class = "sg-input sg-size-px" value = "---" > px /
80
+ < input type = "text" class = "sg-input sg-size-em" value = "---" > em
81
+ </ form > <!--end #sg-form-->
82
+ </ div > <!--end #sg-current-size-->
83
+ < ul class = "sg-acc-panel sg-size-options" >
84
+ { { ^ ishControlsHide . s } } < li > < a href = "#" id = "sg-size-s" > S</ a > </ li > { { / i s h C o n t r o l s H i d e .s } }
85
+ { { ^ ishControlsHide . m } } < li > < a href = "#" id = "sg-size-m" > M</ a > </ li > { { / i s h C o n t r o l s H i d e .m } }
86
+ { { ^ ishControlsHide . l } } < li > < a href = "#" id = "sg-size-l" > L</ a > </ li > { { / i s h C o n t r o l s H i d e .l } }
87
+ { { ^ ishControlsHide . full } } < li > < a href = "#" id = "sg-size-full" > Full</ a > </ li > { { / i s h C o n t r o l s H i d e .f u l l } }
88
+ { { ^ ishControlsHide . random } } < li > < a href = "#" id = "sg-size-random" > Random</ a > </ li > { { / i s h C o n t r o l s H i d e .r a n d o m } }
89
+ { { ^ ishControlsHide . disco } } < li > < a href = "#" class = "mode-link" id = "sg-size-disco" > Disco</ a > </ li > { { / i s h C o n t r o l s H i d e .d i s c o } }
90
+ { { ^ ishControlsHide . hay } } < li > < a href = "#" class = "mode-link" id = "sg-size-hay" > Hay!</ a > </ li > { { / i s h C o n t r o l s H i d e .h a y } }
91
+ </ul >
92
+ < / li >
93
+ { { ^ ishControlsHide . mqs } }
94
+ < li class = "sg-mqs" >
95
+ < a href = "#" class = "mode-link sg-acc-handle" id = "sg-size-mq" title = "Media queries in stylesheet" > MQ</ a >
96
+ < ul class = "sg-acc-panel sg-left" id = "sg-mq" >
97
+ { { # mqs } }
98
+ < li > < a href = "#" > { { . } } </ a > </ li >
99
+ { { / mqs } }
100
+ </ ul >
101
+ </ li >
102
+ { { / i s h C o n t r o l s H i d e .m q s } }
103
+ { { ^ ishControlsHide . find } }
104
+ < li class = "sg-find" >
105
+ < a href = "#" class = "sg-acc-handle sg-control-trigger sg-icon sg-icon-search" id = "sg-f-toggle" title = "Search Patterns" > < span class = "is-vishidden" > Search Patterns</ span > </ a >
106
+ < ul class = "sg-view sg-acc-panel sg-right sg-checklist" id = "sg-find" style = "margin-top: 33px;" >
107
+ < li > < input class = "typeahead" id = "typeahead" type = "text" placeholder = "search for a pattern..." > </ li >
108
+ </ ul >
109
+ </ li >
110
+ { { / i s h C o n t r o l s H i d e .f i n d } }
111
+ { { ^ ishControlsHide . views - all } }
112
+ < li class = "sg-view" >
113
+ < a href = "#" class = "sg-acc-handle sg-control-trigger sg-icon sg-icon-eye" id = "sg-t-toggle" title = "View" > < span class = "is-vishidden" > View</ span > </ a >
114
+ < ul class = "sg-view sg-acc-panel sg-right sg-checklist" id = "sg-view" >
115
+ { { ^ ishControlsHide . views - annotations } } < li > < a href = "#" class = "sg-checkbox" id = "sg-t-annotations" > Annotations</ a > </ li > { { / i s h C o n t r o l s H i d e .v i e w s - a n n o t a t i o n s } }
116
+ { { ^ ishControlsHide . views - code } } < li > < a href = "#" class = "sg-checkbox" id = "sg-t-code" > Code</ a > </ li > { { / i s h C o n t r o l s H i d e .v i e w s - c o d e } }
117
+ { { ^ ishControlsHide . views - new } } < li > < a href = "#" target = "_blank" id = "sg-raw" class = "sg-icon-link" > Open in new window</ a > </ li > { { / i s h C o n t r o l s H i d e .v i e w s - n e w } }
118
+ </ul >
119
+ < / li >
120
+ { { / i s h C o n t r o l s H i d e .v i e w s - a l l } }
121
+ { { ^ ishControlsHide . tools - all } }
122
+ < li class = "sg-tools" >
123
+ < a href = "#" class = "sg-acc-handle sg-tools-toggle sg-icon sg-icon-cog" id = "sg-tools-toggle" title = "Tools" > < span class = "is-vishidden" > Tools</ span > </ a >
124
+ < ul class = "sg-acc-panel sg-right sg-checklist" >
125
+ { { ^ ishControlsHide . tools - follow } } < li > < a href = "#" id = "navSyncButton" class = "sg-checkbox sg-page-follow" data-state = "off" > Page Follow</ a > </ li > { { / i s h C o n t r o l s H i d e .t o o l s - f o l l o w } }
126
+ { { ^ ishControlsHide . tools - reload } } < li > < a href = "#" id = "contentSyncButton" class = "sg-checkbox sg-auto-reload" data-state = "off" > Auto-reload</ a > </ li > { { / i s h C o n t r o l s H i d e .t o o l s - r e l o a d } }
127
+ { { ^ ishControlsHide . tools - snapshot } } < li > < a href = "snapshots/" class = "sg-icon-fil sg-acc-handlee" data-patternpartial = "snapshots" target = "sg-viewport" > Snapshots</ a > </ li > { { / i s h C o n t r o l s H i d e .t o o l s - s n a p s h o t } }
128
+ { { ^ ishControlsHide . tools - shortcuts } } < li > < a href = "http://pattern-lab.info/docs/advanced-keyboard-shortcuts.html" class = "sg-icon-keyboard" target = "_blank" > Keyboard Shortcuts</ a > { { / i s h C o n t r o l s H i d e .t o o l s - s h o r t c u t s } }
129
+ { { ^ ishControlsHide . tools - docs } } < li > < a href = "http://pattern-lab.info/docs/" class = "sg-icon-file" target = "_blank" > Pattern Lab Docs</ a > { { / i s h C o n t r o l s H i d e .t o o l s - d o c s } }
130
+ </ul >
131
+ < / li >
132
+ { { / i s h C o n t r o l s H i d e .t o o l s - a l l } }
133
+ </ul >
134
+ < / div >
135
+ </ script >
136
+
137
+ <!-- the template for the code view slider -->
138
+ < script type ="text/mustache " id ="pl-code-template ">
139
+ < div id = "sg-code-close" class = "sg-view-close" >
140
+ < a href = "#" id = "sg-code-close-btn" class = "sg-view-close-btn" > Close</ a >
141
+ </ div >
142
+ < div id = "sg-code-loader" >
143
+ < div class = "spinner" > </ div >
144
+ Loading pattern ...
145
+ </div >
146
+ { { # patternStateExists } }
147
+ < div id = "sg-code-patternstate" >
148
+ < p >
149
+ The state of the < span class = "sg-code-patternname" > { { patternName } } </ span > pattern is: < span id = "sg-code-patternstate-fill" > </ span >
150
+ </ p >
151
+ </ div >
152
+ { { / p a t t e r n S t a t e E x i s t s } }
153
+ { { # lineageExists } }
154
+ < div id = "sg-code-lineage" >
155
+ < p >
156
+ The < span class = "sg-code-patternname" > { { patternName } } </ span > pattern contains the following patterns:
157
+ < span id = "sg-code-lineage-fill" >
158
+ { { # lineage } }
159
+ < a href = '{{ lineagePath }}' class = '{{# lineageState }}sg-pattern-state {{ . }}{{/ lineageState }}' data-patternPartial = '{{ lineagePattern }}' > { { lineagePattern } } </ a >
160
+ { { / lineage } }
161
+ </ span >
162
+ </ p >
163
+ </ div >
164
+ { { / l i n e a g e E x i s t s } }
165
+ { { # lineageRExists } }
166
+ < div id = "sg-code-lineager" >
167
+ < p >
168
+ The < span class = "sg-code-patternname" > { { patternName } } </ span > pattern is included in the following patterns:
169
+ < span id = "sg-code-lineager-fill" >
170
+ { { # lineageR } }
171
+ < a href = '{{ lineagePath }}' class = '{{# lineageState }}sg-pattern-state {{ . }}{{/ lineageState }}' data-patternPartial = '{{ lineagePattern }}' > { { lineagePattern } } </ a >
172
+ { { / lineageR } }
173
+ </ span >
174
+ </ p >
175
+ </ div >
176
+ { { / l i n e a g e R E x i s t s } }
177
+ { { # patternDescAdditions } }
178
+ { { { . } } }
179
+ { { / p a t t e r n D e s c A d d i t i o n s } }
180
+ < div id = "sg-code-markup" >
181
+ < ul id = "sg-code-tabs" >
182
+ < li id = "sg-code-title-html" class = "sg-code-title-active" > HTML</ li >
183
+ < li id = "sg-code-title-mustache" > { { patternExtension } } </ li >
184
+ </ ul >
185
+ < div class = "clear" >
186
+ < pre > < code id = "sg-code-fill" > </ code > </ pre >
187
+ </ div >
188
+ </ div >
189
+ </ script >
190
+
191
+ <!-- the template for the annotations viewer slider -->
192
+ < script type ="text/mustache " id ="pl-annotations-template ">
193
+ < div id = "sg-annotation-close" class = "sg-view-close" >
194
+
195
+ < a href = "#" id = "sg-annotation-close-btn" class = "sg-view-close-btn" > Close</ a >
196
+
197
+ < div id = "sg-comments-container" >
198
+ { { # comments } }
199
+ < div id = "annotation-{{ number }}" class = "sg-comment-container" >
200
+ < h2 > { { number } } . { { title } } < span id = "annotation-state-{{ number }}" style = "font-size: 0.8em; color: #666;" > { { ^ state } } hidden{ { / state } } </ span > </ h2 >
201
+ < div > { { { comment } } } </ div >
202
+ </ div >
203
+ { { / comments} }
204
+
205
+ { { ^ comments } }
206
+ < div class = "sg-comment-container" >
207
+ < h2 > No Annotations</ h2 >
208
+ < div > There are no annotations for this pattern.</ div >
209
+ </ div >
210
+ { { / comments } }
211
+ </ div >
212
+ </ div >
213
+ </ script >
214
+
215
+ <!-- handle the inclusion of data generated by Pattern Lab-->
216
+ < script src ="styleguide/data/config.js "> </ script >
217
+ < script src ="styleguide/data/nav-items.js "> </ script >
218
+ < script src ="styleguide/data/ish-controls.js "> </ script >
219
+ < script src ="styleguide/data/pattern-paths.js "> </ script >
220
+ < script src ="styleguide/data/viewall-paths.js "> </ script >
221
+
222
+ <!-- load the external library js -->
223
+ < script src ="styleguide/bower_components/hogan/web/builds/3.0.2/hogan-3.0.2.min.js "> </ script >
224
+ < script src ="styleguide/bower_components/prism/prism.js "> </ script >
225
+ < script src ="styleguide/bower_components/jwerty/jwerty.js "> </ script >
226
+ < script src ="styleguide/bower_components/classlist/classList.min.js "> </ script >
227
+ < script src ="styleguide/bower_components/typeahead.js/dist/typeahead.bundle.min.js "> </ script >
228
+
229
+ <!-- load the pattern lab js -->
230
+ < script src ="styleguide/js/layout.js "> </ script >
231
+ < script src ="styleguide/js/data-saver.js "> </ script >
232
+ < script src ="styleguide/js/url-handler.js "> </ script >
233
+ < script src ="styleguide/js/styleguide.js "> </ script >
234
+ < script src ="styleguide/js/pattern-finder.js "> </ script >
235
+ < script src ="styleguide/js/annotations-viewer.js "> </ script >
236
+ < script src ="styleguide/js/code-viewer.js "> </ script >
237
+
238
+ </ body >
239
+ </ html >
0 commit comments