-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleguide.php
525 lines (454 loc) · 15.4 KB
/
styleguide.php
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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
<?php /* Template Name: Style Guide */ ?>
<?php get_header(); ?>
<?php do_action( 'themerbasic_before_content' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="container">
<div>
<h1 id="h1-heading">h1 heading</h1>
<p>Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis
vestibulum.</p>
<h2 id="h2-heading">h2 heading</h2>
<p>Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis
vestibulum.</p>
<h3 id="h3-heading">h3 heading</h3>
<p>Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis
vestibulum.</p>
<h4 id="h4-heading">h4 heading</h4>
<p>Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis
vestibulum.</p>
<h5 id="h5-heading">h5 heading</h5>
<p>Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis
vestibulum.</p>
<h6 id="h6-heading">h6 heading</h6>
<p>Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis
vestibulum.</p>
</div>
<hr>
<h2>Paragraphs</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In imperdiet dignissim sapien, ut vehicula dui
tempus
ullamcorper. Donec porta sed massa sit amet mollis. Aenean felis urna, malesuada nec magna et, fringilla
placerat nisl. Duis et lorem et lectus pharetra aliquet. Nulla ornare arcu eget ligula dignissim egestas.
Cras
congue, tortor non volutpat pretium, lectus nulla tincidunt enim, sit amet varius velit felis a felis.
Praesent
sit amet diam sed urna eleifend porta non eget felis.</p>
<p>Vivamus aliquet tortor augue, et luctus mi tempus vel. In accumsan sagittis nunc eu aliquet. Quisque cursus
nisl
vitae suscipit malesuada. Aliquam erat volutpat. Aliquam erat volutpat. Vivamus ac arcu ut urna consequat
scelerisque. Aliquam turpis nunc, malesuada at facilisis id, commodo et lacus. Ut in odio eget neque
efficitur
vulputate at a sem. Maecenas varius, lacus vel feugiat luctus, nibh risus pulvinar lacus, nec pharetra dolor
ipsum at arcu. Aenean convallis metus quis lacus mattis, nec ullamcorper justo posuere. Nam non gravida sem.
Pellentesque tristique dapibus nisl quis consectetur. Aenean auctor cursus neque, ac luctus mi tempor
id.</p>
<hr>
<div>
<h2>Lists</h2>
<ul>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit
<ul>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
<li>Vestibulum laoreet porttitor sem</li>
<li>Ac tristique libero volutpat at</li>
</ul>
</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ul>
<ol>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ol>
</div>
<dl>
<dt>Description lists</dt>
<dd>A description list is perfect for defining terms.</dd>
<dt>Euismod</dt>
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem.</dd>
<dd>Donec id elit non mi porta gravida at eget metus.</dd>
<dt>Malesuada porta</dt>
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
</dl>
<hr>
<h2>Tables</h2>
<h5>Basic Table styling</h5>
<table>
<caption>This is an example table, and this is its caption to describe the contents.</caption>
<thead>
<tr>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
</tbody>
</table>
<h5>Add table-wide class to make table full width</h5>
<table class="table-wide">
<thead>
<tr>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
</tbody>
</table>
<h5>Add table-border class to add borders</h5>
<table class="table-border">
<thead>
<tr>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
</tr>
</thead>
<tbody>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
</tbody>
</table>
<h5>Add table-stripe class to color alt rows</h5>
<table class="table-stripe">
<thead>
<tr>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
</tr>
</thead>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
</table>
<hr>
<h2>Address</h2>
<address>
<strong>Twitter, Inc.</strong><br>
1355 Market St, Suite 900<br>
San Francisco, CA 94103<br>
<abbr title="Phone">P:</abbr> (123) 456-7890
</address>
<h2>Blockquote</h2>
<pre class="well"><code>
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
<blockquote class="blockquote">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
</code></pre>
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
<blockquote class="blockquote">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
<hr>
<h2>Form</h2>
<form class="bd-example">
<fieldset>
<legend>Example legend</legend>
<p>
<label for="input">Example input</label>
<input type="text" id="input" placeholder="Example input">
<small>helper text</small>
</p>
<p>
<label for="select">Example select</label>
<select id="select">
<option value="">Choose...</option>
<optgroup label="Option group 1">
<option value="">Option 1</option>
<option value="">Option 2</option>
<option value="">Option 3</option>
</optgroup>
<optgroup label="Option group 2">
<option value="">Option 4</option>
<option value="">Option 5</option>
<option value="">Option 6</option>
</optgroup>
</select>
</p>
<p>
<label>
<input type="checkbox" value="">
Check this checkbox
</label>
</p>
<p>
<label>
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked="">
Option one is this and that
</label>
<label>
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Option two is something else that's also super long to demonstrate the wrapping of these fancy
form controls.
</label>
<label>
<input type="radio" name="optionsRadios" id="optionsRadios3" value="option3" disabled="">
Option three is disabled
</label>
</p>
<p>
<div>
<label>
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked="">
Option one is this and that
</label>
</div>
<div>
<label>
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Option two
</label>
</div>
<div>
<label>
<input type="radio" name="optionsRadios" id="optionsRadios3" value="option3" disabled="">
Option three is disabled
</label>
</div>
</p>
<p>
<label for="textarea">Example textarea</label>
<textarea id="textarea" rows="3"></textarea>
</p>
<p>
<label for="time">Example temporal</label>
<input type="datetime-local" id="time">
</p>
<p>
<label for="output">Example output</label>
<output name="result" id="output">100</output>
</p>
<div class="form-group">
<label for="output">Example inline</label>
<div class="form-inline">
<label for="input-inline-1">First Name:</label>
<input type="text" id="input-inline-1" placeholder="Example input">
<label for="input-inline-2">Last Name</label>
<input type="text" id="input-inline-2" placeholder="Example input">
<input type="text" id="input-inline-3" placeholder="Example input">
</div>
</div>
<h2>Buttons</h2>
<p>
<button type="submit">Button submit</button>
<input type="submit" value="Input submit button">
<input type="button" value="Input button">
<button type="submit" disabled="">Disabled</button>
</p>
<h5>Colors</h5>
<p>
<button type="button">Default</button>
<button type="button" class="button-blue">button-blue</button>
<button type="button" class="button-red">button-red</button>
<button type="button" class="button-green">button-green</button>
<button type="button" class="button-orange">button-orange</button>
<button type="button" class="button-yellow">button-yellow</button>
<button type="button" class="button-teal">button-teal</button>
<button type="button" class="button-pink">button-pink</button>
<button type="button" class="button-purple">button-purple</button>
<button type="button" class="button-gray">button-gray</button>
<button type="button" class="button-white">button-white</button>
<button type="button" class="button-black">button-black</button>
</p>
<h5>Outline</h5>
<p>
<button type="button" class="button-outline">button-outline</button>
<button type="button" class="button-blue-outline">button-blue-outline</button>
<button type="button" class="button-red-outline">button-red-outline</button>
<button type="button" class="button-green-outline">button-green-outline</button>
<button type="button" class="button-orange-outline">button-orange-outline</button>
<button type="button" class="button-yellow-outline">button-yellow-outline</button>
<button type="button" class="button-teal-outline">button-teal-outline</button>
<button type="button" class="button-pink-outline">button-pink-outline</button>
<button type="button" class="button-purple-outline">button-purple-outline</button>
</p>
<h5>Shapes</h5>
<p>
<button type="button">Default</button>
<button type="button" class="button-round">button-round</button>
<button type="button" class="button-rectangle">button-rectangle</button>
<button type="button" class="button-wide">button-wide</button>
<button type="button" class="button-extrawide">button-extrawide</button>
<button type="button" class="button-block">button-block</button>
</p>
<h5>Sizes</h5>
<p>
<button type="button" class="button-small">button-small</button>
<button type="button">Default</button>
<button type="button" class="button-large">button-large</button>
</p>
</fieldset>
</form>
<hr>
<h2>Pagination</h2>
<pre class="well"><code>
the_posts_pagination( array(
'prev_text' => '<i class="fa fa-arrow-left"></i> Previous',
'next_text' => 'Next <i class="fa fa-arrow-right"></i>',
) );
</code></pre>
<nav class="navigation pagination" role="navigation">
<h2 class="screen-reader-text">Posts navigation</h2>
<div class="nav-links"><a class="prev page-numbers" href="#"><i class="fa fa-arrow-left"></i> Previous</a>
<a class="page-numbers" href="#">1</a>
<span class="page-numbers dots">…</span>
<a class="page-numbers" href="#">11</a>
<span class="page-numbers current">12</span>
<a class="page-numbers" href="#">13</a>
<span class="page-numbers dots">…</span>
<a class="page-numbers" href="#">22</a>
<a class="next page-numbers" href="#">Next <i class="fa fa-arrow-right"></i></a></div>
</nav>
<hr>
<h2>Alignment</h2>
<p class="text-left">
Add text-left class for Left aligned text.
</p>
<p class="text-center">
Add text-center class for Center aligned text.
</p>
<p class="text-right">
Add text-right class for Right aligned text.
</p>
<p class="text-justify">
Add text-justify class for Justified text.
</p>
<h2>Text Case</h2>
<p>Add text-lowercase to <span class="text-lowercase">display text in all lowercase</span></p>
<p>Add text-uppercase to <span class="text-uppercase">display text in all uppercase</span></p>
<p>Add text-capitalize to <span class="text-capitalize">capitalize the first letter of each word</span></p>
<h2>Text Colors</h2>
<span class="text-black">text-black</span>
<span class="text-white">text-white</span>
<span class="text-gray">text-gray</span>
<span class="text-blue">text-blue</span>
<span class="text-red">text-red</span>
<span class="text-orange">text-orange</span>
<span class="text-yellow">text-yellow</span>
<span class="text-green">text-green</span>
<span class="text-teal">text-teal</span>
<span class="text-pink">text-pink</span>
<span class="text-purple">text-purple</span>
<div class="alert alert-success">
alert alert-success
</div>
<div class="alert alert-danger">
alert alert-danger
</div>
<div class="alert alert-info">
alert alert-info
</div>
<div class="alert alert-warning">
alert alert-warning
</div>
<hr>
<h2>Containers</h2>
<p>
Add class content-container to set a max width.<br>
Only applied when post is not managed by beaver builder.
</p>
<p>
Add class container to set a max width.<br>
Still applied on beaver builder pages.<br>
Use to wrap content in headers and footers or other content outside the beaver builder content.
</p>
</div>
<div class="content-container"><?php the_content() ?></div>
<?php endwhile; ?>
<?php do_action( 'themerbasic_after_content' ); ?>
<?php get_footer(); ?>