You are here

slick.theme--grid.css in Slick Carousel 7.2

Block grid based on Foundation.

File

css/theme/slick.theme--grid.css
View source
  1. /**
  2. * @file
  3. * Block grid based on Foundation.
  4. */
  5. [class*="block-grid-"],
  6. .block [class*="block-grid-"],
  7. .item-list > [class*="block-grid-"] {
  8. display: block;
  9. list-style: none;
  10. padding: 0;
  11. margin: 0 -0.625rem;
  12. }
  13. [class*="block-grid-"]::before,
  14. [class*="block-grid-"]::after {
  15. content: " ";
  16. display: table;
  17. }
  18. [class*="block-grid-"]::after {
  19. clear: both;
  20. }
  21. [class*="block-grid-"] > .grid {
  22. display: block;
  23. float: left;
  24. height: auto;
  25. list-style: none;
  26. margin: 0;
  27. padding: 0 0.625rem 1.25rem;
  28. }
  29. .block-grid--centered[class*="block-grid"] {
  30. text-align: center;
  31. }
  32. .block-grid--centered[class*="block-grid"] > .grid,
  33. .item-list > .block-grid--centered[class*="block-grid"] > .grid {
  34. text-align: left;
  35. display: inline-block;
  36. float: none;
  37. vertical-align: top;
  38. }
  39. @media only screen {
  40. .small-block-grid-1 > .grid {
  41. width: 100%;
  42. }
  43. .small-block-grid-2 > .grid {
  44. width: 50%;
  45. }
  46. .small-block-grid-3 > .grid {
  47. width: 33.33333%;
  48. }
  49. .small-block-grid-4 > .grid {
  50. width: 25%;
  51. }
  52. .small-block-grid-5 > .grid {
  53. width: 20%;
  54. }
  55. .small-block-grid-6 > .grid {
  56. width: 16.66667%;
  57. }
  58. .small-block-grid-7 > .grid {
  59. width: 14.28571%;
  60. }
  61. .small-block-grid-8 > .grid {
  62. width: 12.5%;
  63. }
  64. .small-block-grid-9 > .grid {
  65. width: 11.11111%;
  66. }
  67. .small-block-grid-10 > .grid {
  68. width: 10%;
  69. }
  70. .small-block-grid-11 > .grid {
  71. width: 9.09091%;
  72. }
  73. .small-block-grid-12 > .grid {
  74. width: 8.33333%;
  75. }
  76. .small-block-grid-1 > .grid:nth-of-type(1n),
  77. .small-block-grid-2 > .grid:nth-of-type(1n),
  78. .small-block-grid-3 > .grid:nth-of-type(1n),
  79. .small-block-grid-4 > .grid:nth-of-type(1n),
  80. .small-block-grid-5 > .grid:nth-of-type(1n),
  81. .small-block-grid-6 > .grid:nth-of-type(1n),
  82. .small-block-grid-8 > .grid:nth-of-type(1n),
  83. .small-block-grid-7 > .grid:nth-of-type(1n),
  84. .small-block-grid-9 > .grid:nth-of-type(1n),
  85. .small-block-grid-10 > .grid:nth-of-type(1n),
  86. .small-block-grid-11 > .grid:nth-of-type(1n),
  87. .small-block-grid-12 > .grid:nth-of-type(1n) {
  88. clear: none;
  89. }
  90. .small-block-grid-1 > .grid:nth-of-type(1n+1),
  91. .small-block-grid-2 > .grid:nth-of-type(2n+1),
  92. .small-block-grid-3 > .grid:nth-of-type(3n+1),
  93. .small-block-grid-4 > .grid:nth-of-type(4n+1),
  94. .small-block-grid-5 > .grid:nth-of-type(5n+1),
  95. .small-block-grid-6 > .grid:nth-of-type(6n+1),
  96. .small-block-grid-7 > .grid:nth-of-type(7n+1),
  97. .small-block-grid-8 > .grid:nth-of-type(8n+1),
  98. .small-block-grid-9 > .grid:nth-of-type(9n+1),
  99. .small-block-grid-10 > .grid:nth-of-type(10n+1),
  100. .small-block-grid-11 > .grid:nth-of-type(11n+1),
  101. .small-block-grid-12 > .grid:nth-of-type(12n+1) {
  102. clear: both;
  103. }
  104. }
  105. /** 641px with 16px base font. */
  106. @media only screen and (min-width: 40.063em) {
  107. .medium-block-grid-1 > .grid {
  108. width: 100%;
  109. }
  110. .medium-block-grid-2 > .grid {
  111. width: 50%;
  112. }
  113. .medium-block-grid-3 > .grid {
  114. width: 33.33333%;
  115. }
  116. .medium-block-grid-4 > .grid {
  117. width: 25%;
  118. }
  119. .medium-block-grid-5 > .grid {
  120. width: 20%;
  121. }
  122. .medium-block-grid-6 > .grid {
  123. width: 16.66667%;
  124. }
  125. .medium-block-grid-7 > .grid {
  126. width: 14.28571%;
  127. }
  128. .medium-block-grid-8 > .grid {
  129. width: 12.5%;
  130. }
  131. .medium-block-grid-9 > .grid {
  132. width: 11.11111%;
  133. }
  134. .medium-block-grid-10 > .grid {
  135. width: 10%;
  136. }
  137. .medium-block-grid-11 > .grid {
  138. width: 9.09091%;
  139. }
  140. .medium-block-grid-12 > .grid {
  141. width: 8.33333%;
  142. }
  143. .medium-block-grid-1 > .grid:nth-of-type(1n),
  144. .medium-block-grid-2 > .grid:nth-of-type(1n),
  145. .medium-block-grid-3 > .grid:nth-of-type(1n),
  146. .medium-block-grid-4 > .grid:nth-of-type(1n),
  147. .medium-block-grid-5 > .grid:nth-of-type(1n),
  148. .medium-block-grid-6 > .grid:nth-of-type(1n),
  149. .medium-block-grid-7 > .grid:nth-of-type(1n),
  150. .medium-block-grid-8 > .grid:nth-of-type(1n),
  151. .medium-block-grid-9 > .grid:nth-of-type(1n),
  152. .medium-block-grid-10 > .grid:nth-of-type(1n),
  153. .medium-block-grid-11 > .grid:nth-of-type(1n),
  154. .medium-block-grid-12 > .grid:nth-of-type(1n) {
  155. clear: none;
  156. }
  157. .medium-block-grid-1 > .grid:nth-of-type(1n+1),
  158. .medium-block-grid-2 > .grid:nth-of-type(2n+1),
  159. .medium-block-grid-3 > .grid:nth-of-type(3n+1),
  160. .medium-block-grid-4 > .grid:nth-of-type(4n+1),
  161. .medium-block-grid-5 > .grid:nth-of-type(5n+1),
  162. .medium-block-grid-6 > .grid:nth-of-type(6n+1),
  163. .medium-block-grid-7 > .grid:nth-of-type(7n+1),
  164. .medium-block-grid-8 > .grid:nth-of-type(8n+1),
  165. .medium-block-grid-9 > .grid:nth-of-type(9n+1),
  166. .medium-block-grid-10 > .grid:nth-of-type(10n+1),
  167. .medium-block-grid-11 > .grid:nth-of-type(11n+1),
  168. .medium-block-grid-12 > .grid:nth-of-type(12n+1) {
  169. clear: both;
  170. }
  171. }
  172. /** 1025px with 16px base font. */
  173. @media only screen and (min-width: 64.063em) {
  174. .large-block-grid-1 > .grid {
  175. width: 100%;
  176. }
  177. .large-block-grid-2 > .grid {
  178. width: 50%;
  179. }
  180. .large-block-grid-3 > .grid {
  181. width: 33.33333%;
  182. }
  183. .large-block-grid-4 > .grid {
  184. width: 25%;
  185. }
  186. .large-block-grid-5 > .grid {
  187. width: 20%;
  188. }
  189. .large-block-grid-6 > .grid {
  190. width: 16.66667%;
  191. }
  192. .large-block-grid-7 > .grid {
  193. width: 14.28571%;
  194. }
  195. .large-block-grid-8 > .grid {
  196. width: 12.5%;
  197. }
  198. .large-block-grid-9 > .grid {
  199. width: 11.11111%;
  200. }
  201. .large-block-grid-10 > .grid {
  202. width: 10%;
  203. }
  204. .large-block-grid-11 > .grid {
  205. width: 9.09091%;
  206. }
  207. .large-block-grid-12 > .grid {
  208. width: 8.33333%;
  209. }
  210. .large-block-grid-1 > .grid:nth-of-type(1n),
  211. .large-block-grid-2 > .grid:nth-of-type(1n),
  212. .large-block-grid-3 > .grid:nth-of-type(1n),
  213. .large-block-grid-4 > .grid:nth-of-type(1n),
  214. .large-block-grid-5 > .grid:nth-of-type(1n),
  215. .large-block-grid-6 > .grid:nth-of-type(1n),
  216. .large-block-grid-7 > .grid:nth-of-type(1n),
  217. .large-block-grid-8 > .grid:nth-of-type(1n),
  218. .large-block-grid-9 > .grid:nth-of-type(1n),
  219. .large-block-grid-10 > .grid:nth-of-type(1n),
  220. .large-block-grid-11 > .grid:nth-of-type(1n),
  221. .large-block-grid-12 > .grid:nth-of-type(1n) {
  222. clear: none;
  223. }
  224. .large-block-grid-1 > .grid:nth-of-type(1n+1),
  225. .large-block-grid-2 > .grid:nth-of-type(2n+1),
  226. .large-block-grid-3 > .grid:nth-of-type(3n+1),
  227. .large-block-grid-4 > .grid:nth-of-type(4n+1),
  228. .large-block-grid-5 > .grid:nth-of-type(5n+1),
  229. .large-block-grid-6 > .grid:nth-of-type(6n+1),
  230. .large-block-grid-7 > .grid:nth-of-type(7n+1),
  231. .large-block-grid-8 > .grid:nth-of-type(8n+1),
  232. .large-block-grid-9 > .grid:nth-of-type(9n+1),
  233. .large-block-grid-10 > .grid:nth-of-type(10n+1),
  234. .large-block-grid-11 > .grid:nth-of-type(11n+1),
  235. .large-block-grid-12 > .grid:nth-of-type(12n+1) {
  236. clear: both;
  237. }
  238. }
  239. .slide--grid .slide__content {
  240. list-style: none;
  241. margin: 0 -0.625rem;
  242. padding: 0;
  243. }
  244. .slide--grid .grid__content {
  245. position: relative;
  246. }
  247. .slide--grid .slide__caption {
  248. max-width: 100%;
  249. }