This repository has been archived by the owner on Jan 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
docs.html
282 lines (242 loc) · 12.2 KB
/
docs.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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name = "viewport" content = "width = device-width">
<title>Layout</title>
<link rel="stylesheet" type="text/css" href="http://necolas.github.com/normalize.css/2.0.1/normalize.css">
<link rel="stylesheet" type="text/css" href="public/css/layout.css">
<link rel="stylesheet" type="text/css" href="https://rawgh.neting.cc/tilomitra/csslist/master/css/list-core.css">
<link rel="stylesheet" type="text/css" href="https://rawgh.neting.cc/tilomitra/csslist/master/css/list.css">
<link rel="stylesheet" type="text/css" href="https://rawgh.neting.cc/tilomitra/csslist/master/css/list-responsive.css">
<link rel="stylesheet" type="text/css" href="https://rawgh.neting.cc/tilomitra/yuicss-common/master/ui.css">
<link rel="stylesheet" type="text/css" href="https://gist.github.com/assets/embed-3634f6c602e8992c754bcfc7dad0a593.css">
<link rel="stylesheet" type="text/css" href="http://tilomitra.github.com/cssextras/cssextras.css">
<!-- TYPEKIT -->
<script type="text/javascript" src="//use.typekit.net/ajf8ggy.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<style>
.centered {
text-align: center;
}
#navigationWrapper {
background: #02487B;
border-bottom: 1px solid #509CCD;
height: 66px;
}
#navigation ul {
list-style: none;
list-style-image: none;
}
#navigation li {
float:left;
margin-left: 33px;
}
.header {
background: white;
color: black;
}
.header h2 {
color: #666;
}
.cell {
padding: 10px 15px;
}
.cell h3 {
font-size: 200%;
}
.cell p {
color: #777;
line-height:1.6em;
font-size:115%;
}
.offsets .cell {
background: #eee;
border:1px solid #ddd;
padding: 5px;
}
</style>
</head>
<body class="y-g-responsive yui3-skin-sam">
<div id="headerMenu" class="y-u yui3-menu yui3-menu-open yui3-menu-horizontal yui3-menu-fixed">
<ul>
<li class="yui3-menu-active"><a href="http://yui.github.com/gridbuilder/docs.html">Grids</a></li>
<li><a href="http://tilomitra.github.com/cssforms/">Forms</a></li>
<li><a href="http://tilomitra.github.com/csstables/">Tables</a></li>
<li><a href="http://tilomitra.github.com/csslist/">Lists</a></li>
<li><a href="http://tilomitra.github.com/cssextras/">Extras</a></li>
</ul>
</div>
<div class="header y-u-1">
<h1 class="y-u-1">YUI Responsive Grid</h1>
<h2 class="y-u">A highly-customizable responsive grid for the web.</h2>
</div>
<div class='content y-g'>
<div class='y-u-1'>
<div class='cell'>
<h2 class='y-u-1'>First, include it on your page</h2>
<p>Add this CSS file to your page:</p>
<pre>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.9.0pr3/build/cssgrids-responsive/cssgrids-responsive-min.css"><br/>
</pre>
<p>Optionally, you can head over to the <a href="http://yui.github.com/gridbuilder/">GridBuilder</a> to make your very own custom grid. Save the outputted CSS in a file.</p>
<h2 class="y-u-1">How does it work?</h2>
<p>YUI3 Responsive Grids builds on top of the existing YUI3 Grids implementation. It adds a single new class name called <code>.yui3-g-r</code> (the "r" stands for responsive, you see). You can use this instead of using <code>.yui3-g</code> as you normally do. All elements with a class name of <code>.yui3-g-*-*</code> will automatically become responsive if they are direct descendents of a <code>.yui3-g-r.</code></p>
<h2>The HTML</h2>
<p>The first gist shows how regular YUI3 grids are written. These grids are unresponsive. They'll always be one-thirds irrespective of the width of the screen. The second gist replaces the <code>.yui3-g</code> with <code>.yui3-g-r</code>, thereby making the one-third columns collapse to full width on lower screen widths.</p>
<script src="https://gist.github.com/3955432.js"></script>
</div>
</div>
<div class="y-u-1">
<div class="cell">
<h2 class="y-u-1">Features.</h2>
<ul class="tk-proxima-nova">
<li>Adds configurable media queries for different screen widths (Desktops, Landscape Tablets, Portrait Tablets, Phones)</li>
<li>Collapses elements to 100% if smaller than a certain width (767px by default)</li>
<li>Adjusts images to fit on smaller screens</li>
<li>Works with as many columns as you want (or as few)</li>
<li>Configure prefixes (as we've done on this page)</li>
</div>
</div>
</div>
<div class="content y-g-responsive">
<h2 class="y-u-1 centered">Demo</h2>
<h3 class='y-u-1 centered'>Resize the page to see the grid collapse.</h3>
<div class="y-u-1-4">
<div class="cell">
<h3>Fast</h3>
<p>YUI's lightweight core and modular architecture make it scalable, fast, and robust. Built by frontend engineers at Yahoo!, YUI powers the most popular websites in the world.</p>
</div>
</div><!--/span-->
<div class="y-u-1-4">
<div class="cell">
<h3>Complete</h3>
<p>YUI's intuitive and well-documented API takes you from basic DOM handling to building performant and maintainable applications on desktop browsers, mobile devices, and servers.</p>
</div>
</div><!--/span-->
<div class="y-u-1-4">
<div class="cell">
<h3>Industrial Strength</h3>
<p>A thriving community, a carefully architected infrastructure, and a comprehensive suite of tools help you code like a pro, from simple web pages to complex web applications.</p>
</div>
</div><!--/span-->
<div class="y-u-1-4">
<div class="cell">
<h3>Free and Open</h3>
<p>YUI is free for all uses and is developed in the open on GitHub. Core team members can always be found in the forums and the #yui IRC channel on Freenode. Pull requests welcome!</p>
</div>
</div><!--/span-->
<div class="y-u-1 centered">
<img class="y-u" src="http://vanity-press.com/wp-content/uploads/2011/09/New-York.jpg" alt="test image">
</div>
<div class="y-u-2-5">
<div class="cell">
<h3>Two-Fifth Column</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur fermentum dui turpis. Duis nulla dolor, suscipit in venenatis vitae, auctor eu nibh. Proin lobortis arcu nec tellus vehicula vitae pellentesque nisi molestie. Aenean felis ligula, hendrerit id dictum sed, ornare nec leo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec non lectus et quam porttitor dignissim vitae ac odio. Aenean mattis dui porta lacus egestas ultricies. Mauris vel dolor libero, sit amet rhoncus nibh.</p>
</div>
</div>
<div class="y-u-3-5">
<div class="cell">
<h3>Three-Fifth Column</h3>
<p>Quisque ac magna eget est porta varius ut eget quam. Curabitur tincidunt gravida nisl, vitae luctus velit vulputate vel. Aliquam sed sodales orci. Proin varius placerat magna tristique tincidunt. Morbi non dignissim felis. Proin bibendum libero nec felis eleifend porttitor. Morbi auctor venenatis justo, molestie luctus mi pulvinar nec. Pellentesque vitae ornare lacus. Nulla hendrerit tempor auctor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis luctus facilisis cursus. Integer in lacinia dui. Phasellus ullamcorper, sem at congue pretium, velit sapien ornare mi, eu eleifend risus sapien ac eros.</p>
<p>Fusce accumsan, sem vitae tempus tempor, nulla lectus interdum felis, eget molestie urna mauris vel elit. Curabitur vel ipsum nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam viverra, augue et sollicitudin dignissim, lectus tellus imperdiet lectus, a tempor ipsum mauris vitae augue. Nullam vel nulla a purus cursus consequat. Nulla orci elit, malesuada nec egestas non, ornare quis nibh. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
</div>
</div>
</div>
</div>
<div class='content y-g'>
<h2 class="y-u-1">Grids on mobile</h2>
<div class="y-u-1-3">
<div class="cell">
<h3>Thirds</h3>
<p>This cell will be a grid even on mobile devices.</p>
</div>
</div>
<div class="y-u-1-3">
<div class="cell">
<h3>Thirds</h3>
<p>This cell will be a grid even on mobile devices.</p>
</div>
</div>
<div class="y-u-1-3">
<div class="cell">
<h3>Thirds</h3>
<p>This cell will be a grid even on mobile devices.</p>
</div>
</div>
</div>
<div class='content y-g'>
<div class="y-u-1-3">
<div class="cell">
<h3>Thirds</h3>
<p>This cell will be a grid even on mobile devices.</p>
</div>
</div>
<div class="y-u-1-3">
<div class="cell">
<h3>Thirds</h3>
<p>This cell will be a grid even on mobile devices.</p>
</div>
</div>
<div class="y-u-1-3">
<div class="cell">
<h3>Thirds</h3>
<p>This cell will be a grid even on mobile devices.</p>
</div>
</div>
</div>
<div class='content y-g'>
<div class="y-u-1-3">
<div class="cell">
<h3>Thirds</h3>
<p>This cell will be a grid even on mobile devices.</p>
</div>
</div>
<div class="y-u-1-3">
<div class="cell">
<h3>Thirds</h3>
<p>This cell will be a grid even on mobile devices.</p>
</div>
</div>
<div class="y-u-1-3">
<div class="cell">
<h3>Thirds</h3>
<p>This cell will be a grid even on mobile devices.</p>
</div>
</div>
</div>
<div class='content y-g offsets'>
<h2 class="y-u-1 centered">Offsets</h2>
<div class="y-u-11-12 y-offset-1-12">
<div class="cell">
<p>11/12 with an offset of 1/12</p>
</div>
</div><!--/span-->
<div class="y-u-5-6 y-offset-1-6">
<div class="cell">
<p>5/6 with an offset of 1/6</p>
</div>
</div>
<div class="y-u-3-4 y-offset-1-4">
<div class="cell">
<p>3/4 with an offset of 1/4</p>
</div>
</div><!--/span-->
<div class="y-u-2-3 y-offset-1-3">
<div class="cell">
<p>2/3 with an offset of 1/3</p>
</div>
</div>
<div class="y-u-1-3">
<div class="cell">
<p>1/3</p>
</div>
</div>
<div class="y-u-1-3 y-offset-1-3">
<div class="cell">
<p>1/3 with an offset</p>
</div>
</div>
</div>
</body>
</html>