grid.css 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. /* --------------------------------------------------------------
  2. grid.css
  3. * Sets up an easy-to-use grid of 24 columns.
  4. By default, the grid is 950px wide, with 24 columns
  5. spanning 30px, and a 10px margin between columns.
  6. If you need fewer or more columns, namespaces or semantic
  7. element names, use the compressor script (lib/compress.rb)
  8. -------------------------------------------------------------- */
  9. /* A container should group all your columns. */
  10. .container {
  11. width: 950px;
  12. margin: 0 auto;
  13. }
  14. /* Use this class on any .span / container to see the grid. */
  15. .showgrid {
  16. background: url(src/grid.png);
  17. }
  18. /* Columns
  19. -------------------------------------------------------------- */
  20. /* Sets up basic grid floating and margin. */
  21. .column, .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-11, .span-12, .span-13, .span-14, .span-15, .span-16, .span-17, .span-18, .span-19, .span-20, .span-21, .span-22, .span-23, .span-24 {
  22. float: left;
  23. margin-right: 10px;
  24. }
  25. /* The last column in a row needs this class. */
  26. .last { margin-right: 0; }
  27. /* Use these classes to set the width of a column. */
  28. .span-1 {width: 30px;}
  29. .span-2 {width: 70px;}
  30. .span-3 {width: 110px;}
  31. .span-4 {width: 150px;}
  32. .span-5 {width: 190px;}
  33. .span-6 {width: 230px;}
  34. .span-7 {width: 270px;}
  35. .span-8 {width: 310px;}
  36. .span-9 {width: 350px;}
  37. .span-10 {width: 390px;}
  38. .span-11 {width: 430px;}
  39. .span-12 {width: 470px;}
  40. .span-13 {width: 510px;}
  41. .span-14 {width: 550px;}
  42. .span-15 {width: 590px;}
  43. .span-16 {width: 630px;}
  44. .span-17 {width: 670px;}
  45. .span-18 {width: 710px;}
  46. .span-19 {width: 750px;}
  47. .span-20 {width: 790px;}
  48. .span-21 {width: 830px;}
  49. .span-22 {width: 870px;}
  50. .span-23 {width: 910px;}
  51. .span-24 {width:950px; margin-right:0;}
  52. /* Use these classes to set the width of an input. */
  53. input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {
  54. border-left-width: 1px;
  55. border-right-width: 1px;
  56. padding-left: 5px;
  57. padding-right: 5px;
  58. }
  59. input.span-1, textarea.span-1 { width: 18px; }
  60. input.span-2, textarea.span-2 { width: 58px; }
  61. input.span-3, textarea.span-3 { width: 98px; }
  62. input.span-4, textarea.span-4 { width: 138px; }
  63. input.span-5, textarea.span-5 { width: 178px; }
  64. input.span-6, textarea.span-6 { width: 218px; }
  65. input.span-7, textarea.span-7 { width: 258px; }
  66. input.span-8, textarea.span-8 { width: 298px; }
  67. input.span-9, textarea.span-9 { width: 338px; }
  68. input.span-10, textarea.span-10 { width: 378px; }
  69. input.span-11, textarea.span-11 { width: 418px; }
  70. input.span-12, textarea.span-12 { width: 458px; }
  71. input.span-13, textarea.span-13 { width: 498px; }
  72. input.span-14, textarea.span-14 { width: 538px; }
  73. input.span-15, textarea.span-15 { width: 578px; }
  74. input.span-16, textarea.span-16 { width: 618px; }
  75. input.span-17, textarea.span-17 { width: 658px; }
  76. input.span-18, textarea.span-18 { width: 698px; }
  77. input.span-19, textarea.span-19 { width: 738px; }
  78. input.span-20, textarea.span-20 { width: 778px; }
  79. input.span-21, textarea.span-21 { width: 818px; }
  80. input.span-22, textarea.span-22 { width: 858px; }
  81. input.span-23, textarea.span-23 { width: 898px; }
  82. input.span-24, textarea.span-24 { width: 938px; }
  83. /* Add these to a column to append empty cols. */
  84. .append-1 { padding-right: 40px;}
  85. .append-2 { padding-right: 80px;}
  86. .append-3 { padding-right: 120px;}
  87. .append-4 { padding-right: 160px;}
  88. .append-5 { padding-right: 200px;}
  89. .append-6 { padding-right: 240px;}
  90. .append-7 { padding-right: 280px;}
  91. .append-8 { padding-right: 320px;}
  92. .append-9 { padding-right: 360px;}
  93. .append-10 { padding-right: 400px;}
  94. .append-11 { padding-right: 440px;}
  95. .append-12 { padding-right: 480px;}
  96. .append-13 { padding-right: 520px;}
  97. .append-14 { padding-right: 560px;}
  98. .append-15 { padding-right: 600px;}
  99. .append-16 { padding-right: 640px;}
  100. .append-17 { padding-right: 680px;}
  101. .append-18 { padding-right: 720px;}
  102. .append-19 { padding-right: 760px;}
  103. .append-20 { padding-right: 800px;}
  104. .append-21 { padding-right: 840px;}
  105. .append-22 { padding-right: 880px;}
  106. .append-23 { padding-right: 920px;}
  107. /* Add these to a column to prepend empty cols. */
  108. .prepend-1 { padding-left: 40px;}
  109. .prepend-2 { padding-left: 80px;}
  110. .prepend-3 { padding-left: 120px;}
  111. .prepend-4 { padding-left: 160px;}
  112. .prepend-5 { padding-left: 200px;}
  113. .prepend-6 { padding-left: 240px;}
  114. .prepend-7 { padding-left: 280px;}
  115. .prepend-8 { padding-left: 320px;}
  116. .prepend-9 { padding-left: 360px;}
  117. .prepend-10 { padding-left: 400px;}
  118. .prepend-11 { padding-left: 440px;}
  119. .prepend-12 { padding-left: 480px;}
  120. .prepend-13 { padding-left: 520px;}
  121. .prepend-14 { padding-left: 560px;}
  122. .prepend-15 { padding-left: 600px;}
  123. .prepend-16 { padding-left: 640px;}
  124. .prepend-17 { padding-left: 680px;}
  125. .prepend-18 { padding-left: 720px;}
  126. .prepend-19 { padding-left: 760px;}
  127. .prepend-20 { padding-left: 800px;}
  128. .prepend-21 { padding-left: 840px;}
  129. .prepend-22 { padding-left: 880px;}
  130. .prepend-23 { padding-left: 920px;}
  131. /* Border on right hand side of a column. */
  132. .border {
  133. padding-right: 4px;
  134. margin-right: 5px;
  135. border-right: 1px solid #ddd;
  136. }
  137. /* Border with more whitespace, spans one column. */
  138. .colborder {
  139. padding-right: 24px;
  140. margin-right: 25px;
  141. border-right: 1px solid #ddd;
  142. }
  143. /* Use these classes on an element to push it into the
  144. next column, or to pull it into the previous column. */
  145. .pull-1 { margin-left: -40px; }
  146. .pull-2 { margin-left: -80px; }
  147. .pull-3 { margin-left: -120px; }
  148. .pull-4 { margin-left: -160px; }
  149. .pull-5 { margin-left: -200px; }
  150. .pull-6 { margin-left: -240px; }
  151. .pull-7 { margin-left: -280px; }
  152. .pull-8 { margin-left: -320px; }
  153. .pull-9 { margin-left: -360px; }
  154. .pull-10 { margin-left: -400px; }
  155. .pull-11 { margin-left: -440px; }
  156. .pull-12 { margin-left: -480px; }
  157. .pull-13 { margin-left: -520px; }
  158. .pull-14 { margin-left: -560px; }
  159. .pull-15 { margin-left: -600px; }
  160. .pull-16 { margin-left: -640px; }
  161. .pull-17 { margin-left: -680px; }
  162. .pull-18 { margin-left: -720px; }
  163. .pull-19 { margin-left: -760px; }
  164. .pull-20 { margin-left: -800px; }
  165. .pull-21 { margin-left: -840px; }
  166. .pull-22 { margin-left: -880px; }
  167. .pull-23 { margin-left: -920px; }
  168. .pull-24 { margin-left: -960px; }
  169. .pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float: left; position:relative;}
  170. .push-1 { margin: 0 -40px 1.5em 40px; }
  171. .push-2 { margin: 0 -80px 1.5em 80px; }
  172. .push-3 { margin: 0 -120px 1.5em 120px; }
  173. .push-4 { margin: 0 -160px 1.5em 160px; }
  174. .push-5 { margin: 0 -200px 1.5em 200px; }
  175. .push-6 { margin: 0 -240px 1.5em 240px; }
  176. .push-7 { margin: 0 -280px 1.5em 280px; }
  177. .push-8 { margin: 0 -320px 1.5em 320px; }
  178. .push-9 { margin: 0 -360px 1.5em 360px; }
  179. .push-10 { margin: 0 -400px 1.5em 400px; }
  180. .push-11 { margin: 0 -440px 1.5em 440px; }
  181. .push-12 { margin: 0 -480px 1.5em 480px; }
  182. .push-13 { margin: 0 -520px 1.5em 520px; }
  183. .push-14 { margin: 0 -560px 1.5em 560px; }
  184. .push-15 { margin: 0 -600px 1.5em 600px; }
  185. .push-16 { margin: 0 -640px 1.5em 640px; }
  186. .push-17 { margin: 0 -680px 1.5em 680px; }
  187. .push-18 { margin: 0 -720px 1.5em 720px; }
  188. .push-19 { margin: 0 -760px 1.5em 760px; }
  189. .push-20 { margin: 0 -800px 1.5em 800px; }
  190. .push-21 { margin: 0 -840px 1.5em 840px; }
  191. .push-22 { margin: 0 -880px 1.5em 880px; }
  192. .push-23 { margin: 0 -920px 1.5em 920px; }
  193. .push-24 { margin: 0 -960px 1.5em 960px; }
  194. .push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float: left; position:relative;}
  195. /* Misc classes and elements
  196. -------------------------------------------------------------- */
  197. /* In case you need to add a gutter above/below an element */
  198. div.prepend-top, .prepend-top {
  199. margin-top:1.5em;
  200. }
  201. div.append-bottom, .append-bottom {
  202. margin-bottom:1.5em;
  203. }
  204. /* Use a .box to create a padded box inside a column. */
  205. .box {
  206. padding: 1.5em;
  207. margin-bottom: 1.5em;
  208. background: #e5eCf9;
  209. }
  210. /* Use this to create a horizontal ruler across a column. */
  211. hr {
  212. background: #ddd;
  213. color: #ddd;
  214. clear: both;
  215. float: none;
  216. width: 100%;
  217. height: 1px;
  218. margin: 0 0 1.45em;
  219. border: none;
  220. }
  221. hr.space {
  222. background: #fff;
  223. color: #fff;
  224. visibility: hidden;
  225. }
  226. /* Clearing floats without extra markup
  227. Based on How To Clear Floats Without Structural Markup by PiE
  228. [http://www.positioniseverything.net/easyclearing.html] */
  229. .clearfix:after, .container:after {
  230. content: "\0020";
  231. display: block;
  232. height: 0;
  233. clear: both;
  234. visibility: hidden;
  235. overflow:hidden;
  236. }
  237. .clearfix, .container {display: block;}
  238. /* Regular clearing
  239. apply to column that should drop below previous ones. */
  240. .clear { clear:both; }