-
Notifications
You must be signed in to change notification settings - Fork 129
/
index.html
383 lines (370 loc) · 11.8 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pesticide - Kill Your Css Layout Bugs</title>
<meta name="author" content="mrmrs">
<meta name="description" content="A small tool to make debugging css a little bit easier.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/pesticide.css">
<style>
body { font-family: avenir, helvetica, arial, sans-serif; }
* { padding: 10px; margin: 20px; max-width: 100%; }
</style>
</head>
<body>
<header>
<h1>Pesticide</h1>
<h2>Kill your css layout bugs faster.</h2>
<p>
Cascading Style Sheets can be tricky. Placing an outline on every element can help
you quickly figure out what the fuck is going on.
</p>
</header>
<section>
<header>
<h1>Examples</h1>
</header>
<h1>Site title</h1>
<nav>
<ul>
<li>List 1 </li>
<li>List 2 </li>
<li>List 3 </li>
<li>List 4 </li>
<li>List 5 </li>
</ul>
</nav>
<section>
<h1>Header 1</h1>
<h2>Header 2</h2>
<h3>Header 3</h3>
<h4>Header 4</h4>
<h5>Header 5</h5>
<h6>Header 6</h6>
</section>
<section>
<h1>Links</h1>
<a href="#">Sample text link</a>
<a href="#">Sample button link</a>
</section>
<section>
<h1>Lists</h1>
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
<li>List Item 4</li>
<li>List Item 5</li>
<li>List Item 6</li>
</ul>
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
<li>List Item 4</li>
<li>List Item 5</li>
<li>List Item 6</li>
</ul>
<ol>
<li>First</li>
<li>Second</li>
<li>Third</li>
<li>Fourth</li>
<li>Fifth</li>
<li>Sixth</li>
</ol>
<dl>
<dt> Kick </dt>
<dd> 808 </dd>
<dt> Snare </dt>
<dd> 909 </dd>
</dl>
<dl>
<dt> Maine </dt>
<dd> Augusta </dd>
<dt> California </dt>
<dd> Sacramento </dd>
<dt> Oregon </dt>
<dd> Salem </dd>
<dt> New York </dt>
<dd> Albany </dd>
</dl>
</section>
<section>
<h1>Forms</h1>
<form>
<fieldset>
<!--
Every fieldset must contain a legend. IE barfs if it's not there.
It's no fun.
-->
<legend>Legend Example</legend>
<div>
<label>Text Input Label</label>
<input type="text" />
<p>Helper text if necessary.</p>
</div>
<div>
<label>Password</label>
<input type="password" />
<p>Error messages when appropriate.</p>
</div>
<div>
<label for="first-name">First Name</label>
<input type="text" id="first-name" />
</div>
<div>
<label for="last-name">Last Name</label>
<input type="text" id="last-name" />
</div>
<div>
<label for="email">Email</label>
<input type="email" id="email" />
</div>
<div>
<label for="gender">Dropdown</label>
<select>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div>
<label>Radio Buttons</label>
<ul>
<li><label><input type="radio" /> Label 1</label></li>
<li><label><input type="radio" /> Label 2</label></li>
<li><label><input type="radio" /> Label 3</label></li>
</ul>
</div>
<div>
<label for="url">URL Input</label>
<input type="url" placeholder="http://mrmrs.cc" />
</div>
<div>
<label>Text area</label>
<textarea></textarea>
</div>
<div>
<label><input type="checkbox" /> This is a checkbox.</label>
</div>
<div>
<input type="submit" value="Submit" />
</div>
</fieldset>
</form>
</section>
<section>
<h1>Buttons</h1>
<button>A button</button>
<button>A button</button>
<button>A large button</button>
</section>
<hr />
<section>
<h1>An Example Article</h1>
<article>
<h1>Title</h1>
<p>
Lorem ipsum dolor sit amet, <b>consectetur adipisicing elit</b>, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud <em>exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat</em>. 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>
<blockquote>
<p>
This is a GREAT pull quote.
</p>
<a href="#">- Author</a>
</blockquote>
<p>
Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet,
consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt
ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima
veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi
ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit
qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum
qui dolorem eum fugiat quo voluptas nulla pariatur?"
</p>
<p>
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis
praesentium voluptatum deleniti atque corrupti quos dolores et quas
molestias excepturi sint occaecati cupiditate non provident, similique sunt
in culpa qui officia deserunt mollitia animi, id est laborum et dolorum
fuga. Et harum quidem rerum facilis est et expedita distinctio.
</p>
</article>
</section>
<hr />
<section>
<h1>Code examples</h1>
<code>
<pre>
sudo ipfw pipe 1 config bw 256KByte/s
sudo ipfw add 1 pipe 1 src-port 3000
</pre>
</code>
</section>
<hr />
<section>
<h1>Footer</h1>
<footer>
<p>Copyright 2013. Made with love by <a href="http://mrmrs.cc" title="MRMRS - Designer">mrmrs</a>.</p>
<ul>
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">Contact</a>
</li>
<li>
<a href="#">Jobs</a>
</li>
</ul>
<ul>
<li>
<a href="http://twitter.com" title=" on Twitter">Twitter</a>
</li>
<li>
<a href="http://pinterest.com" title=" on Pinterest">Pinterest</a>
</li>
<li>
<a href="http://instagram.com" title=" on Instagram">Instagram</a>
</li>
<li>
<a href="http://dribbbble.com" title=" on Dribbble">Dribbble</a>
</li>
<li>
<a href="http://github.com" title=" on Github">Github</a>
</li>
</ul>
</footer>
</section>
<section>
<h1 class="other-class">New hawtness</h1>
<progress value="80" max="100">80 %</progress>
<p class="test-class">We are this close to the goal: <meter min="0" max="1000" value="824">$824</meter>.</p>
</section>
<section>
<header>
<h1 class="other-class">Random Stuff</h1>
</header>
<small>This is for things like copyright info</small>
<s>Content that isn't accurate or relevant anymore.</s>
<span>Generic span wrapper</span>
<abbr>HTML How to meet ladies</abbr>
<p class="test-class">This is inline text with <sub>subscript</sub> and <sup>superscript</sup> elements.</p>
<p class="test-class">
<var>f</var>(<var>x</var>) = <var>a</var><sub>0</sub> + <var>a</var><sub>1</sub><var>x</var> +
<var>a</var><sub>2</sub><var>x</var><sup>2</sup>, where <var>a</var><sup>2</sup> ≠ 0
</p>
<time datetime="2013-09-07" pubdate>07 September 2013</time>
</section>
<section>
<figure>
<img src="/img/figure-example.jpg" alt="Figure Example">
<figcaption>
Photo of the sky at night. Original by <a href="http://flickr.com/photos/heyitsadam/">@mrmrs</a>
</figcaption>
</figure>
</section>
<section>
<!--
http://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#the-samp-element
-->
<samp>
<pre>
/Sites/html master ☠ ☢
$ <kbd>ls -gto</kbd>
total 104
-rw-r--r-- 1 10779 Jun 5 16:24 index.html
-rw-r--r-- 1 1255 Jun 5 16:00 _config.yml
drwxr-xr-x 11 374 Jun 5 15:57 _site
-rw-r--r-- 1 1597 Jun 5 14:16 README.md
drwxr-xr-x 5 170 Jun 5 14:15 _sass
-rw-r--r-- 1 564 Jun 4 15:59 Rakefile
drwxr-xr-x 6 204 Jun 4 15:59 _includes
drwxr-xr-x 4 136 Jun 4 15:59 _layouts
drwxr-xr-x 3 102 Jun 4 15:59 _resources
drwxr-xr-x 3 102 Jun 4 15:59 css
-rw-r--r-- 1 1977 Jun 4 15:59 favicon.icns
-rw-r--r-- 1 6518 Jun 4 15:59 favicon.ico
-rw-r--r-- 1 1250 Jun 4 15:59 touch-icon-ipad-precomposed.png
-rw-r--r-- 1 2203 Jun 4 15:59 touch-icon-ipad-retina-precomposed.png
-rw-r--r-- 1 1046 Jun 4 15:59 touch-icon-iphone-precomposed.png
-rw-r--r-- 1 1779 Jun 4 15:59 touch-icon-iphone-retina-precomposed.png
</pre>
</samp>
</section>
<section>
<h1 class="other-class">Tables</h1>
<table>
<caption>Tabular Data ExampleTabular Data Examples</caption>
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Date</th>
<th>Address</th>
</tr>
</thead>
<tfoot> Table footer info </tfoot>
<tbody>
<tr>
<td>#999-32ac</td>
<td>First Name</td>
<td>13 May, 2013</td>
<td>999 Spruce Lane, Somewhere, CA 94101</td>
</tr>
<tr>
<td>#888-32dd</td>
<td>Sample Name</td>
<td>17 May, 1984</td>
<td>999 Spruce Lane, Somewhere, CA 94101</td>
</tr>
</tbody>
</table>
</section>
<section>
<h1>Floats</h1>
<div>
<img src="http://placekitten.com/200/150" style="float:left;">
<p>
This is an image that has been floated to the left of this paragraph.
The parent element that contains the image and paragraph does not have a clearfix applied to it.
As you can see. All these lines tell us a few things. What they tell us, well, that is a story
for another time.
</p>
</div>
</section>
<section>
<h1>Common inline-block problems</h1>
<div>
<h2>Four elements set to inline-block and width: 25%</h2>
<p>Notice how the whitespace between the elements gets rendered, this is why the fourth element breaks to a separate line.</p>
<div style="width:25%; display: inline-block;margin: 0;">
Div 1
</div>
<div style="width:25%; display: inline-block;margin: 0;">
Div 2
</div>
<div style="width:25%; display: inline-block;margin: 0;">
Div 3
</div>
<div style="width:25%; display: inline-block;margin:0; ">
Div 4
</div>
</div>
</section>
<section>
<footer>
<small>© 2014 Some company name</small>
<address> [email protected] </address>
</footer>
</section>
</section>
</body>
</html>