bootstrap-card.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. .card {
  2. position: relative;
  3. display: block;
  4. margin-bottom: 20px;
  5. background-color: #fff;
  6. border: 1px solid #ddd;
  7. border-radius: 4px;
  8. }
  9. .card-block {
  10. padding: 15px;
  11. }
  12. .card-block:before, .card-block:after {
  13. content: " ";
  14. display: table;
  15. }
  16. .card-block:after {
  17. clear: both;
  18. }
  19. .card-title {
  20. margin: 5px;
  21. margin-bottom: 2px;
  22. text-align: center;
  23. }
  24. .card-subtitle {
  25. margin-top: -10px;
  26. margin-bottom: 0;
  27. }
  28. .card-text:last-child {
  29. margin-bottom: 0;
  30. margin-top: 10px;
  31. }
  32. .card-link:hover {
  33. text-decoration: none;
  34. }
  35. .card-link + .card-link {
  36. margin-left: 15px;
  37. }
  38. .card > .list-group:first-child .list-group-item:first-child {
  39. border-top-right-radius: 4px;
  40. border-top-left-radius: 4px;
  41. }
  42. .card > .list-group:last-child .list-group-item:last-child {
  43. border-bottom-right-radius: 4px;
  44. border-bottom-left-radius: 4px;
  45. }
  46. .card-header {
  47. padding: 10px 15px;
  48. background-color: #f5f5f5;
  49. border-bottom: 1px solid #ddd;
  50. }
  51. .card-header:before, .card-header:after {
  52. content: " ";
  53. display: table;
  54. }
  55. .card-header:after {
  56. clear: both;
  57. }
  58. .card-header:first-child {
  59. border-radius: 4px 4px 0 0;
  60. }
  61. .card-footer {
  62. padding: 10px 15px;
  63. background-color: #f5f5f5;
  64. border-top: 1px solid #ddd;
  65. }
  66. .card-footer:before, .card-footer:after {
  67. content: " ";
  68. display: table;
  69. }
  70. .card-footer:after {
  71. clear: both;
  72. }
  73. .card-footer:last-child {
  74. border-radius: 0 0 4px 4px;
  75. }
  76. .card-header-tabs {
  77. margin-right: -5px;
  78. margin-bottom: -10px;
  79. margin-left: -5px;
  80. border-bottom: 0;
  81. }
  82. .card-header-pills {
  83. margin-right: -5px;
  84. margin-left: -5px;
  85. }
  86. .card-primary {
  87. background-color: #337ab7;
  88. border-color: #337ab7;
  89. }
  90. .card-primary .card-header,
  91. .card-primary .card-footer {
  92. background-color: transparent;
  93. }
  94. .card-success {
  95. background-color: #5cb85c;
  96. border-color: #5cb85c;
  97. }
  98. .card-success .card-header,
  99. .card-success .card-footer {
  100. background-color: transparent;
  101. }
  102. .card-info {
  103. background-color: #5bc0de;
  104. border-color: #5bc0de;
  105. }
  106. .card-info .card-header,
  107. .card-info .card-footer {
  108. background-color: transparent;
  109. }
  110. .card-warning {
  111. background-color: #f0ad4e;
  112. border-color: #f0ad4e;
  113. }
  114. .card-warning .card-header,
  115. .card-warning .card-footer {
  116. background-color: transparent;
  117. }
  118. .card-danger {
  119. background-color: #d9534f;
  120. border-color: #d9534f;
  121. }
  122. .card-danger .card-header,
  123. .card-danger .card-footer {
  124. background-color: transparent;
  125. }
  126. .card-outline-primary {
  127. background-color: transparent;
  128. border-color: #337ab7;
  129. }
  130. .card-outline-secondary {
  131. background-color: transparent;
  132. border-color: #ccc;
  133. }
  134. .card-outline-info {
  135. background-color: transparent;
  136. border-color: #5bc0de;
  137. }
  138. .card-outline-success {
  139. background-color: transparent;
  140. border-color: #5cb85c;
  141. }
  142. .card-outline-warning {
  143. background-color: transparent;
  144. border-color: #f0ad4e;
  145. }
  146. .card-outline-danger {
  147. background-color: transparent;
  148. border-color: #d9534f;
  149. }
  150. .card-inverse .card-header,
  151. .card-inverse .card-footer {
  152. border-color: rgba(255, 255, 255, 0.2);
  153. }
  154. .card-inverse .card-header,
  155. .card-inverse .card-footer,
  156. .card-inverse .card-title,
  157. .card-inverse .card-blockquote {
  158. color: #fff;
  159. }
  160. .card-inverse .card-link,
  161. .card-inverse .card-text,
  162. .card-inverse .card-subtitle,
  163. .card-inverse .card-blockquote .blockquote-footer {
  164. color: rgba(255, 255, 255, 0.65);
  165. }
  166. .card-inverse .card-link:hover, .card-inverse .card-link:focus {
  167. color: #fff;
  168. }
  169. .card-blockquote {
  170. padding: 0;
  171. margin-bottom: 0;
  172. border-left: 0;
  173. }
  174. .card-img {
  175. border-radius: .25em;
  176. }
  177. .card-img-overlay {
  178. position: absolute;
  179. top: 0;
  180. right: 0;
  181. bottom: 0;
  182. left: 0;
  183. padding: 15px;
  184. }
  185. .card-img-top {
  186. border-top-right-radius: 4px;
  187. border-top-left-radius: 4px;
  188. }
  189. .card-img-bottom {
  190. border-bottom-right-radius: 4px;
  191. border-bottom-left-radius: 4px;
  192. }