2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
10 * The YUI CSS Foundation uses the *property and _property CSS filter
11 * techniques to shield a value from A-grade browsers [1] other than
12 * IE6 & IE7 (*property) and IE6 (_property)
15 Section: General Rules
24 Section: Page Width Rules (#doc, #doc2, #doc3, #doc4)
31 .yui3-d1f, /* 750px fixed */
33 .yui3-d2f, /* 950px fixed */
35 .yui3-d3f { /* 974px fixed */
39 *width: 56.25em; /* doc1*/
54 Subsection: 100% (doc)
57 /* Left and Right margins are not a structural part of Grids. Without them Grids
58 works fine, but content bleeds to the very edge of the document, which often
59 impairs readability and usability. They are
60 provided because they prevent the content from "bleeding" into the browser's chrome.*/
69 Subsection: 950 Centered (doc2)
79 Subsection: 974 Centered (doc3)
89 Section: Preset Template Rules (.yui3-t[1-6])
95 /* to preserve source-order independence for Gecko without breaking IE */
110 .yui3-t3 .yui3-main {
112 /* IE: preserve layout at narrow widths */
117 .yui3-t6 .yui3-main {
119 /* IE: preserve layout at narrow widths */
123 /* Subsection: For Specific Template Presets */
126 * Nudge down to get to 13px equivalent for these form elements
130 TODO Create t1-6's that are based on fixed widths
132 /* t1 narrow block = left, equivalent of 160px */
138 .yui3-t1 .yui3-main .yui3-b {
139 margin-left: 13.30769em;
140 *margin-left:12.975em;
142 /* t2 narrow block = left, equivalent of 180px */
148 .yui3-t2 .yui3-main .yui3-b {
149 margin-left: 14.84615em;
150 *margin-left: 14.475em;
152 /* t3 narrow block = left, equivalent of 300px */
158 .yui3-t3 .yui3-main .yui3-b {
159 margin-left: 24.0769em;
160 *margin-left: 23.475em;
162 /* t4 narrow block = right, equivalent of 180px */
168 .yui3-t4 .yui3-main .yui3-b {
169 margin-right: 14.8456em;
170 *margin-right: 14.475em;
172 /* t5 narrow block = right, equivalent of 240px */
178 .yui3-t5 .yui3-main .yui3-b {
179 margin-right: 19.4615em;
180 *margin-right: 18.975em;
182 /* t6 narrow block = equivalent of 300px */
188 .yui3-t6 .yui3-main .yui3-b {
189 margin-right: 24.0769em;
190 *margin-right: 23.475em;
199 Section: Grids and Nesting Grids
203 Subsection: Children generally take half the available space
207 .yui3-g .yui3-gb .yui3-u,
220 /*Float units (and sub grids) to the right */
230 .yui3-g .yui3-gc .yui3-u,
238 /*Float units (and sub grids) to the left */
245 .yui3-g .yui3-gc div.first,
246 .yui3-g .yui3-ge div.first,
247 .yui3-gc div.first div.first {
262 .yui3-g .yui3-gb .yui3-u,
276 /* Give IE some extra breathing room for 1/3-based rounding issues */
304 .yui3-g .yui3-gb div.first,
312 Section: Deep Nesting
314 .yui3-g .yui3-g .yui3-u,
315 .yui3-gb .yui3-g .yui3-u,
316 .yui3-gc .yui3-g .yui3-u,
317 .yui3-gd .yui3-g .yui3-u,
318 .yui3-ge .yui3-g .yui3-u,
319 .yui3-gf .yui3-g .yui3-u {
325 .yui3-g .yui3-gb div.first,
326 .yui3-gb .yui3-gb div.first {
332 .yui3-g .yui3-gc div.first,
337 .yui3-gb .yui3-g div.first {
342 .yui3-gb .yui3-gc div.first,
343 .yui3-gb .yui3-gd div.first {
347 .yui3-gb .yui3-gb .yui3-u,
348 .yui3-gb .yui3-gc .yui3-u {
353 .yui3-g .yui3-gb .yui3-u {
357 .yui3-gb .yui3-gd .yui3-u {
361 .yui3-gb .yui3-gd div.first {
366 .yui3-g .yui3-gc .yui3-u,
367 .yui3-gb .yui3-gc .yui3-u {
373 .yui3-gb .yui3-gc div.first {
379 .yui3-gb .yui3-ge .yui3-u,
380 .yui3-gb .yui3-gf .yui3-u {
384 .yui3-gb .yui3-gb .yui3-u {
388 .yui3-gb .yui3-g div.first,
389 .yui3-gb .yui3-gb div.first {
393 .yui3-gc .yui3-g .yui3-u,
394 .yui3-gd .yui3-g .yui3-u {
399 .yui3-gb .yui3-gd div.first {
402 .yui3-g .yui3-gd div.first {
413 .yui3-gb .yui3-ge div.yui3-u,
414 .yui3-gb .yui3-gf div.yui3-u {
417 .yui3-gb .yui3-ge div.first,
418 .yui3-gb .yui3-gf div.first {
422 /* Width Accommodation for Nested Contexts */
423 .yui3-gb .yui3-ge .yui3-u,
424 .yui3-gb .yui3-gf div.first {
429 /* Width Accommodation for Nested Contexts */
430 .yui3-gb .yui3-ge div.first,
431 .yui3-gb .yui3-gf .yui3-u {
436 /* Patch for GD within GE */
437 .yui3-ge div.first .yui3-gd .yui3-u {
440 .yui3-ge div.first .yui3-gd div.first {
445 Section: Clearing. zoom for IE, :after for others