|
1 <!DOCTYPE html> |
|
2 <html lang="en"> |
|
3 <head> |
|
4 <meta charset="utf-8"> |
|
5 <title>Example: Responsive Newspaper Layout</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: Responsive Newspaper Layout</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>The HTML for this example uses YUI3 Responsive Grids syntax to look great on different screen sizes (resize this page or view it on a smartphone). On larger screens, there are three columns. However, if viewed on a screen that is smaller than 767px, the columns stack vertically. The right-most column, which shows a stack of content on larger widths, changes to show a grid on smaller widths.</p> |
|
30 </div> |
|
31 |
|
32 <div class="example newwindow"> |
|
33 <a href="cssgrids-magazine-example.html" target="_blank" class="button"> |
|
34 View Example in New Window |
|
35 </a> |
|
36 </div> |
|
37 |
|
38 </div> |
|
39 </div> |
|
40 </div> |
|
41 |
|
42 <div class="yui3-u-1-4"> |
|
43 <div class="sidebar"> |
|
44 |
|
45 |
|
46 |
|
47 <div class="sidebox"> |
|
48 <div class="hd"> |
|
49 <h2 class="no-toc">Examples</h2> |
|
50 </div> |
|
51 |
|
52 <div class="bd"> |
|
53 <ul class="examples"> |
|
54 |
|
55 |
|
56 <li data-description="Each unit has a className that provides its percentage width."> |
|
57 <a href="cssgrids-units.html">Using Grid Units</a> |
|
58 </li> |
|
59 |
|
60 |
|
61 |
|
62 <li data-description="This is a template for creating fixed-width layouts."> |
|
63 <a href="cssgrids-fixed.html">Fixed Page Template</a> |
|
64 </li> |
|
65 |
|
66 |
|
67 |
|
68 <li data-description="This is a template for creating fluid layouts."> |
|
69 <a href="cssgrids-fluid.html">Fluid Page Template</a> |
|
70 </li> |
|
71 |
|
72 |
|
73 |
|
74 <li data-description="Basic CSS properties are leveraged to horizontally and vertically align units."> |
|
75 <a href="cssgrids-align.html">Aligning Grid Units</a> |
|
76 </li> |
|
77 |
|
78 |
|
79 |
|
80 <li data-description="A responsive layout that looks like a newspaper"> |
|
81 <a href="cssgrids-magazine.html">Responsive Newspaper Layout</a> |
|
82 </li> |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 </ul> |
|
100 </div> |
|
101 </div> |
|
102 |
|
103 |
|
104 |
|
105 <div class="sidebox"> |
|
106 <div class="hd"> |
|
107 <h2 class="no-toc">Examples That Use This Component</h2> |
|
108 </div> |
|
109 |
|
110 <div class="bd"> |
|
111 <ul class="examples"> |
|
112 |
|
113 |
|
114 |
|
115 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 <li data-description="Creating left navigation using the MenuNav Node Plugin."> |
|
125 <a href="../node-menunav/menunav-leftnav.html">Basic Left Nav</a> |
|
126 </li> |
|
127 |
|
128 |
|
129 |
|
130 <li data-description="Creating top navigation using the MenuNav Node Plugin"> |
|
131 <a href="../node-menunav/node-menunav-2.html">Basic Top Nav</a> |
|
132 </li> |
|
133 |
|
134 |
|
135 |
|
136 <li data-description="Creating menu button navigation using the MenuNav Node Plugin"> |
|
137 <a href="../node-menunav/node-menunav-3.html">Menu Button Top Nav</a> |
|
138 </li> |
|
139 |
|
140 |
|
141 |
|
142 <li data-description="Creating split button navigation using the MenuNav Node Plugin"> |
|
143 <a href="../node-menunav/node-menunav-4.html">Split Button Top Nav</a> |
|
144 </li> |
|
145 |
|
146 |
|
147 |
|
148 <li data-description="Adding shadows to submenus of a left nav using the MenuNav Node Plugin"> |
|
149 <a href="../node-menunav/node-menunav-5.html">Left Nav with Submenus with Shadows</a> |
|
150 </li> |
|
151 |
|
152 |
|
153 |
|
154 <li data-description="Adding rounded corners to submenus of a left nav using the MenuNav Node Plugin"> |
|
155 <a href="../node-menunav/node-menunav-6.html">Left Nav With Submenus With Rounded Corners</a> |
|
156 </li> |
|
157 |
|
158 |
|
159 |
|
160 <li data-description="Skining a menu built using the MenuNav Node Plugin to look like the menus on Flickr"> |
|
161 <a href="../node-menunav/node-menunav-7.html">Skinning Menus Created Using the MenuNav Node Plugin</a> |
|
162 </li> |
|
163 |
|
164 |
|
165 </ul> |
|
166 </div> |
|
167 </div> |
|
168 |
|
169 </div> |
|
170 </div> |
|
171 </div> |
|
172 </div> |
|
173 |
|
174 <script src="../assets/vendor/prettify/prettify-min.js"></script> |
|
175 <script>prettyPrint();</script> |
|
176 |
|
177 <script> |
|
178 YUI.Env.Tests = { |
|
179 examples: [], |
|
180 project: '../assets', |
|
181 assets: '../assets/cssgrids', |
|
182 name: 'cssgrids-magazine', |
|
183 title: 'Responsive Newspaper Layout', |
|
184 newWindow: 'true', |
|
185 auto: false |
|
186 }; |
|
187 YUI.Env.Tests.examples.push('cssgrids-units'); |
|
188 YUI.Env.Tests.examples.push('cssgrids-fixed'); |
|
189 YUI.Env.Tests.examples.push('cssgrids-fluid'); |
|
190 YUI.Env.Tests.examples.push('cssgrids-align'); |
|
191 YUI.Env.Tests.examples.push('cssgrids-magazine'); |
|
192 YUI.Env.Tests.examples.push('menunav-leftnav'); |
|
193 YUI.Env.Tests.examples.push('node-menunav-2'); |
|
194 YUI.Env.Tests.examples.push('node-menunav-3'); |
|
195 YUI.Env.Tests.examples.push('node-menunav-4'); |
|
196 YUI.Env.Tests.examples.push('node-menunav-5'); |
|
197 YUI.Env.Tests.examples.push('node-menunav-6'); |
|
198 YUI.Env.Tests.examples.push('node-menunav-7'); |
|
199 |
|
200 </script> |
|
201 <script src="../assets/yui/test-runner.js"></script> |
|
202 |
|
203 |
|
204 |
|
205 </body> |
|
206 </html> |