-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
175 lines (166 loc) · 5.59 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Form Baseline</title>
<link rel="stylesheet" href="src/baseline.form.css">
</head>
<body>
<main>
<h1>A Baseline set of styles for form controls that's built on the typography baseline</h1>
<h2>A Form and inputs</h2>
<form>
<fieldset>
<legend>Inputs</legend>
<fieldset>
<legend>Text Inputs</legend>
<label for="text">Text</label>
<input type="text" id="text" name="text" placeholder="some text" />
<label for="search">Search</label>
<input type="search" id="search" name="search" placeholder="where is carmen san diego" />
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="hunter2" />
</fieldset>
<fieldset>
<legend>Number Inputs</legend>
<label for="number">Number</label>
<input type="number" id="number" name="number" placeholder="1" min="0" max="1280" />
<label for="range">Range</label>
<input type="range" id="range" name="range" min=0 max=100 step=1 />
</fieldset>
<fieldset>
<legend>Location / contact inputs</legend>
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="[email protected]" />
<label for="url">Url</label>
<input type="url" id="url" name="url" placeholder="www.excite.com" />
<label for="telephone">Telephone</label>
<input type="tel" id="telephone" name="telephone" placeholder="1 867 5309" />
</fieldset>
<fieldset>
<legend>Time Inputs</legend>
<label for="date">Date</label>
<input type="date" id="date" name="date" />
<label for="datetime-local">Local Datetime</label>
<input type="datetime-local" id="datetime-local" name="datetime-local" />
<label for="month">Month</label>
<input type="month" id="month" name="month" />
<label for="week">Week</label>
<input type="week" id="week" name="week" />
<label for="time">Time</label>
<input type="time" id="time" name="time" />
</fieldset>
<fieldset>
<legend>Radio Inputs</legend>
<label for="a">Star Wars</label>
<input type="radio" name="radios" id="a">
<label for="b">Star Trek</label>
<input type="radio" name="radios" id="b">
<label for="c">Starship Troopers</label>
<input type="radio" name="radios" id="c">
</fieldset>
<fieldset>
<legend>Checkboxes</legend>
<label for="checkbox">Nope?</label>
<input type="checkbox" name="checkbox" id="checkbox">
</fieldset>
<fieldset>
<legend>Colors and files</legend>
<label for="color">Color</label>
<input type="color" name="color" id="color" />
<label for="file">File</label>
<input type="file" name="file" id="file" />
</fieldset>
</fieldset>
<fieldset>
<legend>Select options</legend>
<label for="simple-select">Simple Select</label>
<select id="simple-select" name="simple-select">
<option>Dog</option>
<option>Cat</option>
</select>
<label for="multi-select">Multiple Select</label>
<select id="multi-select" name="multi-select" multiple size="2">
<option>Dog</option>
<option>Cat</option>
<option>Goldfish</option>
<option>Bird</option>
<option>Snake</option>
</select>
<label for="complex-select">Complex Select</label>
<select id="complex-select" name="complex-select">
<optgroup label="Canine">
<option>Canus Lupus</option>
<option>Canus rufus</option>
<option>Canus familiaris</option>
</optgroup>
<optgroup label="Felinae">
<option>Felis catus</option>
<option>Felis Silvestris</option>
<option>Felis Margarita</option>
</optgroup>
</select>
<label for="input-list">Input with List</label>
<input list="list-options" id="input-list" name="input-list" />
<datalist id="list-options">
<option value="Dwarves">
<option value="Elves">
<option value="Wizards">
<option value="Robots">
<option value="Ted">
</datalist>
</fieldset>
<fieldset>
<legend>Input Validations and states</legend>
<fieldset>
<legend>Disabled and required inputs</legend>
<label for="disabled-input">Text Input</label>
<input type="text" id="disabled-input" name="disabled-input" placeholder="can't touch this" disabled />
<label for="required-input">Required Text Input</label>
<input type="text" id="required-input" name="disabled-input" placeholder="please touch this" required />
</fieldset>
<fieldset disabled>
<legend>Disabled fieldset</legend>
<label for="disableder-input">Input disabled by fieldset</label>
<input type="text" id="disableder-input" name="disabled-input" placeholder="can't touch this" />
<label for="disableder-textarea">Textarea disabled by fieldset</label>
<textarea id="disableder-textarea" name="disableder-textarea"></textarea>
</fieldset>
</fieldset>
<fieldset>
<legend>Text areas</legend>
<label for="textarea">Textarea</label>
<textarea id="textarea" name="textarea"></textarea>
</fieldset>
<fieldset>
<legend>Buttons</legend>
<input type="button" value="Input button" />
<input type="submit" value="Input Submit" />
<input type="reset" value="Input Reset" />
<button type="submit">Button Submit</button>
<button type="reset">Button Reset</button>
</fieldset>
</form>
<h2>A Search instead of a form</h2>
<search>
<fieldset>
<legend>Inputs</legend>
<label for="query">
Find and filter your query
<input type="search" id="query">
</label>
<label for="exact-only">
<input type="checkbox" id="exact-only">
Exact matches only
</label>
</fieldset>
<fieldset>
<legend>Buttons</legend>
<button type="submit">Go Search</button>
<button type="reset">Whoops, reset!</button>
</fieldset>
</search>
</main>
</body>
</html>