-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_styleguide_base.html
832 lines (753 loc) · 42.6 KB
/
_styleguide_base.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
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
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
<!doctype html>
<html class="no-js" lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=9;IE=10;IE=Edge,chrome=1"/>
<title>Styleguide : MountCSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content=""/>
<link rel="stylesheet" href="css/style.css">
<script src="js/vendors/modernizr.js"></script>
<style>
.demo_grid {
line-height: 3rem;
text-align: center;
background-color: Silver;
/* font-weight: bold; */
color: white;
margin-bottom: 1.6rem;
}
.demo_section {
display: block;
text-transform: uppercase;
font-size: 2rem;
color: black;
text-align: center;
margin-top: 5rem;
margin-bottom: 2rem;
border-bottom: 1px solid #000;
}
</style>
</head>
<body>
<div class="wrap" id="top" role="document">
<!--
********************
GRID
********************
-->
<div class="container">
<div class="row">
<div class="col_12">
<h1 class="demo_section">Grid :</h1>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col_12">
<div class="demo_grid">
col_12
</div>
</div>
</div>
<div class="row">
<div class="col_6">
<div class="demo_grid">
col_6
</div>
</div>
<div class="col_6">
<div class="demo_grid">
col_6
</div>
</div>
</div>
<div class="row">
<div class="col_12 col_md_6">
<div class="demo_grid">
col_12 col_md_6
</div>
</div>
<div class="col_12 col_md_6">
<div class="demo_grid">
col_12 col_md_6
</div>
</div>
</div>
<div class="row">
<div class="col_md_6 push_md_3">
<div class="demo_grid">
col_md_6 push_md_3
</div>
</div>
</div>
</div>
<div class="container container_s">
<div class="row">
<div class="col_12">
<div class="demo_grid">
<h1>A small container</h1>
</div>
</div>
</div>
</div>
<div class="container container_xs">
<div class="row">
<div class="col_12">
<div class="demo_grid">
<h1>A xsmall container</h1>
</div>
</div>
</div>
</div>
<!--
********************
Typography
********************
-->
<div class="container">
<div class="row">
<div class="col_12">
<div class="row">
<div class="col_12">
<h1 class="demo_section">Headers :</h1>
</div>
<div class="col_12">
<h1>Title h1</h1>
<h2>Title h2</h2>
<h3>Title h3</h3>
<h4>Title h4</h4>
<h5>Title h5</h5>
<h6>Title h6</h6>
<p class="title">A classic p tag using htitle styles </p>
</div>
<div class="col_12">
<h1 class="demo_section">Paragraphs :</h1>
</div>
<div class="col_12">
<div class="row">
<div class="col_12">
<p>Classic : Lorem ipsum dolor sit amet consectetur adipisicing elit. Nesciunt, eligendi facere quas repellat unde quae eveniet! Fugiat consequuntur, voluptatibus tempora, magni fugit saepe quis tempore nesciunt illum facilis harum. Facilis?</p>
<p class="text__primary">Use text_primary class : Lorem ipsum dolor sit amet consectetur adipisicing elit. Nesciunt, eligendi facere quas repellat unde quae eveniet! Fugiat consequuntur, voluptatibus tempora, magni fugit saepe quis tempore nesciunt illum facilis harum. Facilis?</p>
<p class="text__secondary">Use text_secondary class : Nesciunt, eligendi facere quas repellat unde quae eveniet! Fugiat consequuntur, voluptatibus tempora, magni fugit saepe quis tempore nesciunt illum facilis harum. Facilis?</p>
<p class="text__tertiary">Use text_tertiary class : Fugiat consequuntur, voluptatibus tempora, magni fugit saepe quis tempore nesciunt illum facilis harum. Facilis?</p>
<p class="text__light">Use text__light class : Fugiat consequuntur, voluptatibus tempora, magni fugit saepe quis tempore nesciunt illum facilis harum. Facilis?</p>
<p class="text__dark">Use text__dark class : Fugiat consequuntur, voluptatibus tempora, magni fugit saepe quis tempore nesciunt illum facilis harum. Facilis?</p>
<p class="text__valid">Use text__valid class : Fugiat consequuntur, voluptatibus tempora, magni fugit saepe quis tempore nesciunt illum facilis harum. Facilis?</p>
<p class="text__error">Use text__error class : Fugiat consequuntur, voluptatibus tempora, magni fugit saepe quis tempore nesciunt illum facilis harum. Facilis?</p>
<p class="text__info">Use text__info class : Fugiat consequuntur, voluptatibus tempora, magni fugit saepe quis tempore nesciunt illum facilis harum. Facilis?</p>
<div style="padding: 1rem;margin: 1rem auto; background:black;">
<p class="text__inverse">Use text__inverse class : Fugiat consequuntur, voluptatibus tempora, magni fugit saepe quis tempore nesciunt illum facilis harum. Facilis?</p>
</div>
<p><a href="#!">This is a text link</a>.</p>
<p><strong>Strong is used to indicate strong importance.</strong></p>
<p><em>This text has added emphasis.</em></p>
<p>The <b>b element</b> is stylistically different text from normal text, without any special importance.</p>
<p>The <i>i element</i> is text that is offset from the normal text.</p>
<p>The <u>u element</u> is text with an unarticulated, though explicitly rendered, non-textual annotation.</p>
<p><del>This text is deleted</del> and <ins>This text is inserted</ins>.</p>
<p><s>This text has a strikethrough</s>.</p>
<p>Superscript<sup>®</sup>.</p>
<p>Subscript for things like H<sub>2</sub>O.</p>
<p><small>This small text is small for for fine print, etc.</small></p>
<p>Abbreviation: <abbr title="HyperText Markup Language">HTML</abbr></p>
<p><q cite="https://developer.mozilla.org/en-US/docs/HTML/Element/q">This text is a short inline quotation.</q></p>
<p><cite>This is a citation.</cite></p>
<p>The <dfn>dfn element</dfn> indicates a definition.</p>
<p>The <mark>mark element</mark> indicates a highlight.</p>
<p>The <var>variable element</var>, such as <var>x</var> = <var>y</var>.</p>
<p>The time element: <time datetime="2013-04-06T12:32+00:00">2 weeks ago</time></p>
</div>
<div class="col_12">
<h1 class="demo_section">Links :</h1>
</div>
<div class="col_6">
<a class="link__primary" href="#">link_primary</a>
<a class="link__secondary" href="#">link_secondary</a>
<a class="link__tertiary" href="#">link_tertiary</a>
<a class="link__light" href="#">link_light</a>
<a class="link__dark" href="#">link_dark</a>
<div style="padding: 1rem;margin: 1rem auto; background:black;">
<a class="link__inverse" href="#">link__inverse</a>
</div>
</div>
</div>
</div>
<div class="col_12">
<h1 class="demo_section">Lists :</h1>
</div>
<div class="col_12 col_md_6">
<ul>
<li>Unordered Item 1</li>
<li>Unordered Item 2</li>
<li>Unordered Item 3
<ul>
<li>Unordered Item 3.1</li>
<li>Unordered Item 3.2
<ul>
<li>Unordered Item 3.2.1</li>
<li>Unordered Item 3.2.2</li>
</ul>
</li>
<li>Unordered Item 3.3</li>
</ul>
</li>
<li>Unordered Item 4</li>
<li>
<p>
Unordered Item in a p tag
</p>
</li>
<li>
<a href="#">
Unordered Item in a a tag
</a>
</li>
<li>
<p>
Very long item : lorem, ipsum dolor sit amet consectetur adipisicing elit. Quasi, laboriosam. Ipsum dolor sit amet consectetur adipisicing elit. Quasi, laboriosam.
</p>
</li>
</ul>
</div>
<div class="col_12 col_md_6">
<ol>
<li>Ordered Item 1</li>
<li>Ordered Item 2</li>
<li>Ordered Item 3
<ul>
<li>Ordered Item 3.1</li>
<li>Ordered Item 3.2
<ul>
<li>Ordered Item 3.2.1</li>
<li>Ordered Item 3.2.2</li>
</ul>
</li>
<li>Ordered Item 3.3</li>
</ul>
</li>
<li>Ordered Item 4</li>
<li>
<p>
Ordered Item in a p tag
</p>
</li>
<li>
<a href="#">
Ordered Item in a a tag
</a>
</li>
<li>
<p>
Very long Ordered item : lorem, ipsum dolor sit amet consectetur adipisicing elit. Quasi, laboriosam. Ipsum dolor sit amet consectetur adipisicing elit. Quasi, laboriosam.
</p>
</li>
</ol>
</div>
<hr>
<ul class="list__inline">
<li class="list__inline__item">List inline item 1</li>
<li class="list__inline__item">List inline item 2</li>
<li class="list__inline__item">List inline item 3</li>
<li class="list__inline__item">List inline items are left centered by default</li>
</ul>
<ul class="list__inline center">
<li class="list__inline__item">List inline item center item</li>
<li class="list__inline__item">List inline item</li>
<li class="list__inline__item">List inline item</li>
</ul>
<ul class="list__inline right">
<li class="list__inline__item">List inline item right item</li>
<li class="list__inline__item">List inline item</li>
<li class="list__inline__item">List inline item</li>
</ul>
<hr>
<ul class="list__inline center__md">
<li class="list__inline__item">List inline center from $tablet</li>
<li class="list__inline__item">List inline item</li>
<li class="list__inline__item">List inline item</li>
</ul>
<ul class="list__inline center__lg">
<li class="list__inline__item">List inline center from $desktop</li>
<li class="list__inline__item">List inline item center 2</li>
<li class="list__inline__item">List inline item center 3</li>
</ul>
<ul class="list__inline right__md">
<li class="list__inline__item">List inline right from $tablet</li>
<li class="list__inline__item">List inline item right 2</li>
<li class="list__inline__item">List inline item right 3</li>
</ul>
<ul class="list__inline right__lg">
<li class="list__inline__item">List inline right from $desktop</li>
<li class="list__inline__item">List inline item right 2</li>
<li class="list__inline__item">List inline item right 3</li>
</ul>
<div class="col_12">
<h1 class="demo_section">Buttons :</h1>
</div>
<div class="col_12">
<a href="#" class="btn">ahref btn</a>
<a href="#" class="btn btn__primary">A primary ahref btn</a>
<a href="#" class="btn btn__secondary">A secondary ahref btn</a>
<a href="#" class="btn btn__tertiary">A tertiary ahref btn</a>
<a href="#" class="btn btn__light">A light ahref btn</a>
<a href="#" class="btn btn__dark">A dark ahref btn</a>
<div style="display:inline-block;padding: 1rem;margin: 1rem auto; background:black;">
<a href="#" class="btn btn__inverse">A inverse ahref btn</a>
</div>
<br>
<a href="#" class="btn btn__valid">A valid ahref btn</a>
<a href="#" class="btn btn__error">A error ahref btn</a>
<a href="#" class="btn btn__info">A info ahref btn</a>
<br>
<a href="#" class="btn btn__xxl">ahref xxl btn</a>
<a href="#" class="btn btn__xl">ahref xl btn</a>
<a href="#" class="btn">ahref btn</a>
<a href="#" class="btn btn__small">ahref btn small</a>
<a href="#" class="btn btn__xsmall">ahref btn xsmall</a>
<br>
<p class="btn">Classic tag button</p>
<span class="btn">Another classic tag button</span>
<div style="max-width:200px">
<a href="#" class="btn">A long text button just to check the line-height</a>
</div>
<a href="#" class="btn">ahref btn</a>
<a href="#" class="btn btn__primary">A primary ahref btn</a>
<a href="#" class="btn btn__secondary">A secondary ahref btn</a>
<a href="#" class="btn btn__tertiary">A tertiary ahref btn</a>
<div style="display:inline-block;padding: 1rem;margin: 1rem auto; background:black;">
<a href="#" class="btn btn__inverse">A inverse ahref btn</a>
</div>
<a href="#" class="btn btn__outline">ahref btn</a>
<a href="#" class="btn btn__primary btn__outline">A primary ahref btn</a>
<a href="#" class="btn btn__secondary btn__outline">A secondary ahref btn</a>
<a href="#" class="btn btn__tertiary btn__outline">A tertiary ahref btn</a>
<div style="display:inline-block;padding: 1rem;margin: 1rem auto; background:black;">
<a href="#" class="btn btn__inverse btn__outline">A inverse ahref btn</a>
</div>
<button class="btn">A form button</button>
<button class="btn btn__secondary">A form button themed</button>
<p>
A <button class="button__link" onclick="alert('Hello World !')">button link</button> for js behavior.
</p>
<form action="">
<input type="submit" value="Input type submit button">
</form>
<a href="#" class="btn btn__block">Full width button</a>
<a href="#" class="btn btn__block__md">Full width from $tablet button</a>
<a href="#" class="btn btn__block__lg">Full width from $desktop button</a>
<br>
<a href="#" class="btn btn__block sm__only">Full width button below $tablet</a>
<a href="#" class="btn btn__block smd__only">Full width button below $desktop</a>
<br>
<button class="btn">
<svg class="btn__icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 11.522l1.578-1.626 7.734 4.619 13.335-12.526 1.353 1.354-14 18.646z"></path></svg>
A button with an icon before
</button>
<button class="btn">
A form button with an icon after
<svg class="btn__icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 11.522l1.578-1.626 7.734 4.619 13.335-12.526 1.353 1.354-14 18.646z"></path></svg>
</button>
<br>
<button class="btn btn__circular">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 11.522l1.578-1.626 7.734 4.619 13.335-12.526 1.353 1.354-14 18.646z"></path></svg>
</button>
<a href="#" class="btn btn__circular btn__secondary">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 11.522l1.578-1.626 7.734 4.619 13.335-12.526 1.353 1.354-14 18.646z"></path></svg>
</a>
<button class="btn btn__circular btn__tertiary">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 11.522l1.578-1.626 7.734 4.619 13.335-12.526 1.353 1.354-14 18.646z"></path></svg>
</button>
<a href="#" class="btn btn__circular btn__xxl">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 11.522l1.578-1.626 7.734 4.619 13.335-12.526 1.353 1.354-14 18.646z"></path></svg>
</a>
<a href="#" class="btn btn__circular btn__xl">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 11.522l1.578-1.626 7.734 4.619 13.335-12.526 1.353 1.354-14 18.646z"></path></svg>
</a>
<a href="#" class="btn btn__circular btn__small">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 11.522l1.578-1.626 7.734 4.619 13.335-12.526 1.353 1.354-14 18.646z"></path></svg>
</a>
<a href="#" class="btn btn__circular btn__xsmall">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 11.522l1.578-1.626 7.734 4.619 13.335-12.526 1.353 1.354-14 18.646z"></path></svg>
</a>
<div class="btn__group">
<a class="btn" href="#">Button group item</a>
<a class="btn" href="#">Button group item</a>
</div>
<div class="btn__group__md">
<a class="btn" href="#">Button group from $tablet item</a>
<a class="btn" href="#">Button group from $tablet item</a>
</div>
<div class="btn__group__lg">
<a class="btn" href="#">Button group from $desktop item</a>
<a class="btn" href="#">Button group from $desktop item</a>
</div>
</div>
<div class="col_12">
<h1 class="demo_section">Tables :</h1>
</div>
<div class="col_12">
<!-- Tableau simple avec en-tête -->
<p>Table classic :</p>
<table>
<tbody><tr>
<th>Prénom (table unstyled)</th>
<th>Nom</th>
</tr>
<tr>
<td>Jean</td>
<td>Dupont</td>
</tr>
<tr>
<td>Marion</td>
<td>Duval</td>
</tr>
</tbody></table>
<!-- Tableau simple avec en-tête -->
<p>Table basic styled :</p>
<table class="table__basic">
<tbody><tr>
<th>Prénom (table basic)</th>
<th>Nom</th>
</tr>
<tr>
<td>Jean</td>
<td>Dupont</td>
</tr>
<tr>
<td>Marion</td>
<td>Duval</td>
</tr>
</tbody></table>
<p>Table basic hover styled :</p>
<table class="table__basic__hover">
<tbody><tr>
<th>Prénom (table basic)</th>
<th>Nom</th>
</tr>
<tr>
<td>Jean</td>
<td>Dupont</td>
</tr>
<tr>
<td>Marion</td>
<td>Duval</td>
</tr>
</tbody></table>
<!-- Tableau utilisant thead, tfoot, et tbody -->
<table>
<thead>
<tr>
<th>Contenu d'en-tête 1</th>
<th>Contenu d'en-tête 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Contenu interne 1</td>
<td>Contenu interne 2</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Pied de tableau 1</td>
<td>Pied de tableau 2</td>
</tr>
</tfoot>
</table>
<!-- Tableau utilisant colgroup -->
<table>
<colgroup span="4" class="columns"></colgroup>
<tbody><tr>
<th>Pays</th>
<th>Capitales</th>
<th>Population</th>
<th>Langue</th>
</tr>
<tr>
<td>USA</td>
<td>Washington D.C.</td>
<td>309 millions</td>
<td>Anglais</td>
</tr>
<tr>
<td>Suède</td>
<td>Stockholm</td>
<td>9 millions</td>
<td>Suédois</td>
</tr>
</tbody></table>
<!-- Tableau utilisant colgroup et col -->
<table>
<colgroup>
<col class="column1">
<col class="columns2plus3" span="2">
</colgroup>
<tbody><tr>
<th>Citron vert</th>
<th>Citron</th>
<th>Orange</th>
</tr>
<tr>
<td>Vert</td>
<td>Jaune</td>
<td>Orange</td>
</tr>
</tbody></table>
<!-- Tableau simple avec une légende -->
<table>
<caption>Super légende</caption>
<tbody><tr>
<td>Données géniales</td>
</tr>
</tbody></table>
</div>
<div class="col_12">
<h1 class="demo_section">Forms :</h1>
</div>
<div class="col_12">
<form>
<fieldset>
<legend>Classic form, no label</legend>
<div class="form__field">
<input type="email" placeholder="Email">
</div>
<div class="form__field">
<input type="password" placeholder="Password">
</div>
<div class="form__field">
<label for="remember">
<input id="remember" type="checkbox"> Remember me
</label>
</div>
<div class="form__field">
<button type="submit">Sign in</button>
</div>
</fieldset>
</form>
<form>
<fieldset>
<legend>A form with labels</legend>
<div class="form__field">
<label for="email" class="form__field__label">An email</label>
<input id="email" type="email" placeholder="Email">
<span class="form__field__message">This is a required field.</span>
</div>
<div class="form__field">
<label for="password" class="form__field__label">Password</label>
<input id="password" type="password" placeholder="Password">
</div>
<div class="form__field">
<label for="state" class="form__field__label"> State</label>
<select id="state">
<option>AL</option>
<option>CA</option>
<option>IL</option>
</select>
</div>
<div class="form__field">
<input type="email" placeholder="Readonly" readonly>
</div>
</fieldset>
</form>
<form>
<fieldset>
<legend>A form with aligned labels</legend>
<div class="form__field aligned">
<label class="form__field__label" for="email">An email</label> <input id="email" placeholder="Email" type="email"> <span class="form__field__message">This is a required field.</span>
</div>
<div class="form__field aligned">
<label class="form__field__label" for="password">Password</label> <input id="password" placeholder="Password" type="password">
</div>
</fieldset>
</form>
<form>
<fieldset>
<legend>Form states</legend>
<div class="form__field form__field__error">
<label class="form__field__label" for="email">An email</label> <input id="email" placeholder="Email" type="email"> <span class="form__field__message">This is a required field.</span>
</div>
<div class="form__field form__field__valid">
<label class="form__field__label" for="email">An email</label> <input id="email" placeholder="Email" type="email"> <span class="form__field__message">This is a required field.</span>
</div>
</fieldset>
</form>
<form>
<h2>Form Element</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui.</p>
<div class="form__field">
<label for="text_field">Text Field:</label> <input type="text">
</div>
<div class="form__field">
<label for="text_area">Text Area:</label>
<textarea></textarea>
</div>
<div class="form__field">
<label for="select_element">Select Element:</label> <select name="select_element">
<optgroup label="Option Group 1">
<option value="1">
Option 1
</option>
<option value="2">
Option 2
</option>
<option value="3">
Option 3
</option>
</optgroup>
<optgroup label="Option Group 2">
<option value="1">
Option 1
</option>
<option value="2">
Option 2
</option>
<option value="3">
Option 3
</option>
</optgroup>
</select>
</div>
<div class="form__field">
<label for="radio_buttons">Radio Buttons:</label>
<label>
<input class="radio" name="radio_button" type="radio" value="radio_1">
Radio 1
</label>
<label>
<input class="radio" name="radio_button" type="radio" value="radio_2">
Radio 2
</label>
<label>
<input class="radio" name="radio_button" type="radio" value="radio_3">
Radio 3
</label>
</div>
<div class="form__field">
<label for="checkboxes">Checkboxes:</label>
<label>
<input class="checkbox" name="checkboxes" type="checkbox" value="check_1">
Checkbox 1
</label>
<label>
<input class="checkbox" name="checkboxes" type="checkbox" value="check_2">
Checkbox 2
</label>
<label>
<input class="checkbox" name="checkboxes" type="checkbox" value="check_3"> Checkbox 3
</label>
</div>
<div class="form__field">
<label for="password">Password:</label> <input class="password" name="password" type="password">
</div>
<div class="form__field">
<label for="file">File Input:</label> <input class="file" name="file" type="file">
</div>
<div class="form__field">
<input type="submit" value="Submit">
</div>
</form>
<form action="#">
<div class="form__field">
<input type="checkbox" class="checkbox" id="c1">
<label for="c1">Custom checkbox</label>
<input type="checkbox" class="checkbox" checked="checked" id="c2">
<label for="c2">Custom checkbox checked</label>
<input type="checkbox" class="checkbox" checked="checked" id="c3" disabled="disabled">
<label for="c3">Custom checkbox checked disabled</label>
<input type="checkbox" class="checkbox" id="c3" disabled="disabled">
<label for="c4">Custom checkbox disabled</label>
</div>
<div class="form__field">
<input type="radio" class="radio" name="radio" id="r1">
<label for="r1">Custom radio</label>
<input type="radio" class="radio" name="radio" id="r2" checked="checked">
<label for="r2">radio checked</label>
<input type="radio" class="radio" name="radio" id="r3" checked="checked" disabled="disabled">
<label for="r3">radio checked disabled</label>
<input type="radio" class="radio" name="radio" id="r4" disabled="disabled">
<label for="r4">radio disabled</label>
</div>
<div class="form__field">
<input type="checkbox" class="switch" id="switch">
<label for="switch" class="label">slide to unlock</label>
</div>
</form>
<form>
<h2>Form Structure and alignement</h2>
<div class="row">
<div class="col_12 col_md_6">
<div class="form__field">
<label for="text" class="form__field__label">Name :</label>
<input id="text" type="text" placeholder="John">
</div>
</div>
<div class="col_12 col_md_6">
<div class="form__field">
<label for="email" class="form__field__label">email</label>
<input id="email" type="email" placeholder="[email protected]">
</div>
</div>
</div>
<div class="row">
<div class="col_12 col_md_4">
<div class="form__field">
<label for="text" class="form__field__label">First name :</label>
<input id="text" type="text" placeholder="John">
</div>
</div>
<div class="col_12 col_md_4">
<div class="form__field">
<label for="text" class="form__field__label">Name :</label>
<input id="text" type="text" placeholder="Doe">
</div>
</div>
<div class="col_12 col_md_4">
<div class="form__field">
<label for="email" class="form__field__label">email</label>
<input id="email" type="email" placeholder="[email protected]">
</div>
</div>
</div>
<div class="row">
<div class="col_12">
<div class="form__field form__field__right">
<label for="rememberight">
<input id="rememberight" type="checkbox"> Remember me (right aligned)
</label>
</div>
<div class="form__field form__field__center">
<label for="remembercenter">
<input id="remembercenter" type="checkbox"> Remember me (center aligned)
</label>
</div>
<div class="form__field form__field__left">
<label for="rememberleft">
<input id="rememberleft" type="checkbox"> Remember me (left aligned)
</label>
</div>
<div class="form__field form__field__left">
<button type="submit" style="max-width:250px;">center submit</button>
</div>
<div class="form__field form__field__center">
<button type="submit" style="max-width:250px;">center submit</button>
</div>
<div class="form__field form__field__right">
<button type="submit" style="max-width:250px;">center submit</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.3.1.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/script.js"></script>
</body>
</html>