-
Notifications
You must be signed in to change notification settings - Fork 3
/
forms.html
174 lines (154 loc) · 5.27 KB
/
forms.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>mobiStyle</title>
<link href='http://fonts.googleapis.com/css?family=Roboto:100,300,300italic,500|Electrolize' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/grid.css" />
<link rel="stylesheet" href="css/mobi.css" />
</head>
<body>
<img id="mg-imgBG" src="img/Avenger-blur.png" />
<div id="mg-scanlineBG"></div>
<img id="mg-gridBG" src="img/new-dot.png" alt="" />
<div id="mg-dotBG"></div>
<section id="mg-wrapper">
<div class="mainContent">
<div class="mg-panel">
<h1>Forms & Input</h1>
<p>These are the various styles applied to form elements. If you want to use the "inline label", you will either need to use the minified mobiStyle, or include the form library.</p>
<form>
<fieldset>
<legend>Legend</legend>
<label for="text_field">Text Field:
<input type="text" id="text_field" />
</label>
<label for="text_field2" class="mg-inline">
<span class="mg-label">Text Field w/ inline label:</span>
<input type="text" id="text_field" />
</label>
<pre><code>
<label for="text_field2" class="mg-inline">
<span class="mg-label">Text Field w/ inline label:</span>
<input type="text" id="text_field" />
</label>
</code></pre>
<label for="text_field_disabled">Disabled Text Field:
<input type="text" id="text_field_disabled" disabled value="I'm disabled" />
</label>
<label for="text_field_readonly">Readonly Text Field:
<input type="text" id="text_field_readonly" readonly value="I'm readonly" />
</label>
<label for="text_area">Text Area:
<textarea id="text_area"></textarea>
</label>
<label for="text_area_disabled">Disabled Text Area:
<textarea id="text_area_disabled" disabled>I'm disabled</textarea>
</label>
<label for="text_area">Readonly Text Area:
<textarea id="text_area" readonly>I'm readonly</textarea>
</label>
<label for="select_element">Select Element:
<select id="select_element">
<optgroup label="Option Group 1">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
</optgroup>
<optgroup label="Option Group 2">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3" disabled>Disabled Option</option>
</optgroup>
</select>
</label>
<label for="select_element_disabled">Disabled Select Element:
<select id="select_element_disabled" disabled>
<option value="2">This option should not even be seen</option>
</select>
</label>
Radio Buttons
<ul class="mg-radio">
<li>
<label>
<input type="radio" class="radio" name="radio_button" value="radio_1" />
<span>Radio 1</span>
</label>
</li>
<li>
<label>
<input type="radio" class="radio" name="radio_button" value="radio_2" />
<span>Radio 2</span>
</label>
</li>
<li>
<label>
<input type="radio" class="radio" name="radio_button" value="radio_3" />
<span>Radio 3</span>
</label>
</li>
<li>
<label>
<input type="radio" class="radio" name="radio_button" value="radio_4" disabled />
<span>Radio Disabled</span>
</label>
</li>
</ul>
Checkboxes:
<ul class="mg-checkbox">
<li>
<label>
<input type="checkbox" class="checkbox" name="checkboxes" value="check_1" />
<span>Checkbox 1</span>
</label>
</li>
<li>
<label>
<input type="checkbox" class="checkbox" name="checkboxes" value="check_2" />
<span>Checkbox 2</span>
</label>
</li>
<li>
<label>
<input type="checkbox" class="checkbox" name="checkboxes" value="check_3" />
<span>Checkbox 3</span>
</label>
</li>
<li>
<label>
<input type="checkbox" class="checkbox" name="checkboxes" value="check_4" disabled /> <span>Checkbox Disabled</span>
</label>
</li>
</ul>
<label for="password">Password:
<input type="password" class="password" id="password" />
</label>
<label for="file">File Input:
<input type="file" class="file" id="file" />
</label>
</fieldset>
</form>
</div>
</div>
<div class="mg-sidebar">
<div class="mg-panel">
<h3>Nav</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="text.html">Text & Typography</a></li>
<li><a href="links.html">Links & Navigation</a></li>
<li><a href="media.html">Media</a></li>
<li><a href="lists.html">Lists & Tables</a></li>
<li class="active"><b>Forms & Input</b></li>
<li><a href="messages.html">Messages & Notifications</a></li>
</ul>
</div>
</div>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.3.0/snap.svg-min.js"></script>
<script src="scripts/min/jquery.mobiStyle-min.js"></script>
<script>
$(document).mobiStyle();
</script>
</body>
</html>