-
Notifications
You must be signed in to change notification settings - Fork 60
/
builder.html
382 lines (381 loc) · 19.8 KB
/
builder.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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Layer Styles</title>
<link rel="icon" type="image/png" href="favicon.png" />
<script type="text/javascript" src="js/modernizr-1.7.min.js"></script>
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
<body>
<div id="main" class="box vertical flex">
<span id="codeBoxToggle">CSS Code</span>
<div id="workspace" class="box vertical flex">
<div id="overlay"></div>
<canvas id="innerShadow_universe"></canvas>
<canvas id="parallel_universe"></canvas>
<div id="background_layer" class="flex"></div>
<div id="layer"><div id="resize" class="resize"></div></div>
</div> <!-- /workspace -->
<div id="codeBox" class="paper">
<div class="dragger y"><div class="dragBox"></div></div>
<div class="body">
<div class="scroll paper">
<div id="copyCode">copy</div>
<div id="colorSwitch" class="toggle">
<div class="slidePanel">
<span class="left">rgb</span><span class="button"></span><span class="right">hex</span>
</div>
</div>
<code></code>
</div>
</div>
</div> <!-- /codeBox -->
</div> <!-- /main -->
<div id="layerstyle">
<div id="headerBg"></div>
<div id="dialog" class="window">
<div class="head moveable">
<h2>Layer Style</h2>
</div>
<div class="body">
<div class="main">
<div id="nav">
<ul>
<li>Styles</li>
<li class="nav-dropShadow active"><input type="checkbox" checked="checked">Drop Shadow</li>
<li class="nav-innerShadow"><input type="checkbox">Inner Shadow</li>
<li class="nav-background"><input type="checkbox" checked="checked">Background</li>
<li class="nav-border"><input type="checkbox" checked="checked">Border</li>
<li class="nav-borderRadius"><input type="checkbox">Border Radius</li>
</ul>
</div>
<div class="styles">
<div id="holder" class="holder">
<div>
<h3>Styles</h3>
<div id="stylePresets" class="border_box">
</div>
</div>
<div id="dropShadow">
<h3>Drop Shadow</h3>
<label>Color:</label>
<div>
<div class="color_field"></div>
</div>
<label for="ds-opacity">Opacity:</label>
<div>
<div class="slider"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="opacity" id="ds-opacity" type="text" data-min="0" data-max="100" data-restrict="digits" value="75">
%
</div>
<label class="angle_holder" for="ds-angle">Angle:</label>
<div>
<div class="pot"><div class="pointer"><div class="dot"></div><div class="line"></div></div></div>
<div class="angle_holder">
<input class="angle" id="ds-angle" type="text" data-min="0" data-max="360" data-restrict="digits" value="90">
°
<input type="checkbox" class="globalLight" id="ds-globalLight"><label for="ds-globalLight">Use Global Light</label>
</div>
</div>
<label for="ds-distance">Distance:</label>
<div>
<div class="slider" data-easing="true"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="distance" id="ds-distance" type="text" data-min="0" data-max="100" value="1">
px
</div>
<label for="ds-blur">Blur:</label>
<div>
<div class="slider" data-easing="true"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="blur" id="ds-blur" type="text" data-min="0" data-max="100" value="5">
px
</div>
<label for="ds-size">Size:</label>
<div>
<div class="slider" data-easing="true"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="size" id="ds-size" type="text" data-min="0" data-max="255" value="0">
px
</div>
<div class="clear"></div>
</div>
<div id="innerShadow">
<h3>Inner Shadow</h3>
<label>Color:</label>
<div>
<div class="color_field"></div>
</div>
<label for="is-opacity">Opacity:</label>
<div>
<div class="slider"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="opacity" id="is-opacity" type="text" data-min="0" data-max="100" data-restrict="digits" value="90">
%
</div>
<label class="angle_holder" for="is-angle">Angle:</label>
<div>
<div class="pot"><div class="pointer"><div class="dot"></div><div class="line"></div></div></div>
<div class="angle_holder">
<input class="angle" id="is-angle" type="text" data-min="0" data-max="360" data-restrict="digits" value="90">
°
<input type="checkbox" class="globalLight" id="is-globalLight"><label for="is-globalLight">Use Global Light</label>
</div>
</div>
<label for="is-distance">Distance:</label>
<div>
<div class="slider" data-easing="true"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="distance" id="is-distance" type="text" data-min="0" data-max="100" value="1">
px
</div>
<label for="is-blur">Blur:</label>
<div>
<div class="slider" data-easing="true"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="blur" id="is-blur" type="text" data-min="0" data-max="100" value="0">
px
</div>
<label for="is-size">Size:</label>
<div>
<div class="slider" data-easing="true"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="size" id="is-size" type="text" data-min="0" data-max="255" value="0">
px
</div>
<div class="clear"></div>
</div>
<div id="background">
<h3>Background</h3>
<label for="bg-opacity">Opacity:</label>
<div>
<div class="slider"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="opacity" id="bg-opacity" type="text" data-min="0" data-max="100" value="100">
%
</div>
<label>Gradient</label>
<div>
<div class="gradientField"></div>
<input type="checkbox" class="reverse" id="bg-reverse"><label for="bg-reverse">Reverse</label>
</div>
<label>Style</label>
<div>
<select id="background_style">
<option value="linear">Linear</option>
<option value="reflected">Reflected</option>
<option value="contain">Radial - contain</option>
<option value="cover">Radial - cover</option>
</select>
</div>
<label class="angle_holder" for="bg-angle">Angle:</label>
<div>
<div class="pot"><div class="pointer"><div class="dot"></div><div class="line"></div></div></div>
<div class="angle_holder">
<input class="angle" id="bg-angle" type="text" data-min="0" data-max="360" value="90">
°
<input type="checkbox" class="globalLight" id="bg-globalLight"><label for="bg-globalLight">Use Global Light</label>
</div>
</div>
<div class="clear"></div>
</div>
<div id="border">
<h3>Border</h3>
<label>Color:</label>
<div>
<div class="color_field"></div>
</div>
<label for="bd-opacity">Opacity:</label>
<div>
<div class="slider"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="opacity" id="bd-opacity" type="text" data-min="0" data-max="100" value="100">
%
</div>
<label for="bd-size">Size:</label>
<div>
<div class="slider"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="size" id="bd-size" type="text" data-min="0" data-max="10" value="1">
px
</div>
<label>Style:</label>
<div id="border_styles" class="previews">
<div id="border_style_solid" title="solid" data-style="solid" class="active"></div>
<div id="border_style_dashed" title="dashed" data-style="dashed"></div>
<div id="border_style_dotted" title="dotted" data-style="dotted"></div>
<div id="border_style_double" title="double" data-style="double"></div>
</div>
<div class="clear"></div>
</div><!-- /border -->
<div id="borderRadius">
<h3>Border Radius</h3>
<label for="br-radius">Radius:</label>
<div>
<div class="slider" data-easing="true"><div class="bar"></div><div class="arrow"><div class="spike"></div><div class="rear"></div></div></div>
<input class="radius" id="br-radius" type="text" data-min="0" data-max="200" value="0">
<span class="options" id="border_radius_unit"><span id="border_radius_pixel" data-unit="px" class="active">px</span><span id="border_radius_percent" data-unit="%">%</span></span>
</div>
<label>Corners:</label>
<div id="border_radius_preview">
<div id="topLeft" class="active"></div>
<div id="topRight" class="active"></div>
<div id="bottomRight" class="active"></div>
<div id="bottomLeft" class="active"></div>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div class="clear"></div>
</div>
<div class="controls">
<button id="ok">OK</button>
<button id="cancel">Cancel</button>
<button id="new_style">New Style...</button>
</div>
</div>
</div>
<div id="gradient_editor" class="window">
<div class="head moveable">
<h2>Gradient Editor</h2>
</div>
<div class="body">
<div class="static_right">
<div class="main">
<div class="holder">
<h3>Presets</h3>
<div id="gradient_presets_holder" class="border_box">
<div id="gradient_presets">
</div>
</div>
</div>
</div>
<div class="controls sidebar">
<button id="gradient_ok">OK</button>
<button id="gradient_cancel">Cancel</button>
</div>
<div class="clear"></div>
</div>
<div class="static_right">
<div class="main">
<div class="static_left">
<span>Name:</span><input id="gradient_name" type="text">
</div>
</div>
<div class="controls sidebar">
<button id="gradient_new">New</button>
</div>
<div class="clear"></div>
</div>
<div class="holder">
<h3>Gradient</h3>
<div id="gradient_holder">
<div class="frame">
<div id="gradient">
</div>
</div>
</div>
<div id="stops" class="holder">
<h3>Stops</h3>
<div id="color_stops">
<div class="disabled">
<span>Color:</span><div id="stop_color" class="color_field"></div>
</div>
<div class="disabled">
<label for="stop_location">Location:</label>
<input type="text" id="stop_location" data-min="0" data-max="100" data-restrict="digits" disabled="disabled">%
</div>
<button id="remove_stop" disabled="disabled">Delete</button>
</div>
</div>
</div>
</div>
</div>
<div id="colorpicker" class="window">
<div class="head moveable">
<h2>Colorpicker</h2>
</div>
<div class="body">
<div class="main">
<div id="color_field" class="border_box">
<canvas id="field" width="256" height="256"></canvas>
<canvas id="circle" class="colorcircle" width="256" height="256"></canvas>
</div>
<div id="color_slider">
<canvas class="border_box" width="19" height="256"></canvas>
<div>
<div class="arrow left"><div class="spike"></div><div class="rear"></div></div>
<div class="arrow right"><div class="spike"></div><div class="rear"></div></div>
</div>
</div>
<div class="color_preview lightbox">
<label>new</label>
<div id="new_color"></div>
<label>current</label>
<div id="current_color"></div>
</div>
<div class="color_inputs">
<ul>
<li>
<input type="radio" id="hsb_h-radio" name="color" value="hsb_h">
<label for="hsb_h-radio">H:</label>
<input id="hsb_h" type="text" data-min="0" data-max="360" data-restrict="digits" value="0">
°
</li>
<li>
<input type="radio" id="hsb_s-radio" name="color" value="hsb_s">
<label for="hsb_s-radio">S:</label>
<input id="hsb_s" type="text" data-min="0" data-max="100" data-restrict="digits" value="0">
%
</li>
<li>
<input type="radio" id="hsb_b-radio" name="color" value="hsb_b" checked="checked">
<label for="hsb_b-radio">B:</label>
<input id="hsb_b" type="text" data-min="0" data-max="100" data-restrict="digits" value="0">
%
</li>
</ul>
<ul>
<li>
<input type="radio" id="rgb_r-radio" name="color" value="rgb_r">
<label for="rgb_r-radio">R:</label>
<input id="rgb_r" type="text" data-min="0" data-max="255" data-restrict="digits" value="0">
</li>
<li>
<input type="radio" id="rgb_g-radio" name="color" value="rgb_g">
<label for="rgb_g-radio">G:</label>
<input id="rgb_g" type="text" data-min="0" data-max="255" data-restrict="digits" value="0">
</li>
<li>
<input type="radio" id="rgb_b-radio" name="color" value="rgb_b">
<label for="rgb_b-radio">B:</label>
<input id="rgb_b" type="text" data-min="0" data-max="255" data-restrict="digits" value="0">
</li>
</ul>
<div id="hex_holder">
<label for="hex">#</label>
<input type="text" id="hex" size="10" maxlength="6" data-restrict="hexcode">
</div>
</div>
</div>
<div class="controls">
<button id="color_ok">OK</button>
<button id="color_cancel">Cancel</button>
<button id="color_add">Add to Swatches</button>
<div id="swatches_holder">
<div id="swatches" class="paint_bucket">
</div>
</div>
</div>
</div>
</div><!-- /ColorPicker -->
</div> <!-- /LayerStyle -->
<script type="text/javascript" src="js/jquery-1.6.min.js"></script>
<script type="text/javascript" src="js/ui.js"></script>
<script type="text/javascript" src="js/zeroclipboard/ZeroClipboard.js"></script>
<script type="text/javascript" src="js/localization.js"></script>
<script type="text/javascript" src="js/color.js"></script>
<script type="text/javascript" src="js/numbers.js"></script>
<script type="text/javascript" src="js/tools.js"></script>
<script type="text/javascript" src="js/css.js"></script>
<script type="text/javascript" src="js/style.js"></script>
<script type="text/javascript" src="js/colorpicker.js"></script>
<script type="text/javascript" src="js/gradienteditor.js"></script>
<script type="text/javascript" src="js/codebox.js"></script>
<script type="text/javascript" src="js/universe.js"></script>
<script type="text/javascript" src="js/styleStore.js"></script>
<script type="text/javascript" src="js/application.js"></script>
</body>
</html>