|
1 <!DOCTYPE html> |
|
2 <html lang="en"> |
|
3 <head> |
|
4 <meta charset="utf-8"> |
|
5 <title>Example: Global (Page-Level) Example</title> |
|
6 <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic"> |
|
7 <link rel="stylesheet" href="../../build/cssgrids/cssgrids-min.css"> |
|
8 <link rel="stylesheet" href="../assets/css/main.css"> |
|
9 <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
|
10 <link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> |
|
11 <script src="../../build/yui/yui-min.js"></script> |
|
12 |
|
13 </head> |
|
14 <body> |
|
15 <!-- |
|
16 <a href="https://github.com/yui/yui3"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a> |
|
17 --> |
|
18 <div id="doc"> |
|
19 <div id="hd"> |
|
20 <h1><img src="http://yuilibrary.com/img/yui-logo.png"></h1> |
|
21 </div> |
|
22 |
|
23 |
|
24 <h1>Example: Global (Page-Level) Example</h1> |
|
25 <div class="yui3-g"> |
|
26 <div class="yui3-u-3-4"> |
|
27 <div id="main"> |
|
28 <div class="content"><div class="intro"> |
|
29 <p>This example shows a page of HTML elements with CSS Reset and CSS Fonts applied.</p> |
|
30 </div> |
|
31 |
|
32 <div class="example newwindow"> |
|
33 <a href="cssfonts-basic-example.html" target="_blank" class="button"> |
|
34 View Example in New Window |
|
35 </a> |
|
36 </div> |
|
37 |
|
38 <p>When CSS Fonts is included in a page it applies a baseline font treatment to all HTML elements. This baseline is Arial (with fallbacks) at the equivalent of 13px size and 16px line-height. This example shows what that looks like.</p> |
|
39 |
|
40 <h3>Note:</h3> |
|
41 <p>Because CSS examples are susceptible to other CSS on the page, this example is only available in a new window at the above link.</p> |
|
42 |
|
43 |
|
44 </div> |
|
45 </div> |
|
46 </div> |
|
47 |
|
48 <div class="yui3-u-1-4"> |
|
49 <div class="sidebar"> |
|
50 |
|
51 |
|
52 |
|
53 <div class="sidebox"> |
|
54 <div class="hd"> |
|
55 <h2 class="no-toc">Examples</h2> |
|
56 </div> |
|
57 |
|
58 <div class="bd"> |
|
59 <ul class="examples"> |
|
60 |
|
61 |
|
62 <li data-description="When CSS Fonts is included in a page, it applies a baseline font treatment to all HTML elements. This baseline is Arial at the equivalent of 13px size and 16px line-height."> |
|
63 <a href="cssfonts-basic.html">Global (Page-Level) Example</a> |
|
64 </li> |
|
65 |
|
66 |
|
67 |
|
68 <li data-description="Use the alternate contextual version of YUI Fonts to have precise control over which regions of the page are targeted."> |
|
69 <a href="cssfonts-context.html">Contextual Example</a> |
|
70 </li> |
|
71 |
|
72 |
|
73 |
|
74 <li data-description="Define all non-baseline sizes in percentages when using YUI Fonts."> |
|
75 <a href="cssfonts-size.html">Setting Font Size</a> |
|
76 </li> |
|
77 |
|
78 |
|
79 </ul> |
|
80 </div> |
|
81 </div> |
|
82 |
|
83 |
|
84 |
|
85 </div> |
|
86 </div> |
|
87 </div> |
|
88 </div> |
|
89 |
|
90 <script src="../assets/vendor/prettify/prettify-min.js"></script> |
|
91 <script>prettyPrint();</script> |
|
92 |
|
93 <script> |
|
94 YUI.Env.Tests = { |
|
95 examples: [], |
|
96 project: '../assets', |
|
97 assets: '../assets/cssfonts', |
|
98 name: 'cssfonts-basic', |
|
99 title: 'Global (Page-Level) Example', |
|
100 newWindow: 'true', |
|
101 auto: false |
|
102 }; |
|
103 YUI.Env.Tests.examples.push('cssfonts-basic'); |
|
104 YUI.Env.Tests.examples.push('cssfonts-context'); |
|
105 YUI.Env.Tests.examples.push('cssfonts-size'); |
|
106 |
|
107 </script> |
|
108 <script src="../assets/yui/test-runner.js"></script> |
|
109 |
|
110 |
|
111 |
|
112 </body> |
|
113 </html> |