cards.less 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. //
  2. // Cards
  3. // --------------------------------------------------
  4. .card {
  5. margin: 10px 0 20px 0;
  6. padding-top: 20px;
  7. border: 1px solid @navlistBorder;
  8. // border-bottom-width: 2px;
  9. // border-top-width: 0;
  10. background-color: @white;
  11. .border-radius(@borderRadiusSmall);
  12. .box-shadow(none);
  13. .box-sizing(border-box);
  14. .card-heading {
  15. padding: 0 20px;
  16. margin: 0;
  17. &.simple {
  18. border-bottom: 1px solid @whiteSmoke;
  19. color: #777;
  20. font-size: 20px;
  21. font-weight: 300;
  22. }
  23. &.image {
  24. img {
  25. display: inline-block;
  26. vertical-align: top;
  27. .border-radius(50%);
  28. border: 0;
  29. margin-right: 15px;
  30. width: 46px;
  31. height: 46px;
  32. }
  33. .card-heading-header {
  34. display: inline-block;
  35. vertical-align: top;
  36. h3 {
  37. font-size: 14px;
  38. color: @navbarLinkColorHover;
  39. line-height: 16px;
  40. margin: 0;
  41. }
  42. span {
  43. font-size: 12px;
  44. color: @grayLight;
  45. }
  46. }
  47. }
  48. }
  49. .card-body {
  50. margin-top: 20px;
  51. padding: 0 20px;
  52. }
  53. .card-media {
  54. padding: 0 20px;
  55. margin: 0 -14px;
  56. img {
  57. max-height: 100%;
  58. max-width: 100%;
  59. }
  60. }
  61. .card-actions {
  62. // border-bottom: 1px solid @whiteSmoke;
  63. min-height: 30px;
  64. margin: 20px 0 0 0;
  65. padding: 0 20px 20px 20px;
  66. }
  67. .card-comments {
  68. padding: 20px;
  69. margin: 0;
  70. background-color: @cardFooterBackground;
  71. .comments-collapse-toggle {
  72. margin: 0 20px 12px 20px;
  73. padding: 0;
  74. a,
  75. span {
  76. color: #999;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. white-space: nowrap;
  80. font-size: 12px;
  81. padding-right: 5px;
  82. }
  83. }
  84. }
  85. }
  86. .card-comments .media-heading {
  87. font-size: 13px;
  88. font-weight: bold;
  89. }
  90. .card {
  91. &.people {
  92. position: relative;
  93. display: inline-block;
  94. vertical-align: top;
  95. width: 170px;
  96. height: 300px;
  97. padding-top: 0;
  98. margin-left: 20px;
  99. overflow: hidden;
  100. &:first-child {
  101. margin-left: 0;
  102. }
  103. .card-top {
  104. position: absolute;
  105. display: inline-block;
  106. top: 0;
  107. left: 0;
  108. background-color: @white;
  109. width: 170px;
  110. height: 150px;
  111. &.green {
  112. background-color: #53a93f;
  113. }
  114. &.blue {
  115. background-color: @navbarBorder;
  116. }
  117. }
  118. .card-info {
  119. .box-sizing(border-box);
  120. position: absolute;
  121. display: inline-block;
  122. top: 150px;
  123. width: 100%;
  124. height: 101px;
  125. overflow: hidden;
  126. background: @white;
  127. .title {
  128. display: block;
  129. font-size: 16px;
  130. font-weight: bold;
  131. line-height: 18px;
  132. margin: 8px 14px 0 14px;
  133. overflow: hidden;
  134. color: #404040;
  135. }
  136. .desc {
  137. display: block;
  138. line-height: 16px;
  139. margin: 8px 14px 0 14px;
  140. overflow: hidden;
  141. font-size: 12px;
  142. color: @graySemiLight;
  143. text-overflow: ellipsis;
  144. }
  145. }
  146. .card-bottom {
  147. .box-sizing(border-box);
  148. position: absolute;
  149. bottom: 0;
  150. left: 0;
  151. display: inline-block;
  152. width: 100%;
  153. padding: 10px 20px;
  154. line-height: 29px;
  155. text-align: center;
  156. }
  157. }
  158. }
  159. .card {
  160. &.hovercard {
  161. overflow: hidden;
  162. position: relative;
  163. width: 240px;
  164. padding-top: 0;
  165. text-align: center;
  166. background-color: #fff;
  167. img {
  168. height: 135px;
  169. width: 240px;
  170. }
  171. .avatar {
  172. margin-bottom: -40px;
  173. position: relative;
  174. top: -40px;
  175. img {
  176. width: 80px;
  177. height: 80px;
  178. max-width: 80px;
  179. max-height: 80px;
  180. .border-radius(50%);
  181. }
  182. }
  183. .info {
  184. padding: 4px 8px 10px;
  185. .title {
  186. color: #262626;
  187. font-size: 24px;
  188. line-height: 1;
  189. vertical-align: middle;
  190. margin-bottom: 4px;
  191. }
  192. .desc {
  193. color: #737373;
  194. font-size: 12px;
  195. line-height: 20px;
  196. overflow: hidden;
  197. text-overflow: ellipsis;
  198. }
  199. }
  200. .bottom {
  201. margin-bottom: 17px;
  202. padding: 0 20px;
  203. // .btn {
  204. // width: 85px;
  205. // }
  206. }
  207. }
  208. }