-
Notifications
You must be signed in to change notification settings - Fork 36
/
styleguide.html
executable file
·319 lines (319 loc) · 13.6 KB
/
styleguide.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>spaceBase Style Guide</title>
<link href="stylesheets/application.css" media="all" rel="stylesheet" type="text/css" />
<link href="stylesheets/styleguide.css" media="all" rel="stylesheet" type="text/css">
</head>
<body>
<div class="site-wrapper">
<div class="island text-center">
<h1>Style Guide</h1>
</div>
<div class="sg-landmark">
<h2 class="sg-heading">Colors</h2>
<ul class="h-list sg-colors">
<li>
<span class="sg-swatch"></span>
<span class="sg-label">$black</span>
</li>
<li>
<span class="sg-swatch"></span>
<span class="sg-label">$gray-dark</span>
</li>
<li>
<span class="sg-swatch"></span>
<span class="sg-label">$gray</span>
</li>
<li>
<span class="sg-swatch"></span>
<span class="sg-label">$gray-light</span>
</li>
<li>
<span class="sg-swatch"></span>
<span class="sg-label">$white</span>
</li>
<li>
<span class="sg-swatch"></span>
<span class="sg-label">$primary</span>
</li>
<li>
<span class="sg-swatch"></span>
<span class="sg-label">$secondary</span>
</li>
<li>
<span class="sg-swatch"></span>
<span class="sg-label">$tertiary</span>
</li>
<li>
<span class="sg-swatch"></span>
<span class="sg-label">$quaternary</span>
</li>
</ul>
</div>
<div class="sg-landmark">
<h2 class="sg-heading">Typography</h2>
<div class="landmark">
<h1>h1.Heading 1</h1>
<h2>h2.Heading 2</h2>
<h3>h3.Heading 3</h3>
<h4>h4.Heading 4</h4>
<h5>h5.Heading 5</h5>
<h6>h6.Heading 6</h6>
</div>
<div class="grid-wrapper">
<div class="grid lap-one-third">
<h3 class="sg-heading">Unordered List</h3>
<ul>
<li>list item 1</li>
<li>list item 1
<ul>
<li>list item 2</li>
<li>list item 2
<ul>
<li>list item 3</li>
<li>list item 3</li>
</ul>
</li>
<li>list item 2</li>
<li>list item 2</li>
</ul>
</li>
<li>list item 1</li>
<li>list item 1</li>
</ul>
</div>
<div class="grid lap-one-third">
<h3 class="sg-heading">Ordered List</h3>
<ol>
<li>list item 1</li>
<li>list item 1
<ol>
<li>list item 2</li>
<li>list item 2
<ol>
<li>list item 3</li>
<li>list item 3</li>
</ol>
</li>
<li>list item 2</li>
<li>list item 2</li>
</ol>
</li>
<li>list item 1</li>
<li>list item 1</li>
</ol>
</div>
<div class="grid lap-one-third">
<h3 class="sg-heading">Definition List</h3>
<dl>
<dt>Description name</dt>
<dd>Description value</dd>
<dt>Description name</dt>
<dd>Description value</dd>
<dd>Description value</dd>
<dt>Description name</dt>
<dt>Description name</dt>
<dd>Description value</dd>
</dl>
</div>
</div>
<h3 class="sg-heading">Table</h3>
<table>
<thead>
<tr>
<th>Table Heading 1</th>
<th>Table Heading 2</th>
<th>Table Heading 3</th>
<th>Table Heading 3</th>
<th>Table Heading 4</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Table Footer 1</td>
<td>Table Footer 2</td>
<td>Table Footer 3</td>
<td>Table Footer 3</td>
<td>Table Footer 4</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Table Cell 1</td>
<td>Table Cell 2</td>
<td>Table Cell 3</td>
<td>Table Cell 4</td>
<td>Table Cell 5</td>
</tr>
<tr>
<td>Table Cell 1</td>
<td>Table Cell 2</td>
<td>Table Cell 3</td>
<td>Table Cell 4</td>
<td>Table Cell 5</td>
</tr>
<tr>
<td>Table Cell 1</td>
<td>Table Cell 2</td>
<td>Table Cell 3</td>
<td>Table Cell 4</td>
<td>Table Cell 5</td>
</tr>
<tr>
<td>Table Cell 1</td>
<td>Table Cell 2</td>
<td>Table Cell 3</td>
<td>Table Cell 4</td>
<td>Table Cell 5</td>
</tr>
</tbody>
</table>
</div>
<div class="sg-landmark">
<h2 class="sg-heading">Sample Content</h2>
<p>Lorem ipsum dolor sit amet, <a href="#">consectetur adipisicing elit</a>, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<blockquote>
<p>Some sort of famous witty quote marked up with a <blockquote> and a child <p> element.</p>
</blockquote>
<ul>
<li>Superscript item<sup>sup</sup></li>
<li>Subscript item<sub>sub</sub></li>
<li><small>Small text for fine print.</small></li>
</ul>
<p><strong>Lorem ipsum</strong> dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.</p>
</div>
<div class="sg-landmark">
<h2 class="sg-heading">Buttons</h2>
<div class="grid-wrapper">
<div class="grid lap-one-half">
<p><input class="btn" type="button" value="Input type button"></p>
<p><input class="btn" type="submit" value="Input type submit"></p>
<p><input class="btn" type="submit" value="Input type submit disabled" disabled></p>
<p><a class="btn">Link type button</a></p>
</div>
<div class="grid lap-one-half">
<p><button class="btn" type="button">Button type button</button></p>
<p><button class="btn" type="submit">Button type submit</button></p>
<p><button class="btn" type="button" disabled>Button type button disabled</button></p>
</div>
</div>
</div>
<div class="sg-landmark">
<h2 class="sg-heading">Form Fields</h2>
<form>
<div class="grid-wrapper">
<div class="grid lap-one-third">
<div class="form-group">
<label for="text1">Text Input</label>
<input type="text" placeholder="Text Input" id="text1" class="form-control">
</div>
<div class="form-group">
<label for="text2">Readonly Text Input</label>
<input type="text" placeholder="Readonly Text Input" id="text2" readonly class="form-control">
</div>
<div class="form-group">
<label for="text3">Disabled Text Input</label>
<input type="text" placeholder="Disabled Text Input" id="text3" disabled class="form-control">
</div>
<div class="form-group has-error">
<label class="error">Error Input</label>
<input type="text" placeholder="Text Input" id="error" class="form-control">
</div>
<div class="form-group has-success">
<label class="success">Valid</label>
<input type="text" placeholder="Text Input" id="success" class="form-control">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" placeholder="Type your Password" id="password" class="form-control">
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" placeholder="[email protected]" id="email" class="form-control">
</div>
<div class="form-group">
<label for="search">Search</label>
<input type="search" placeholder="Enter Search Term" id="search" class="form-control">
</div>
<div class="form-group">
<label for="text">Number Input</label>
<input type="number" pattern="[0-9]*" placeholder="Enter a Number" id="text" class="form-control">
</div>
</div>
<div class="grid lap-one-third">
<div class="form-group">
<label for="textarea1">Textarea</label>
<textarea placeholder="Enter your message here" cols="40" rows="3" id="textarea1" class="form-control"></textarea>
</div>
<div class="form-group">
<label for="textarea2">Readonly Textarea</label>
<textarea placeholder="Readonly message" cols="40" rows="3" id="textarea2" readonly class="form-control"></textarea>
</div>
<div class="form-group">
<label for="textarea3">Disabled Textarea</label>
<textarea placeholder="Disabled message" cols="40" rows="3" id="textarea3" disabled class="form-control"></textarea>
</div>
<div class="form-group">
<label for="select1">Select</label>
<select id="select1" class="form-control">
<optgroup label="Option Group">
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
</optgroup>
</select>
</div>
<div class="form-group">
<label for="select2">Disabled Select</label>
<select id="select2" disabled class="form-control">
<option>Option One</option>
<option>Option Two</option>
</select>
</div>
<div class="form-group">
<label for="multi-select">Multiple Select</label>
<select id="multi-select" multiple size="4" class="form-control">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
<option>Option 5</option>
<option>Option 6</option>
</select>
</div>
</div>
<div class="grid lap-one-third">
<div class="form-group">
<label for="file">File input</label>
<input class="form-control-file" type="file" id="file">
</div>
<fieldset class="form-group">
<legend>Checkbox</legend>fieldset
<div class="checkbox"><label for="checkbox1"><input type="checkbox" checked="checked" name="checkbox" id="checkbox1"> Choice A</label></div>
<div class="checkbox"><label for="checkbox2"><input type="checkbox" name="checkbox" id="checkbox2"> Choice B</label></div>
<div class="checkbox"><label for="checkbox3"><input type="checkbox" name="checkbox" id="checkbox3"> Choice C</label></div>
<div class="checkbox"><label for="checkbox4"><input type="checkbox" name="checkbox" id="checkbox4" disabled> Choice Disabled</label></div>
<div class="checkbox has-error"><label for="checkbox5"><input type="checkbox" name="checkbox" id="checkbox5"> Choice Error</label></div>
<div class="checkbox has-success"><label for="checkbox6"><input type="checkbox" name="checkbox" id="checkbox6"> Choice Valid</label></div>
</fieldset>
<fieldset class="form-group">
<legend>Radio</legend>
<div class="radio"><label for="radio1"><input type="radio" checked="checked" name="radio" id="radio1" value="option 1"> Option 1</label></div>
<div class="radio"><label for="radio2"><input type="radio" name="radio" id="radio2" value="option 2"> Option 2</label></div>
<div class="radio"><label for="radio3"><input type="radio" name="radio" id="radio3" value="option 3"> Option 3</label></div>
<div class="radio"><label for="radio4"><input type="radio" name="radio" id="radio4" value="option disabled" disabled> Option Disabled</label></div>
<div class="radio has-error"><label for="radio5"><input type="radio" name="radio" id="radio5" value="option error"> Option Error</label></div>
<div class="radio has-success"><label for="radio6"><input type="radio" name="radio" id="radio6" value="option valid"> Option Valid</label></div>
</fieldset>
</div>
</div>
</form>
</div>
</div>
</body>
</html>