/
index.html
315 lines (281 loc) · 10.1 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Shades ⊙ƒ Bootstrap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<script type="text/javascript">
var SOB = {};
var v = window.location.search.replace('?', '').replace('/', '');
SOB.bootstrap = 'bootstrap';
if(['bootstrap', 'bootstrap-2.3.1'].indexOf(v) !== -1) {
SOB.bootstrap = v;
}
// initial client side less:
var link = document.createElement('link');
link.setAttribute('rel', 'stylesheet/less');
link.setAttribute('href', 'shades-' + SOB.bootstrap + '.less');
document.getElementsByTagName('head')[0].appendChild(link);
if(SOB.bootstrap == 'bootstrap-2.3.1') {
var link = document.createElement('link');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('href', SOB.bootstrap + '/docs/assets/css/bootstrap-responsive.css');
document.getElementsByTagName('head')[0].appendChild(link);
}
</script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="underscore.js"></script>
<script type="text/javascript" src="lessjs/dist/less-1.4.0-beta.js"></script>
<link rel="stylesheet" type="text/css" href="shades-ui.css" />
<script type="text/javascript" src="curve.js"></script>
<script type="text/javascript" src="shades.js"></script>
<script type="text/javascript" src="monotoniccubicspline.js"></script>
<script type="text/template" id="xx">
<tr>
<td>
<%= names %>
</td>
<td>
<div class="color">
<input type="color" value="<%= hex %>" disabled>
</div>
</td>
<td>
<div class="color">
<input type="color" name="<%= vars %>" value="<%= hex %>">
</div>
</td>
<td>
<div class="range">
<input type="range" min="0" max="1" step="0.01" value="0">
</div>
</td>
</tr>
</script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.js"></script>
<![endif]-->
</head>
<body id="shades">
<header>
<div class="container">
<div class="row">
<div class="span12">
<h1>Shades ⊙ƒ Bootstrap</h1>
<p class="lead">An experimental approach to customize bootstrap</p>
</div>
</div>
</div>
</header>
<div class="container">
<div class="row">
<div class="span12">
<label>Bootstrap Version</label>
<select id="bootstrap-version">
<option value="bootstrap">Bootstrap 3.0.0-wip</option>
<option value="bootstrap-2.3.1">Bootstrap 2.3.1</option>
</select>
<small>Warning: reloads page</small>
</div>
</div>
<div class="row">
<div class="span6">
<h2>Envelope</h2>
<div class="curve">
<canvas id="shades-curve" height="256" width="512"></canvas>
<div class="y-legend">Strength of Color Mix Effect</div>
<div class="x-legend" style="width:512px">
<div class="x-legend-left">Dark</div>
<div class="x-legend-right">Light</div>
</div>
<div class="hints">
<small>
[SHIFT] + Click: Add Point to Curve, [ALT] + Click on Point: Delete Point
</small>
</div>
</div>
</div>
<div class="span6">
<h2>Shade</h2>
<div class="shade-color">
<label>Color</label>
<div class="color">
<input type="color" id="brand" name="@brand" value="#773514">
</div>
<label><input type="checkbox" id="apply-colors"> Modify other than grayscale colors</label>
<div class="form-actions">
<a href="#" class="apply btn">Apply</a> <span class="update-hint">← Click to update</span>
</div>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="span12">
<ul class="nav nav-tabs" id="info">
<li class="active"><a href="#tab-grayscales" data-toggle="tab">Grayscale Color Definitions</a></li>
<li><a href="#tab-others" data-toggle="tab">Other Color Definitions</a></li>
<li><a href="#tab-examples" data-toggle="tab">Examples</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="span12">
<div class="tab-content">
<div class="tab-pane active" id="tab-grayscales">
<h2>Grayscale Color Definitions</h2>
<table class="table color-rules" id="shades-grayscale">
<thead>
<tr>
<th>
Name
</th>
<th>
Default
</th>
<th>
Adjusted
</th>
<th>
Effect
</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="tab-pane" id="tab-others">
<h2>Other Color Definitions</h2>
<table class="table color-rules" id="shades-colors">
<thead>
<tr>
<th>
Name
</th>
<th>
Default
</th>
<th>
Adjusted
</th>
<th>
Effect
</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="tab-pane" id="tab-examples">
<h2>Examples</h2>
<form class="bs-docs-example">
<fieldset>
<legend>Legend</legend>
<label>Label name</label>
<input type="text" placeholder="Type something…">
<span class="help-block">Example block-level help text here.</span>
<label class="checkbox">
<input type="checkbox"> Check me out
</label>
<button type="submit" class="btn">Submit</button>
</fieldset>
</form>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Button</th>
<th>class=""</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><button type="button" class="btn">Default</button></td>
<td><code>btn</code></td>
<td>Standard gray button with gradient</td>
</tr>
<tr>
<td><button type="button" class="btn btn-primary">Primary</button></td>
<td><code>btn btn-primary</code></td>
<td>Provides extra visual weight and identifies the primary action in a set of buttons</td>
</tr>
<tr>
<td><button type="button" class="btn btn-info">Info</button></td>
<td><code>btn btn-info</code></td>
<td>Used as an alternative to the default styles</td>
</tr>
<tr>
<td><button type="button" class="btn btn-success">Success</button></td>
<td><code>btn btn-success</code></td>
<td>Indicates a successful or positive action</td>
</tr>
<tr>
<td><button type="button" class="btn btn-warning">Warning</button></td>
<td><code>btn btn-warning</code></td>
<td>Indicates caution should be taken with this action</td>
</tr>
<tr>
<td><button type="button" class="btn btn-danger">Danger</button></td>
<td><code>btn btn-danger</code></td>
<td>Indicates a dangerous or potentially negative action</td>
</tr>
<tr>
<td><button type="button" class="btn btn-inverse">Inverse</button></td>
<td><code>btn btn-inverse</code></td>
<td>Alternate dark gray button, not tied to a semantic action or use</td>
</tr>
<tr>
<td><button type="button" class="btn btn-link">Link</button></td>
<td><code>btn btn-link</code></td>
<td>Deemphasize a button by making it look like a link while maintaining button behavior</td>
</tr>
</tbody>
</table>
<div class="bs-docs-example">
<div class="dropdown clearfix">
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block; position: static; margin-bottom: 5px; *width: 180px;">
<li><a tabindex="-1" href="#">Action</a></li>
<li><a tabindex="-1" href="#">Another action</a></li>
<li><a tabindex="-1" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Separated link</a></li>
</ul>
</div>
</div>
<div class="bs-docs-example">
<div class="pagination pagination-centered">
<ul>
<li class="disabled"><a href="#">«</a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="bootstrap/docs/assets/js/bootstrap-tab.js"></script>
<!-- Footer
================================================== -->
<footer class="footer">
<div class="container">
<div class="row">
<div class="span12">
<p>Experiment. Built by a <a href="http://precious-forever.com">precious</a> by <a href="http://twitter.com/rockitbaby/">Michael Schieben</a>.</p>
</div>
</div>
</div>
</footer>
</body>
</html>