2
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
3
Code licensed under the BSD License:
4
http://developer.yahoo.net/yui/license.txt
8
TODO README: removed yui-t7
13
* The YUI CSS Foundation uses the *property and _property CSS filter
14
* techniques to shield a value from A-grade browsers [1] other than
15
* IE6 & IE7 (*property) and IE6 (_property)
23
Section: General Rules
30
margin-left:auto;margin-right:auto;
34
TODO - not sure I need this if the BD is already clearing.
40
Section: Page Width Rules (#doc, #doc2, #doc3, #doc4)
47
.yui-grids .yui-d0, /* 100% */
48
.yui-grids .yui-d1, /* 750px */
49
.yui-grids .yui-d1f, /* 750px fixed */
50
.yui-grids .yui-d2, /* 950px */
51
.yui-grids .yui-d2f, /* 950px fixed */
52
.yui-grids .yui-d3, /* 974px */
53
.yui-grids .yui-d3f, /* 974px fixed */
59
.yui-t6 /* the Ts are here to collect margin and text-alignment rules */{
62
width:57.69em;*width:56.25em; /* doc1*/
74
Subsection: 100% (doc)
77
/* Left and Right margins are not a structural part of Grids. Without them Grids
78
works fine, but content bleeds to the very edge of the document, which often
79
impairs readability and usability. They are
80
provided because they prevent the content from "bleeding" into the browser's chrome.*/
86
.yui-grids .yui-d0f {width:100%;}
88
Subsection: 950 Centered (doc2)
90
.yui-grids .yui-d2 {width:73.076em;*width:71.25em;}
91
.yui-grids .yui-d2f {width:950px;}
96
Subsection: 974 Centered (doc3)
98
.yui-grids .yui-d3 {width:74.923em;*width:73.05em;}
99
.yui-grids .yui-d3f {width:974px;}
102
Section: Preset Template Rules (.yui-t[1-6])
109
/* to preserve source-order independence for Gecko without breaking */
110
.yui-b{position:relative;}
111
.yui-b{_position:static;}
112
.yui-main .yui-b{position:static;}
114
.yui-main {width:100%;}
118
.yui-t3 .yui-main{float:right;margin-left:-25em;/* IE: preserve layout at narrow widths */}
122
.yui-t6 .yui-main{float:left;margin-right:-25em;/* IE: preserve layout at narrow widths */}
125
Subsection: For Specific Template Presets
129
* Nudge down to get to 13px equivalent for these form elements
133
TODO Create t1-6's that are based on fixed widths
135
.yui-t1 .yui-b {float:left;width:12.30769em;*width:12.00em;}
136
.yui-t1 .yui-main .yui-b{margin-left:13.30769em;*margin-left:12.975em;}
138
.yui-t2 .yui-b {float:left;width:13.84615em;*width:13.50em;}
139
.yui-t2 .yui-main .yui-b {margin-left:14.84615em;*margin-left:14.475em;}
141
.yui-t3 .yui-b {float:left;width:23.0769em;*width:22.50em;}
142
.yui-t3 .yui-main .yui-b {margin-left:24.0769em;*margin-left:23.475em;}
144
.yui-t4 .yui-b {float:right;width:13.8456em;*width:13.50em;}
145
.yui-t4 .yui-main .yui-b {margin-right:14.8456em;*margin-right:14.475em;}
147
.yui-t5 .yui-b {float:right;width:18.4615em;*width:18.00em;}
148
.yui-t5 .yui-main .yui-b {margin-right:19.4615em;*margin-right:18.975em;}
150
.yui-t6 .yui-b {float:right;width:23.0769em;*width:22.50em;}
151
.yui-t6 .yui-main .yui-b {margin-right:24.0769em;*margin-right:23.475em;}
153
.yui-t7 .yui-main .yui-b {display:block;margin:0 0 1em 0;}
155
.yui-main .yui-b {float:none;width:auto;}
158
Section: Grids and Nesting Grids
162
Subsection: Children generally take half the available space
166
.yui-g .yui-gb .yui-u,
175
.yui-gd .yui-u {float:right;}
177
/*Float units (and sub grids) to the right */
187
.yui-g .yui-gc .yui-u,
191
.yui-gf .yui-u{float:right;}
193
/*Float units (and sub grids) to the left */
200
.yui-g .yui-gc div.first,
201
.yui-g .yui-ge div.first,
202
.yui-gc div.first div.first {float:left;}
210
.yui-g .yui-gf {width:49.1%;}
213
.yui-g .yui-gb .yui-u,
222
.yui-gd .yui-u {width:32%;margin-left:2.0%;}
224
/* Give IE some extra breathing room for 1/3-based rounding issues */
225
.yui-gb .yui-u {*width:31.8%;*margin-left:1.9%;}
228
.yui-gd .yui-u {width:66%;_width:65.7%;}
229
.yui-gd div.first {width:32%;_width:31.5%;}
232
.yui-gf .yui-u{width:74.2%;_width:74%;}
235
.yui-gf div.first {width:24%;_width:23.8%;}
237
.yui-g .yui-gb div.first,
240
.yui-gd div.first {margin-left:0;}
243
Section: Deep Nesting
245
.yui-g .yui-g .yui-u,
246
.yui-gb .yui-g .yui-u,
247
.yui-gc .yui-g .yui-u,
248
.yui-gd .yui-g .yui-u,
249
.yui-ge .yui-g .yui-u,
250
.yui-gf .yui-g .yui-u {width:49%;*width:48.1%;*margin-left:0;}
252
.yui-g .yui-gb div.first,
253
.yui-gb .yui-gb div.first {*margin-right:0;*width:32%;_width:31.7%;}
255
.yui-g .yui-gc div.first,
256
.yui-gd .yui-g {width:66%;}
258
.yui-gb .yui-g div.first {*margin-right:4%;_margin-right:1.3%;}
260
.yui-gb .yui-gc div.first,
261
.yui-gb .yui-gd div.first {*margin-right:0;}
263
.yui-gb .yui-gb .yui-u,
264
.yui-gb .yui-gc .yui-u {*margin-left:1.8%;_margin-left:4%;}
266
.yui-g .yui-gb .yui-u {_margin-left:1.0%;}
268
.yui-gb .yui-gd .yui-u {*width:66%;_width:61.2%;}
269
.yui-gb .yui-gd div.first {*width:31%;_width:29.5%;}
271
.yui-g .yui-gc .yui-u,
272
.yui-gb .yui-gc .yui-u {width:32%;_float:right;margin-right:0;_margin-left:0;}
273
.yui-gb .yui-gc div.first {width:66%;*float:left;*margin-left:0;}
275
.yui-gb .yui-ge .yui-u,
276
.yui-gb .yui-gf .yui-u {margin:0;}
278
.yui-gb .yui-gb .yui-u {_margin-left:.7%;}
280
.yui-gb .yui-g div.first,
281
.yui-gb .yui-gb div.first {*margin-left:0;}
283
.yui-gc .yui-g .yui-u,
284
.yui-gd .yui-g .yui-u {*width:48.1%;*margin-left:0;}
286
.yui-gb .yui-gd div.first {width:32%;}
287
.yui-g .yui-gd div.first {_width:29.9%;}
289
.yui-ge .yui-g {width:24%;}
290
.yui-gf .yui-g {width:74.2%;}
292
.yui-gb .yui-ge div.yui-u,
293
.yui-gb .yui-gf div.yui-u {float:right;}
294
.yui-gb .yui-ge div.first,
295
.yui-gb .yui-gf div.first {float:left;}
297
/* Width Accommodation for Nested Contexts */
298
.yui-gb .yui-ge .yui-u,
299
.yui-gb .yui-gf div.first {*width:24%;_width:20%;}
301
/* Width Accommodation for Nested Contexts */
302
.yui-gb .yui-ge div.first,
303
.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}
305
/* Patch for GD within GE */
306
.yui-ge div.first .yui-gd .yui-u {width:65%;}
307
.yui-ge div.first .yui-gd div.first {width:32%;}
319
.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}