/kai/public/css/grids.css

https://bitbucket.org/bbangert/kai/ · CSS · 283 lines · 168 code · 55 blank · 60 comment · 0 complexity · f5b65731d129c47ad226d77e32e298b9 MD5 · raw file

  1. /*
  2. Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  3. Code licensed under the BSD License:
  4. http://developer.yahoo.net/yui/license.txt
  5. version: 2.5.2
  6. */
  7. /*
  8. Note: Throughout this file, the *property filter is used to
  9. give a value to IE that other browsers do not see.
  10. */
  11. /*
  12. Section: General Rules
  13. */
  14. body {
  15. text-align:center;
  16. }
  17. #ft {
  18. clear:both;
  19. }
  20. /*
  21. Section: Page Width Rules (#doc, #doc2, #doc3, #doc4)
  22. */
  23. /*
  24. Subsection: General
  25. */
  26. #doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7 {
  27. margin:auto;
  28. text-align:left;
  29. width:57.69em;*width:56.25em;
  30. min-width:750px;
  31. }
  32. /*
  33. Subsection: 950 Centered (doc2)
  34. */
  35. #doc2 {
  36. width:73.076em;*width:71.25em;
  37. }
  38. /*
  39. Subsection: 100% (doc3)
  40. */
  41. #doc3 {
  42. /* Left and Right margins are not a structural part of Grids. Without them Grids
  43. works fine, but content bleeds to the very edge of the document, which often
  44. impairs readability and usability. They are
  45. provided because they prevent the content from "bleeding" into the browser's chrome.*/
  46. margin:auto 10px;
  47. width:auto;
  48. }
  49. /*
  50. Subsection: 974 Centered (doc4)
  51. */
  52. #doc4 {
  53. width:74.923em;*width:73.05em;
  54. }
  55. /*
  56. Section: Preset Template Rules (.yui-t[1-6])
  57. */
  58. /*
  59. Subsection: General
  60. */
  61. /* to preserve source-order independence for Gecko */
  62. .yui-b{position:relative;}
  63. .yui-b{_position:static;}
  64. #yui-main .yui-b{position:static;}
  65. #yui-main {width:100%;}
  66. .yui-t1 #yui-main,
  67. .yui-t2 #yui-main,
  68. .yui-t3 #yui-main{float:right;margin-left:-25em;/* IE: preserve layout at narrow widths */}
  69. .yui-t4 #yui-main,
  70. .yui-t5 #yui-main,
  71. .yui-t6 #yui-main{float:left;margin-right:-25em;/* IE: preserve layout at narrow widths */}
  72. /*
  73. Subsection: For Specific Template Presets
  74. */
  75. .yui-t1 .yui-b {float:left;width:12.30769em;*width:12.00em;}
  76. .yui-t1 #yui-main .yui-b{margin-left:13.30769em;*margin-left:13.05em;}
  77. .yui-t2 .yui-b {float:left;width:13.8461em;*width:13.50em;}
  78. .yui-t2 #yui-main .yui-b {margin-left:14.8461em;*margin-left:14.55em;}
  79. .yui-t3 .yui-b {float:left;width:23.0769em;*width:22.50em;}
  80. .yui-t3 #yui-main .yui-b {margin-left:24.0769em;*margin-left:23.62em;}
  81. .yui-t4 .yui-b {float:right;width:13.8456em;*width:13.50em;}
  82. .yui-t4 #yui-main .yui-b {margin-right:14.8456em;*margin-right:14.55em;}
  83. .yui-t5 .yui-b {float:right;width:18.4615em;*width:18.00em;}
  84. .yui-t5 #yui-main .yui-b {margin-right:19.4615em;*margin-right:19.125em;}
  85. .yui-t6 .yui-b {float:right;width:23.0769em;*width:22.50em;}
  86. .yui-t6 #yui-main .yui-b {margin-right:24.0769em;*margin-right:23.62em;}
  87. .yui-t7 #yui-main .yui-b {
  88. display:block;margin:0 0 1em 0;
  89. }
  90. #yui-main .yui-b {float:none;width:auto;}
  91. /*
  92. Section: Grids and Nesting Grids
  93. */
  94. /*
  95. Subsection: Children generally take half the available space
  96. */
  97. .yui-gb .yui-u,
  98. .yui-g .yui-gb .yui-u,
  99. .yui-gb .yui-g,
  100. .yui-gb .yui-gb,
  101. .yui-gb .yui-gc,
  102. .yui-gb .yui-gd,
  103. .yui-gb .yui-ge,
  104. .yui-gb .yui-gf,
  105. .yui-gc .yui-u,
  106. .yui-gc .yui-g,
  107. .yui-gd .yui-u {float:left;}
  108. /*Float units (and sub grids) to the right */
  109. .yui-g .yui-u,
  110. .yui-g .yui-g,
  111. .yui-g .yui-gb,
  112. .yui-g .yui-gc,
  113. .yui-g .yui-gd,
  114. .yui-g .yui-ge,
  115. .yui-g .yui-gf,
  116. .yui-gc .yui-u,
  117. .yui-gd .yui-g,
  118. .yui-g .yui-gc .yui-u,
  119. .yui-ge .yui-u,
  120. .yui-ge .yui-g,
  121. .yui-gf .yui-g,
  122. .yui-gf .yui-u{float:right;}
  123. /*Float units (and sub grids) to the left */
  124. .yui-g div.first,
  125. .yui-gb div.first,
  126. .yui-gc div.first,
  127. .yui-gd div.first,
  128. .yui-ge div.first,
  129. .yui-gf div.first,
  130. .yui-g .yui-gc div.first,
  131. .yui-g .yui-ge div.first,
  132. .yui-gc div.first div.first {float:left;}
  133. .yui-g .yui-u,
  134. .yui-g .yui-g,
  135. .yui-g .yui-gb,
  136. .yui-g .yui-gc,
  137. .yui-g .yui-gd,
  138. .yui-g .yui-ge,
  139. .yui-g .yui-gf {width:49.1%;}
  140. .yui-gb .yui-u,
  141. .yui-g .yui-gb .yui-u,
  142. .yui-gb .yui-g,
  143. .yui-gb .yui-gb,
  144. .yui-gb .yui-gc,
  145. .yui-gb .yui-gd,
  146. .yui-gb .yui-ge,
  147. .yui-gb .yui-gf,
  148. .yui-gc .yui-u,
  149. .yui-gc .yui-g,
  150. .yui-gd .yui-u {width:32%;margin-left:1.99%;}
  151. /* Give IE some extra breathing room for 1/3-based rounding issues */
  152. .yui-gb .yui-u {*margin-left:1.9%;*width:31.9%;}
  153. .yui-gc div.first,
  154. .yui-gd .yui-u {width:66%;}
  155. .yui-gd div.first {width:32%;}
  156. .yui-ge div.first,
  157. .yui-gf .yui-u{width:74.2%;}
  158. .yui-ge .yui-u,
  159. .yui-gf div.first {width:24%;}
  160. .yui-g .yui-gb div.first,
  161. .yui-gb div.first,
  162. .yui-gc div.first,
  163. .yui-gd div.first {margin-left:0;}
  164. /*
  165. Section: Deep Nesting
  166. */
  167. .yui-g .yui-g .yui-u,
  168. .yui-gb .yui-g .yui-u,
  169. .yui-gc .yui-g .yui-u,
  170. .yui-gd .yui-g .yui-u,
  171. .yui-ge .yui-g .yui-u,
  172. .yui-gf .yui-g .yui-u {width:49%;*width:48.1%;*margin-left:0;}
  173. .yui-g .yui-gb div.first,
  174. .yui-gb .yui-gb div.first {*margin-right:0;*width:32%;_width:31.7%;}
  175. .yui-g .yui-gc div.first,
  176. .yui-gd .yui-g {width:66%;}
  177. .yui-gb .yui-g div.first {*margin-right:4%;_margin-right:1.3%;}
  178. .yui-gb .yui-gc div.first,
  179. .yui-gb .yui-gd div.first {*margin-right:0;}
  180. .yui-gb .yui-gb .yui-u,
  181. .yui-gb .yui-gc .yui-u {*margin-left:1.8%;_margin-left:4%;}
  182. .yui-g .yui-gb .yui-u {_margin-left:1.0%;}
  183. .yui-gb .yui-gd .yui-u {*width:66%;_width:61.2%;}
  184. .yui-gb .yui-gd div.first {*width:31%;_width:29.5%;}
  185. .yui-g .yui-gc .yui-u,
  186. .yui-gb .yui-gc .yui-u {width:32%;_float:right;margin-right:0;_margin-left:0;}
  187. .yui-gb .yui-gc div.first {width:66%;*float:left;*margin-left:0;}
  188. .yui-gb .yui-ge .yui-u,
  189. .yui-gb .yui-gf .yui-u {margin:0;}
  190. .yui-gb .yui-gb .yui-u {_margin-left:.7%;}
  191. .yui-gb .yui-g div.first,
  192. .yui-gb .yui-gb div.first {*margin-left:0;}
  193. .yui-gc .yui-g .yui-u,
  194. .yui-gd .yui-g .yui-u {*width:48.1%;*margin-left:0;}s
  195. .yui-gb .yui-gd div.first {width:32%;}
  196. .yui-g .yui-gd div.first {_width:29.9%;}
  197. .yui-ge .yui-g {width:24%;}
  198. .yui-gf .yui-g {width:74.2%;}
  199. .yui-gb .yui-ge div.yui-u,
  200. .yui-gb .yui-gf div.yui-u {float:right;}
  201. .yui-gb .yui-ge div.first,
  202. .yui-gb .yui-gf div.first {float:left;}
  203. /* Width Accommodation for Nested Contexts */
  204. .yui-gb .yui-ge .yui-u,
  205. .yui-gb .yui-gf div.first {*width:24%;_width:20%;}
  206. /* Width Accommodation for Nested Contexts */
  207. .yui-gb .yui-ge div.first,
  208. .yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}
  209. /* Patch for GD within GE */
  210. .yui-ge div.first .yui-gd .yui-u {width:65%;}
  211. .yui-ge div.first .yui-gd div.first {width:32%;}
  212. /*
  213. Section: Clearing
  214. */
  215. #bd:after,
  216. .yui-g:after,
  217. .yui-gb:after,
  218. .yui-gc:after,
  219. .yui-gd:after,
  220. .yui-ge:after,
  221. .yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}
  222. #bd,
  223. .yui-g,
  224. .yui-gb,
  225. .yui-gc,
  226. .yui-gd,
  227. .yui-ge,
  228. .yui-gf{zoom:1;}