Advertisement
Guest User

grid.css

a guest
Jul 27th, 2013
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.17 KB | None | 0 0
  1. /* DESCRIPTION
  2. -----------------------------------------
  3.  
  4. This stylesheet handles the underlying 12-column grid structure.
  5.  
  6. */
  7.  
  8. .grid-container {
  9.     padding: 0 20px;
  10. }
  11. .grid-row {
  12.     width: 100%;
  13.     max-width: 1140px;
  14.     min-width: 760px;
  15.     margin: 0 auto;
  16.     overflow: hidden;
  17. }
  18. .wide-row {
  19.     width: 100%;
  20.     max-width: 100%;
  21.     min-width: 600px;
  22.     margin: 0 auto;
  23.     overflow: hidden;
  24. }
  25. .narrow {
  26.     width: 100%;
  27.     max-width: 600px;
  28.     min-width: 100px;
  29.     margin: 0 auto;
  30.     overflow: hidden;
  31. }
  32. .col1,
  33. .col2,
  34. .col3,
  35. .col4,
  36. .col5,
  37. .col6,
  38. .col7,
  39. .col8,
  40. .col9,
  41. .col10,
  42. .col11,
  43. .splitcol {
  44.     margin-right:3.8%;
  45.     float:left;
  46.     min-height:1px;
  47. }
  48. .col1 {
  49.     width: 4.85%;
  50. }
  51. .ie .col1 {
  52.     width: 4.7%;
  53. }
  54. .col1 .splitcol {
  55.     width: 10.8%;
  56.     margin-right: 78.35%;
  57. }
  58. .col1 .splitcol.marged-col {
  59.     margin-bottom: 78.35%;
  60. }
  61. .col2 {
  62.     width: 13.45%;
  63. }
  64. .ie .col2 {
  65.     width: 13.2%;
  66. }
  67. .col2 .splitcol {
  68.     width: 35.85%;
  69.     margin-right: 28.2%;
  70. }
  71. .col2 .splitcol.marged-col {
  72.     margin-bottom: 28.2%;
  73. }
  74. .col3 {
  75.     width: 22.05%;
  76. }
  77. .ie .col3 {
  78.     width: 22.05%;
  79. }
  80. .col3 .splitcol {
  81.     width: 41.4%;
  82.     margin-right: 17.15%;
  83. }
  84. .col3 .splitcol.marged-col {
  85.     margin-bottom: 17.15%;
  86. }
  87. .col4 {
  88.     width: 30.75%;
  89. }
  90. .ie .col4 {
  91.     width: 30.6%;
  92. }
  93. .col4 .splitcol {
  94.     width: 43.8%;
  95.     margin-right: 12.35%;
  96. }
  97. .col4 .splitcol.marged-col {
  98.     margin-bottom: 12.35%;
  99. }
  100. .col5 {
  101.     width: 39.45%;
  102. }
  103. .ie .col5 {
  104.     width: 39%;
  105. }
  106. .col5 .splitcol {
  107.     width: 45.2%;
  108.     margin-right: 9.55%;
  109. }
  110. .col5 .splitcol.marged-col {
  111.     margin-bottom: 9.55%;
  112. }
  113. .col6 {
  114.     width: 48%;
  115. }
  116. .ie .col6 {
  117.     width: 48%;
  118. }
  119. .col6 .splitcol {
  120.     width: 46%;
  121.     margin-right: 7.95%;
  122. }
  123. .col6 .splitcol.marged-col {
  124.     margin-bottom: 7.95%;
  125. }
  126. .col7 {
  127.     width: 56.75%;
  128. }
  129. .ie .col7 {
  130.     width: 56.75%;
  131. }
  132. .col7 .splitcol {
  133.     width: 46.65%;
  134.     margin-right: 6.65%;
  135. }
  136. .col7 .splitcol.marged-col {
  137.     margin-bottom: 6.65%;
  138. }
  139. .col8 {
  140.     width: 65.4%;
  141. }
  142. .ie .col8 {
  143.     width: 61.6%;
  144. }
  145. .col8 .splitcol {
  146.     width: 47.1%;
  147.     margin-right: 5.75%;
  148. }
  149. .col8 .splitcol.marged-col {
  150.     margin-bottom: 5.75%;
  151. }
  152. .col9 {
  153.     width: 74.05%;
  154. }
  155. .ie .col9 {
  156.     width: 74.05%;
  157. }
  158. .col9 .splitcol {
  159.     width: 47.45%;
  160.     margin-right: 5.05%;
  161. }
  162. .col9 .splitcol.marged-col {
  163.     margin-bottom: 5.05%;
  164. }
  165. .col10 {
  166.     width: 82.7%;
  167. }
  168. .ie .col10 {
  169.     width: 82%;
  170. }
  171. .col10 .splitcol {
  172.     width: 47.7%;
  173.     margin-right: 4.55%;
  174. }
  175. .col10 .splitcol.marged-col {
  176.     margin-bottom: 4.55%;
  177. }
  178. .col11 {
  179.     width: 91.35%;
  180. }
  181. .ie .col11 {
  182.     width: 91.35%;
  183. }
  184. .col11 .splitcol {
  185.     width: 47.9%;
  186.     margin-right: 4.1%;
  187. }
  188. .col11 .splitcol.marged-col {
  189.     margin-bottom: 4.1%;
  190. }
  191. .col12 {
  192.     width: 100%; float: left;
  193. }
  194. .col12 .splitcol {
  195.     width: 48%;
  196.     margin-right: 3.8%;
  197. }
  198. .last,
  199. .col1:last-child,
  200. .col2:last-child,
  201. .col3:last-child,
  202. .col4:last-child,
  203. .col5:last-child,
  204. .col6:last-child,
  205. .col7:last-child,
  206. .col8:last-child,
  207. .col9:last-child,
  208. .col10:last-child,
  209. .col11:last-child,
  210. .splitcol:last-of-type {
  211.     margin-right: 0 !important;
  212. }
  213. img,
  214. object,
  215. embed,
  216. iframe {
  217.     max-width: 100%;
  218.     -wekit-box-sizing: border-box;
  219.     -moz-box-sizing: border-box;
  220.     box-sizing: border-box;
  221. }
  222. img {
  223.     height: auto;
  224. }
  225. .marged-col {
  226.     margin-bottom: 3.8%;
  227. }
  228.  
  229. /* MOBILE
  230. ----------------------------------------- */
  231. @media handheld, only screen and (max-width: 767px) {
  232.     body,
  233.     .grid-container,
  234.     .grid-row,
  235.     .wide-row {
  236.         width: 100%;
  237.         min-width: 0;
  238.         margin-left: 0;
  239.         margin-right: 0;
  240.         padding-left: 0;
  241.         padding-right: 0;
  242.     }
  243.     .col1, .col2, .col3, .col4, .col5, .col6, .col7, .col8, .col9, .col10, .col11, .col12 {
  244.         width: auto;
  245.         float: none;
  246.         margin-left: 0;
  247.         margin-right: 0;
  248.         padding: 0 2.4em;
  249.         overflow: hidden;
  250.     }
  251.     .col1 .splitcol, .col2 .splitcol, .col3 .splitcol, .col4 .splitcol, .col5 .splitcol, .col6 .splitcol, .col7 .splitcol, .col8 .splitcol, .col9 .splitcol, .col10 .splitcol, .col11 .splitcol, .col12 .splitcol {
  252.         width: 48%;
  253.         margin-right: 3.8%;
  254.     }
  255.     .col1 .splitcol.marged-col, .col2 .splitcol.marged-col, .col3 .splitcol.marged-col, .col4 .splitcol.marged-col, .col5 .splitcol.marged-col, .col6 .splitcol.marged-col, .col7 .splitcol.marged-col, .col8 .splitcol.marged-col, .col9 .splitcol.marged-col, .col10 .splitcol.marged-col, .col11 .splitcol.marged-col, .col12 .splitcol.marged-col {
  256.         margin-bottom: 3.8%;
  257.     }
  258.     .content-container .col1,
  259.     .content-container .col2,
  260.     .content-container .col3,
  261.     .content-container .col4,
  262.     .content-container .col5,
  263.     .content-container .col6,
  264.     .content-container .col7,
  265.     .content-container .col8,
  266.     .content-container .col9,
  267.     .content-container .col10,
  268.     .content-container .col11,
  269.     .content-container .col12 {
  270.         margin: 2.4em 0 0;
  271.     }
  272. }
  273.  
  274. @media handheld, only screen and (max-width: 324px) {
  275.     .col1, .col2, .col3, .col4, .col5, .col6, .col7, .col8, .col9, .col10, .col11, .col12 {
  276.         padding: 0 1.2em;
  277.     }
  278.     .splitcol, .col1 .splitcol, .col2 .splitcol, .col3 .splitcol, .col4 .splitcol, .col5 .splitcol, .col6 .splitcol, .col7 .splitcol, .col8 .splitcol, .col9 .splitcol, .col10 .splitcol, .col11 .splitcol, .col12 .splitcol {
  279.         width: auto;
  280.         float: none;
  281.         margin-left: 0;
  282.         margin-right: 0;
  283.         overflow: hidden;
  284.     }
  285.     .marged-col,
  286.     .splitcol.marged-col {
  287.         margin-bottom: 2.4em !important;
  288.     }
  289. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement