-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBase – Pure.htm
444 lines (325 loc) · 19.5 KB
/
Base – Pure.htm
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
<!DOCTYPE html>
<html class="wf-proximanova-n4-active wf-proximanova-n7-active wf-omnespro-n2-active wf-omnespro-n3-active wf-proximanova-n1-active wf-active" lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Leveraging Normalize.css, an HTML5-ready alternative to CSS resets.">
<title>Base – Pure</title>
<link rel="stylesheet" href="Base%20%E2%80%93%20Pure_files/pure-min.css">
<link rel="stylesheet" href="Base%20%E2%80%93%20Pure_files/1.css">
<script src="Base%20%E2%80%93%20Pure_files/analytics.js" async=""></script><script src="Base%20%E2%80%93%20Pure_files/gis6vng.js"></script>
<style type="text/css">.header h1,.hero h1,.hero h2,.tk-omnes-pro{font-family:"omnes-pro",sans-serif;}</style><link href="Base%20%E2%80%93%20Pure_files/d.css" rel="stylesheet"><script>
try { Typekit.load(); } catch (e) {}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41480445-1', 'purecss.io');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="pure-g-r" id="layout">
<a href="#menu" id="menuLink" class="pure-menu-link">
<span></span>
</a>
<div class="pure-u" id="menu">
<div class="pure-menu pure-menu-open">
<a class="pure-menu-heading" href="http://purecss.io/">Pure</a>
<ul>
<li class="pure-menu-selected ">
<a href="http://purecss.io/base/">Base</a>
</li>
<li class=" ">
<a href="http://purecss.io/grids/">Grids</a>
</li>
<li class=" ">
<a href="http://purecss.io/forms/">Forms</a>
</li>
<li class=" ">
<a href="http://purecss.io/buttons/">Buttons</a>
</li>
<li class=" ">
<a href="http://purecss.io/tables/">Tables</a>
</li>
<li class=" ">
<a href="http://purecss.io/menus/">Menus</a>
</li>
<li class=" menu-item-divided">
<a href="http://purecss.io/layouts/">Layouts</a>
</li>
<li class=" ">
<a href="http://purecss.io/customize/">Customize</a>
</li>
<li class=" ">
<a href="http://purecss.io/extend/">Extend</a>
</li>
<li>
<a href="http://blog.purecss.io/">Blog</a>
</li>
<li>
<a href="https://github.com/yui/pure/releases/">Releases</a>
</li>
<li class="menu-item-divided">
<a href="http://yui.github.io/skinbuilder/?mode=pure">Skin Builder</a>
</li>
<li>
<a href="http://yuilibrary.com/">YUI Library</a>
</li>
</ul>
</div>
</div>
<div class="pure-u-1" id="main">
<div class="header">
<h1>Base</h1>
<h2>Leveraging Normalize.css, an HTML5-ready alternative to CSS resets.</h2>
</div>
<div class="content">
<h2 id="the-foundation" class="content-subhead">The Foundation<a href="#the-foundation" class="content-link"></a></h2>
<p>
All modules in Pure build on top of <a href="http://necolas.github.com/normalize.css/">Normalize.css</a>.
It's our foundational layer to maintain some degree of cross-browser
consistency. We use Normalize v1.x because it supports older versions of
Internet Explorer. We like Normalize so much that we put it on our CDN.
You can pull in Normalize.css by adding this <code><link></code> element on your page:
</p>
<pre class="snippet" data-language="html"><code class="rainbow"><span class="support tag"><span class="support tag"><</span><span class="support tag-name">link</span></span> <span class="support attribute">rel</span><span class="support operator">=</span><span class="string quote">"</span><span class="string value">stylesheet</span><span class="string quote">"</span> <span class="support attribute">href</span><span class="support operator">=</span><span class="string quote">"</span><span class="string value">http://yui.yahooapis.com/pure/0.3.0/base-min.css</span><span class="string quote">"</span><span class="support tag close">></span></code></pre>
<h3>A bit about Normalize.css</h3>
<p>
<a href="http://necolas.github.com/normalize.css/">Normalize.css</a> is an open-source project by <a href="http://twitter.com/necolas">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal">Jonathan Neal</a>. <a href="http://nicolasgallagher.com/about-normalize-css/">In their own words</a>:
</p>
<blockquote class="content-quote">
Normalize.css is a small CSS file that provides better
cross-browser consistency in the default styling of HTML elements. It’s a
modern, HTML5-ready, alternative to the traditional CSS reset."
</blockquote>
<p>
Normalize.css comes with <a href="https://github.com/necolas/normalize.css/wiki">great documentation</a> and a <a href="http://nicolasgallagher.com/about-normalize-css/">thorough guide</a> explaining how it differs from a traditional reset. You can also check out YUI's <a href="http://yuilibrary.com/yui/docs/cssnormalize/">CSSNormalize</a> module, which includes the generic Normalize along with a <a href="http://yuilibrary.com/yui/docs/cssnormalize/#context">contextual version</a>.
The contextual version of Normalize only applies normalized styles to
elements that are children of an element with the class name <code>yui3-normalized</code>.
</p>
<h2 id="typography" class="content-subhead">Typography<a href="#typography" class="content-link"></a></h2>
<p>
To keep Pure lean and extensible, we do not add any typographic
styles over the foundational layer provided by Normalize. This means
that you get headings with different sizes, blockquotes, lists,
definition lists, and more, but their styles are minimal and easy to
override.
</p>
<h2 id="headings" class="content-subhead">Headings<a href="#headings" class="content-link"></a></h2>
<p>
Headings run from 1 to 6 in decreasing size. Font sizes are defined in <code>em</code>.
</p>
<table class="pure-table pure-table-bordered">
<tbody>
<tr>
<td><h1>Heading 1</h1></td>
<td><h2>Heading 2</h2></td>
<td><h3>Heading 3</h3></td>
</tr>
<tr>
<td><h4>Heading 4</h4></td>
<td><h5>Heading 5</h5></td>
<td><h6>Heading 6</h6></td>
</tr>
</tbody>
</table>
<h2 id="lists" class="content-subhead">Lists<a href="#lists" class="content-link"></a></h2>
<p>
Lists come in different forms. There are unordered lists,
ordered lists, and definition lists. Normalize provides basic styling
and cross-browser consistency for these lists. You can style these
further in your specific application. If you're looking to use lists to
make menus, check out <a href="http://purecss.io/menus/">Menu CSS</a>.
</p>
<div class="pure-g-r">
<div class="pure-u-1-3">
<h4>Unordered List</h4>
<ul>
<li>list item 1</li>
<li>list item 1
<ul>
<li>list item 2</li>
<li>list item 2
<ul>
<li>list item 3</li>
<li>list item 3</li>
</ul>
</li>
<li>list item 2</li>
<li>list item 2</li>
</ul>
</li>
<li>list item 1</li>
<li>list item 1</li>
</ul>
</div>
<div class="pure-u-1-3">
<h3>Ordered List</h3>
<ol>
<li>list item 1</li>
<li>list item 1
<ol>
<li>list item 2</li>
<li>list item 2
<ol>
<li>list item 3</li>
<li>list item 3</li>
</ol>
</li>
<li>list item 2</li>
<li>list item 2</li>
</ol>
</li>
<li>list item 1</li>
<li>list item 1</li>
</ol>
</div>
<div class="pure-u-1-3">
<h3>Definition Lists</h3>
<dl>
<dt>Definition term</dt>
<dd>Definition description</dd>
<dt>Definition term</dt>
<dd>Definition description</dd>
<dd>Definition description</dd>
<dt>Definition term</dt>
<dt>Definition term</dt>
<dd>Definition description</dd>
</dl>
</div>
</div>
<h2 id="blockquotes" class="content-subhead">Blockquotes<a href="#blockquotes" class="content-link"></a></h2>
<p>
Blockquotes encompass text that is meant to represent a
quotation. By default, blockquotes look like regular text, except that
they are indented. This gives you the freedom to set your own styles on
top. Here's a default one:
</p>
<blockquote>
One small step for man, one giant leap for mankind.
</blockquote>
<pre class="snippet" data-language="html"><code class="rainbow"><span class="support tag"><span class="support tag"><</span><span class="support tag-name">blockquote</span></span><span class="support tag close">></span>
One small step for man, one giant leap for mankind.
<span class="support tag"><span class="support tag"><</span><span class="support tag special">/</span><span class="support tag-name">blockquote</span></span><span class="support tag close">></span></code></pre>
<p>
Taking advantage of the lack of default styles, we've customized
the blockquotes on this site to look a little different. We encourage
you to do the same based on how your site looks.
</p>
<blockquote class="content-quote">
One small step for man, one giant leap for mankind.
</blockquote>
<h2 id="abbreviations" class="content-subhead">Abbreviations<a href="#abbreviations" class="content-link"></a></h2>
<p>
The <code><abbr></code> represents an abbreviation. If a <code>title</code> attribute is provided, it'll show up on hover. Abbreviations generally have a small dotted underline.
</p>
<p>
<abbr title="Yahoo User Interface">YUI</abbr> is a free, open source JavaScript and CSS library for building richly interactive web applications.
</p>
<pre class="snippet" data-language="html"><code class="rainbow"><span class="support tag"><span class="support tag"><</span><span class="support tag-name">p</span></span><span class="support tag close">></span>
<span class="support tag"><span class="support tag"><</span><span class="support tag-name">abbr</span></span> <span class="support attribute">title</span><span class="support operator">=</span><span class="string quote">"</span><span class="string value">Yahoo User Interface</span><span class="string quote">"</span><span class="support tag close">></span>YUI<span class="support tag"><span class="support tag"><</span><span class="support tag special">/</span><span class="support tag-name">abbr</span></span><span class="support tag close">></span> is a free, open source JavaScript and CSS library for building richly interactive web applications.
<span class="support tag"><span class="support tag"><</span><span class="support tag special">/</span><span class="support tag-name">p</span></span><span class="support tag close">></span></code></pre>
<h2 id="addresses" class="content-subhead">Addresses<a href="#addresses" class="content-link"></a></h2>
<p>
The <code><address></code> is used to reference contact
information. By default, addresses have no specific styling. However,
they can be styled using the various inline styles available through
Normalize.
</p>
<address>
<a href="https://github.com/tilomitra">Tilo Mitra</a><br>
<a href="https://github.com/ericf">Eric Ferraiuolo</a><br>
<a href="https://github.com/msweeney">Matt Sweeney</a><br>
<a href="https://github.com/jconniff">Jeff Conniff</a><br>
</address>
<pre class="snippet" data-language="html"><code class="rainbow"><span class="support tag"><span class="support tag"><</span><span class="support tag-name">address</span></span><span class="support tag close">></span>
<span class="support tag"><span class="support tag"><</span><span class="support tag-name">a</span></span> <span class="support attribute">href</span><span class="support operator">=</span><span class="string quote">"</span><span class="string value">https://github.com/tilomitra</span><span class="string quote">"</span><span class="support tag close">></span>Tilo Mitra<span class="support tag"><span class="support tag"><</span><span class="support tag special">/</span><span class="support tag-name">a</span></span><span class="support tag close">></span><span class="support tag"><span class="support tag"><</span><span class="support tag-name">br</span></span><span class="support tag close">></span>
<span class="support tag"><span class="support tag"><</span><span class="support tag-name">a</span></span> <span class="support attribute">href</span><span class="support operator">=</span><span class="string quote">"</span><span class="string value">https://github.com/ericf</span><span class="string quote">"</span><span class="support tag close">></span>Eric Ferraiuolo<span class="support tag"><span class="support tag"><</span><span class="support tag special">/</span><span class="support tag-name">a</span></span><span class="support tag close">></span><span class="support tag"><span class="support tag"><</span><span class="support tag-name">br</span></span><span class="support tag close">></span>
<span class="support tag"><span class="support tag"><</span><span class="support tag-name">a</span></span> <span class="support attribute">href</span><span class="support operator">=</span><span class="string quote">"</span><span class="string value">https://github.com/msweeney</span><span class="string quote">"</span><span class="support tag close">></span>Matt Sweeney<span class="support tag"><span class="support tag"><</span><span class="support tag special">/</span><span class="support tag-name">a</span></span><span class="support tag close">></span><span class="support tag"><span class="support tag"><</span><span class="support tag-name">br</span></span><span class="support tag close">></span>
<span class="support tag"><span class="support tag"><</span><span class="support tag-name">a</span></span> <span class="support attribute">href</span><span class="support operator">=</span><span class="string quote">"</span><span class="string value">https://github.com/jconniff</span><span class="string quote">"</span><span class="support tag close">></span>Jeff Conniff<span class="support tag"><span class="support tag"><</span><span class="support tag special">/</span><span class="support tag-name">a</span></span><span class="support tag close">></span><span class="support tag"><span class="support tag"><</span><span class="support tag-name">br</span></span><span class="support tag close">></span>
<span class="support tag"><span class="support tag"><</span><span class="support tag special">/</span><span class="support tag-name">address</span></span><span class="support tag close">></span></code></pre>
<h2 id="inline-styles" class="content-subhead">Inline Styles<a href="#inline-styles" class="content-link"></a></h2>
<p>
There are numerous other inline styles that can be used. Here's a quick list from the <a href="http://github.com/necolas/normalize.css">Normalize documentation</a>:
</p>
<div class="pure-g-r">
<div class="pure-u-1-2">
<div class="l-box">
<p>
<cite>cite element</cite> example<br>
The <code>code element</code> example<br>
The <del>del element</del> example<br>
The <dfn>dfn element</dfn> and <dfn title="Title text">dfn element with title</dfn> examples<br>
The <em>em element</em> example<br>
The <i>i element</i> example<br>
The img element <img src="Base%20%E2%80%93%20Pure_files/24.jpg" alt=""> example<br>
The <ins>ins element</ins> example<br>
The <kbd>kbd element</kbd> example<br>
The <mark>mark element</mark> example
</p>
</div>
</div>
<div class="pure-u-1-2">
<div class="l-box">
<p>
The <q>q element <q>inside</q> a q element</q> example<br>
The <s>s element</s> example<br>
The <samp>samp element</samp> example<br>
The <small>small element</small> example<br>
The <span>span element</span> example<br>
The <strong>strong element</strong> example<br>
The <sub>sub element</sub> example<br>
The <sup>sup element</sup> example<br>
The <u>u element</u> example<br>
The <var>var element</var> example
</p>
</div>
</div>
</div>
<h2 id="moving-beyond-normalize" class="content-subhead">Moving beyond Normalize<a href="#moving-beyond-normalize" class="content-link"></a></h2>
<p>
Normalize.css is a great starting place for your project, but
some HTML elements such as forms, tables, and menus require more styling
than what's provided by Normalize.
</p>
<p>
We made a more opinionated look and feel for these elements,
while keeping them minimal enough so that you can customize them for
your site or app's needs. Check out our CSS for <a href="http://purecss.io/forms/">Forms</a>, <a href="http://purecss.io/tables/">Tables</a>, and <a href="http://purecss.io/menus/">Menus</a>.
</p>
</div>
<div class="legal pure-g-r">
<div class="pure-u-2-5">
<div class="l-box">
<p class="legal-license">
This site is built with <3 using Pure v0.3.0<br>
All code on this site is licensed under the <a href="http://yuilibrary.com/license/">BSD License</a> unless stated otherwise.
</p>
</div>
</div>
<div class="pure-u-1-5">
<div class="l-box legal-logo">
<a href="http://yuilibrary.com/">
<img src="Base%20%E2%80%93%20Pure_files/logo-footer.png" alt="YUI logo" height="30" width="65">
</a>
</div>
</div>
<div class="pure-u-2-5">
<div class="l-box">
<ul class="legal-links">
<li><a href="https://github.com/yui/pure/">GitHub Project</a></li>
<li><a href="http://yuilibrary.com/security/">Security Contact Info</a></li>
</ul>
<p class="legal-copyright">
© 2013 Yahoo! Inc. All rights reserved.
</p>
</div>
</div>
</div>
</div>
</div>
<script src="Base%20%E2%80%93%20Pure_files/1.3"></script>
</body></html>