_cards.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. .layout-selector {
  2. @include clearfix();
  3. margin-left: $space-md;
  4. text-align: right;
  5. button {
  6. background: $input-label-bg;
  7. color: $text-color-weak;
  8. box-shadow: $card-shadow;
  9. border: none;
  10. padding: $space-sm;
  11. line-height: 1;
  12. font-size: 130%;
  13. float: right;
  14. &:focus {
  15. outline: none;
  16. }
  17. &.active {
  18. background-color: lighten($input-label-bg, 5%);
  19. color: $link-color;
  20. }
  21. &:nth-child(2) {
  22. border-radius: 3px 0 0 3px;
  23. border-right: $panel-border;
  24. }
  25. &:nth-child(1) {
  26. border-radius: 0 3px 3px 0;
  27. }
  28. }
  29. }
  30. .card-section {
  31. margin-bottom: $space-xl;
  32. }
  33. .card-list {
  34. display: flex;
  35. flex-direction: row;
  36. flex-wrap: wrap;
  37. list-style-type: none;
  38. }
  39. .card-item {
  40. display: block;
  41. height: 100%;
  42. background: $card-background;
  43. box-shadow: $card-shadow;
  44. padding: $space-md;
  45. border-radius: 4px;
  46. &:hover {
  47. background: $card-background-hover;
  48. }
  49. .label-tag {
  50. margin-left: $space-sm;
  51. font-size: 11px;
  52. padding: 2px 6px;
  53. }
  54. }
  55. .card-item-body {
  56. display: flex;
  57. overflow: hidden;
  58. }
  59. .card-item-details {
  60. overflow: hidden;
  61. }
  62. .card-item-header {
  63. margin-bottom: $space-md;
  64. }
  65. .card-item-type {
  66. color: $text-color-weak;
  67. text-transform: uppercase;
  68. font-size: $font-size-sm;
  69. font-weight: $font-weight-semi-bold;
  70. }
  71. .card-item-notice {
  72. font-size: $font-size-sm;
  73. }
  74. .card-item-name {
  75. color: $headings-color;
  76. overflow: hidden;
  77. text-overflow: ellipsis;
  78. width: 100%;
  79. }
  80. .card-item-label {
  81. margin-left: $space-sm;
  82. }
  83. .card-item-sub-name {
  84. color: $text-color-weak;
  85. overflow: hidden;
  86. text-overflow: ellipsis;
  87. width: 100%;
  88. }
  89. .card-item-sub-name--header {
  90. color: $text-color-weak;
  91. text-transform: uppercase;
  92. margin-bottom: $space-md;
  93. font-size: $font-size-sm;
  94. font-weight: bold;
  95. }
  96. .card-list-layout-grid {
  97. .card-item-type {
  98. display: inline-block;
  99. }
  100. .card-item-notice {
  101. font-size: $font-size-sm;
  102. display: inline-block;
  103. margin-left: $space-md;
  104. }
  105. .card-item-header-action {
  106. float: right;
  107. }
  108. .card-item-wrapper {
  109. width: 100%;
  110. padding: 0 $space-md $space-md 0;
  111. }
  112. .card-item-wrapper--clickable {
  113. cursor: pointer;
  114. }
  115. .card-item-figure {
  116. margin: 0 $space-md $space-md 0;
  117. height: 80px;
  118. img {
  119. width: 80px;
  120. }
  121. }
  122. .card-item-name {
  123. font-size: $font-size-h3;
  124. }
  125. @include media-breakpoint-up(md) {
  126. .card-item-wrapper {
  127. width: 50%;
  128. }
  129. }
  130. @include media-breakpoint-up(lg) {
  131. .card-item-wrapper {
  132. width: 33.333333%;
  133. }
  134. }
  135. &.card-list-layout-grid--max-2-col {
  136. @include media-breakpoint-up(lg) {
  137. .card-item-wrapper {
  138. width: 50%;
  139. }
  140. }
  141. }
  142. }
  143. .card-list-layout-list {
  144. .card-item-wrapper {
  145. padding: 0;
  146. width: 100%;
  147. margin-bottom: $space-xs;
  148. }
  149. .card-item-wrapper--clickable {
  150. cursor: pointer;
  151. }
  152. .card-item {
  153. border-radius: 2px;
  154. }
  155. .card-item-header {
  156. float: right;
  157. text-align: right;
  158. }
  159. .card-item-figure {
  160. margin: 0 $space-md 0 0;
  161. img {
  162. width: 48px;
  163. }
  164. }
  165. .card-item-name {
  166. font-size: $font-size-h4;
  167. }
  168. .card-item-sub-name {
  169. font-size: $font-size-sm;
  170. }
  171. .layout-selector {
  172. margin-right: 0;
  173. }
  174. }