cards.html 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. ---
  2. title: Cards
  3. page-header: Cards
  4. menu: base.cards.base
  5. ---
  6. {% assign cards-stack = 'First,Second,Third' | split: ',' %}
  7. {% assign cards-stack-colors = 'red,green,blue' | split: ',' %}
  8. <div class="row row-cards">
  9. <div class="col-md-6 col-lg-3">
  10. <div class="card">
  11. <div class="card-header">
  12. <h3 class="card-title">Card title</h3>
  13. </div>
  14. <div class="card-body">Simple card</div>
  15. </div>
  16. </div>
  17. <div class="col-md-6 col-lg-3">
  18. <div class="card">
  19. <div class="card-header card-header-light">
  20. <h3 class="card-title">Card title</h3>
  21. </div>
  22. <div class="card-body">Card with header background</div>
  23. </div>
  24. </div>
  25. <div class="col-md-6 col-lg-3">
  26. <div class="card card-borderless">
  27. <div class="card-body">
  28. <h3 class="card-title">Card title</h3>
  29. <div>Card without border</div>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="col-md-6 col-lg-3">
  34. <div class="card">
  35. <div class="card-header">
  36. <h3 class="card-title">Card title <span class="card-subtitle">Subtitle</span></h3>
  37. </div>
  38. <div class="card-body">Card with title and subtitle</div>
  39. </div>
  40. </div>
  41. <div class="col-md-6 col-lg-3">
  42. <a href="#" class="card card-link">
  43. <div class="card-body">Default hover effect</div>
  44. </a>
  45. </div>
  46. <div class="col-md-6 col-lg-3">
  47. <a href="#" class="card card-link card-link-rotate">
  48. <div class="card-body">Rotate hover effect</div>
  49. </a>
  50. </div>
  51. <div class="col-md-6 col-lg-3">
  52. <a href="#" class="card card-link card-link-pop">
  53. <div class="card-body">Pop hover effect</div>
  54. </a>
  55. </div>
  56. <div class="col-md-6 col-lg-3">
  57. </div>
  58. <div class="col-md-6 col-lg-3">
  59. <div class="card card-rotate-right">
  60. <div class="card-body">Card rotate right</div>
  61. </div>
  62. </div>
  63. <div class="col-md-6 col-lg-3">
  64. <div class="card card-rotate-left">
  65. <div class="card-body">Card rotate left</div>
  66. </div>
  67. </div>
  68. <div class="col-md-6 col-lg-3">
  69. <div class="card card-active">
  70. <div class="card-body">
  71. <p>This is a card with active state.</p>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="col-md-6 col-lg-3">
  76. <div class="card card-inactive">
  77. <div class="card-body">
  78. <p>This is some text inactive state.</p>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="col-md-6 col-lg-3">
  83. <div class="card">
  84. <div class="card-stamp">
  85. <div class="card-stamp-icon bg-yellow">
  86. {% include ui/icon.html icon="bell" %}
  87. </div>
  88. </div>
  89. <div class="card-body">
  90. <h3 class="card-title">Card with icon bg</h3>
  91. <p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto at consectetur culpa ducimus eum fuga fugiat, ipsa iusto, modi nostrum recusandae reiciendis saepe.</p>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="col-md-6 col-lg-3">
  96. <div class="card bg-primary-lt">
  97. <div class="card-body">
  98. <h3 class="card-title">Card with primary light background</h3>
  99. <p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto at consectetur culpa ducimus eum fuga fugiat, ipsa iusto, modi nostrum recusandae reiciendis saepe.</p>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="col-md-6 col-lg-3">
  104. <div class="card bg-primary text-primary-fg">
  105. <div class="card-stamp">
  106. <div class="card-stamp-icon bg-white text-primary">
  107. {% include ui/icon.html icon="star" %}
  108. </div>
  109. </div>
  110. <div class="card-body">
  111. <h3 class="card-title">Card with background and icon</h3>
  112. <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto at consectetur culpa ducimus eum fuga fugiat, ipsa iusto, modi nostrum recusandae reiciendis saepe.</p>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="col-md-6 col-lg-3">
  117. {% include cards/card.html status-top="danger" title="Card with top status" %}
  118. </div>
  119. <div class="col-md-6 col-lg-3">
  120. {% include cards/card.html status-bottom="success" title="Card with bottom status" %}
  121. </div>
  122. <div class="col-md-6 col-lg-3">
  123. {% include cards/card.html status-left="primary" title="Card with side status" %}
  124. </div>
  125. <div class="col-md-6 col-lg-3">
  126. <div class="card">
  127. <div class="ribbon ribbon-top bg-yellow">{% include ui/icon.html icon="star" %}</div>
  128. <div class="card-body">
  129. <h3 class="card-title">Card with top ribbon</h3>
  130. <p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto at consectetur culpa ducimus eum fuga fugiat, ipsa iusto, modi nostrum recusandae reiciendis saepe.</p>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="col-md-6 col-lg-3">
  135. <div class="card">
  136. <div class="ribbon bg-red">NEW</div>
  137. <div class="card-body">
  138. <h3 class="card-title">Card with text ribbon</h3>
  139. <p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto at consectetur culpa ducimus eum fuga fugiat, ipsa iusto, modi nostrum recusandae reiciendis saepe.</p>
  140. </div>
  141. </div>
  142. </div>
  143. <div class="col-md-6 col-lg-3">
  144. {% include cards/card.html progress=true title="Card with progress bar" %}
  145. </div>
  146. <div class="col-md-6 col-lg-3">
  147. {% include cards/card.html class="card-stacked" title="Stacked card" %}
  148. </div>
  149. <div class="col-lg-6">
  150. {% include cards/card-image.html title="Card with left side image" %}
  151. </div>
  152. <div class="col-lg-6">
  153. {% include cards/card-image.html title="Card with right side image" right=true img-id=3 %}
  154. </div>
  155. <div class="col-md-6 col-lg-3">
  156. {% include cards/card.html img-top=true title="Card with top image" %}
  157. </div>
  158. <div class="col-md-6 col-lg-3">
  159. {% include cards/card.html img-bottom=true title="Card with bottom image" %}
  160. </div>
  161. <div class="col-md-6 col-lg-3">
  162. <div class="card">
  163. <div class="card-body">
  164. <h3 class="card-title">Card with footer</h3>
  165. <p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima
  166. neque pariatur perferendis sed suscipit velit vitae voluptatem.</p>
  167. </div>
  168. <div class="card-footer">
  169. This is standard card footer
  170. </div>
  171. </div>
  172. </div>
  173. <div class="col-md-6 col-lg-3">
  174. <div class="card">
  175. <div class="card-body">
  176. <h3 class="card-title">Card with transparent footer</h3>
  177. <p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima
  178. neque pariatur perferendis sed suscipit velit vitae voluptatem.</p>
  179. </div>
  180. <div class="card-footer card-footer-transparent">
  181. This is transparent card footer
  182. </div>
  183. </div>
  184. </div>
  185. <div class="col-md-6 col-lg-3">{% include cards/card.html title="Card with footer button" footer-button=true %}</div>
  186. <div class="col-md-6 col-lg-3">{% include cards/card.html title="Card with footer buttons" footer-buttons=true %}</div>
  187. <div class="col-md-6 col-lg-3">{% include cards/card.html footer-elements="more,>switch" %}</div>
  188. <div class="col-md-6 col-lg-3">{% include cards/card.html footer-elements=">avatars" %}</div>
  189. <div class="col-md-6 col-lg-4">{% include cards/card.html header-tabs=true %}</div>
  190. <div class="col-md-6 col-lg-4">{% include cards/card.html header-pills=true %}</div>
  191. <div class="col-md-6 col-lg-4">{% include cards/card-tabs.html count=4 %}</div>
  192. <div class="col-md-6 col-lg-4">{% include cards/card-tabs.html count=4 bottom=true id="bottom" %}</div>
  193. <div class="col-12">
  194. <div class="card">
  195. <div class="card-header">
  196. <h3 class="card-title">Cards inside card</h3>
  197. </div>
  198. <div class="card-body">
  199. <div class="row row-cards">
  200. {% for i in cards-stack %}
  201. <div class="col-md">
  202. <div class="card">
  203. <div class="card-status-top bg-{{ cards-stack-colors[forloop.index0] }}"></div>
  204. <div class="card-header">
  205. <h3 class="card-title">{{ i }} card</h3>
  206. </div>
  207. {% include cards/body-placeholder.html %}
  208. </div>
  209. </div>
  210. {% endfor %}
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. <div class="col-12">
  216. <div class="card-group">
  217. {% for i in cards-stack %}
  218. <div class="card">
  219. <div class="card-header">
  220. <h3 class="card-title">{{ i }} card</h3>
  221. </div>
  222. {% include cards/body-placeholder.html %}
  223. </div>
  224. {% endfor %}
  225. </div>
  226. </div>
  227. <div class="col-12">
  228. <div class="row row-cards row-deck">
  229. <div class="col">
  230. <div class="card">
  231. <div class="card-header">
  232. <h3 class="card-title">Card title</h3>
  233. </div>
  234. <div class="card-body">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</div>
  235. <div class="card-footer">
  236. Last updated 3 mins ago
  237. </div>
  238. </div>
  239. </div>
  240. <div class="col">
  241. <div class="card">
  242. <div class="card-header">
  243. <h3 class="card-title">Card title</h3>
  244. </div>
  245. <div class="card-body">This card has supporting text below as a natural lead-in to additional content.</div>
  246. <div class="card-footer">
  247. Last updated 3 mins ago
  248. </div>
  249. </div>
  250. </div>
  251. <div class="col">
  252. <div class="card">
  253. <div class="card-header">
  254. <h3 class="card-title">Card with very long content</h3>
  255. </div>
  256. <div class="card-body">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</div>
  257. <div class="card-footer">
  258. Last updated 3 mins ago
  259. </div>
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. <div class="col-lg-4">{% include cards/card.html empty=true %}</div>
  265. <div class="col-lg-4">{% include cards/credit-card.html %}</div>
  266. </div>