grid.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /* Artfully Masterminded by ZURB */
  2. /* --------------------------------------------------
  3. :: Grid
  4. This is the mobile-friendly, responsive grid that
  5. lets Foundation work much of its magic.
  6. -------------------------------------------------- */
  7. .container { padding: 0 20px; }
  8. .row { width: 100%; max-width: 980px; min-width: 727px; margin: 0 auto; }
  9. /* To fix the grid into a certain size, set max-width to width */
  10. .row .row { min-width: 0; }
  11. .column, .columns { margin-left: 4.4%; float: left; min-height: 1px; position: relative; }
  12. .column:first-child, .columns:first-child { margin-left: 0; }
  13. .row .one.columns { width: 4.3%; }
  14. .row .two.columns { width: 13%; }
  15. .row .three.columns { width: 21.68%; }
  16. .row .four.columns { width: 30.37%; }
  17. .row .five.columns { width: 39.1%; }
  18. .row .six.columns { width: 47.8%; }
  19. .row .seven.columns { width: 56.5%; }
  20. .row .eight.columns { width: 65.2%; }
  21. .row .nine.columns { width: 73.9%; }
  22. .row .ten.columns { width: 82.6%; }
  23. .row .eleven.columns { width: 91.3%; }
  24. .row .twelve.columns { width: 100%; }
  25. .row .offset-by-one { margin-left: 13.1%; }
  26. .row .offset-by-two { margin-left: 21.8%; }
  27. .row .offset-by-three { margin-left: 30.5%; }
  28. .row .offset-by-four { margin-left: 39.2%; }
  29. .row .offset-by-five { margin-left: 47.9%; }
  30. .row .offset-by-six { margin-left: 56.6%; }
  31. .row .offset-by-seven { margin-left: 65.3%; }
  32. .row .offset-by-eight { margin-left: 74.0%; }
  33. .row .offset-by-nine { margin-left: 82.7%; }
  34. .row .offset-by-ten { margin-left: 91.4%; }
  35. .row .centered { float: none; margin: 0 auto; }
  36. .row .offset-by-one:first-child { margin-left: 8.7%; }
  37. .row .offset-by-two:first-child { margin-left: 17.4%; }
  38. .row .offset-by-three:first-child { margin-left: 26.1%; }
  39. .row .offset-by-four:first-child { margin-left: 34.8%; }
  40. .row .offset-by-five:first-child { margin-left: 43.5%; }
  41. .row .offset-by-six:first-child { margin-left: 52.2%; }
  42. .row .offset-by-seven:first-child { margin-left: 60.9%; }
  43. .row .offset-by-eight:first-child { margin-left: 69.6%; }
  44. .row .offset-by-nine:first-child { margin-left: 78.3%; }
  45. .row .offset-by-ten:first-child { margin-left: 87%; }
  46. .row .offset-by-eleven:first-child { margin-left: 95.7%; }
  47. /* Source Ordering */
  48. .push-two { left: 17.4% }
  49. .push-three { left: 26.1%; }
  50. .push-four { left: 34.8%; }
  51. .push-five { left: 43.5%; }
  52. .push-six { left: 52.2%; }
  53. .push-seven { left: 60.9%; }
  54. .push-eight { left: 69.6%; }
  55. .push-nine { left: 78.3%; }
  56. .push-ten { left: 87%; }
  57. .pull-two { right: 17.4% }
  58. .pull-three { right: 26.1%; }
  59. .pull-four { right: 34.8%; }
  60. .pull-five { right: 43.5%; }
  61. .pull-six { right: 52.2%; }
  62. .pull-seven { right: 60.9%; }
  63. .pull-eight { right: 69.6%; }
  64. .pull-nine { right: 78.3%; }
  65. .pull-ten { right: 87%; }
  66. img, object, embed { max-width: 100%; height: auto; }
  67. img { -ms-interpolation-mode: bicubic; }
  68. #map_canvas img, .map_canvas img {max-width: none!important;}
  69. /* Nicolas Gallagher's micro clearfix */
  70. .row:before, .row:after, .clearfix:before, .clearfix:after { content:""; display:table; }
  71. .row:after, .clearfix:after { clear: both; }
  72. .row, .clearfix { zoom: 1; }
  73. /* --------------------------------------------------
  74. :: Block grids
  75. These are 2-up, 3-up, 4-up and 5-up ULs, suited
  76. for repeating blocks of content. Add 'mobile' to
  77. them to switch them just like the layout grid
  78. (one item per line) on phones
  79. For IE7/8 compatibility block-grid items need to be
  80. the same height. You can optionally uncomment the
  81. lines below to support arbitrary height, but know
  82. that IE7/8 do not support :nth-child.
  83. -------------------------------------------------- */
  84. .block-grid { display: block; overflow: hidden; }
  85. .block-grid>li { display: block; height: auto; float: left; }
  86. .block-grid.two-up { margin-left: -4% }
  87. .block-grid.two-up>li { margin-left: 4%; width: 46%; }
  88. /* .block-grid.two-up>li:nth-child(2n+1) {clear: left;} */
  89. .block-grid.three-up { margin-left: -2% }
  90. .block-grid.three-up>li { margin-left: 2%; width: 31.3%; }
  91. /* .block-grid.three-up>li:nth-child(3n+1) {clear: left;} */
  92. .block-grid.four-up { margin-left: -2% }
  93. .block-grid.four-up>li { margin-left: 2%; width: 23%; }
  94. /* .block-grid.four-up>li:nth-child(4n+1) {clear: left;} */
  95. .block-grid.five-up { margin-left: -1.5% }
  96. .block-grid.five-up>li { margin-left: 1.5%; width: 18.5%; }
  97. /* .block-grid.five-up>li:nth-child(5n+1) {clear: left;} */