index.less 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. @import '~antd/es/style/themes/default.less';
  2. @border-color: #e6e6e6;
  3. @card-content-padding-top: 30px;
  4. @card-content-padding-left: 30px;
  5. .pro-table-card {
  6. position: relative;
  7. .pro-table-card-setting-item {
  8. color: rgba(0, 0, 0, 0.75);
  9. font-size: 16px;
  10. cursor: pointer;
  11. &:hover {
  12. color: @primary-color-hover;
  13. }
  14. &.active {
  15. color: @primary-color-active;
  16. }
  17. }
  18. .pro-table-card-items {
  19. display: grid;
  20. grid-gap: 26px;
  21. padding-bottom: 38px;
  22. .pro-table-card-item {
  23. display: flex;
  24. .card-item-avatar {
  25. margin-right: 16px;
  26. }
  27. .card-item-body {
  28. display: flex;
  29. flex-direction: column;
  30. flex-grow: 1;
  31. width: 0;
  32. .card-item-header {
  33. display: flex;
  34. width: calc(100% - 86px);
  35. margin-bottom: 12px;
  36. .card-item-header-name {
  37. flex: 1;
  38. font-weight: bold;
  39. font-size: 16px;
  40. }
  41. }
  42. .card-item-content {
  43. display: flex;
  44. flex-wrap: wrap;
  45. > div {
  46. width: 50%;
  47. &:nth-child(even) {
  48. width: calc(50% - 12px);
  49. margin-left: 12px;
  50. }
  51. }
  52. label {
  53. color: rgba(#000, 0.75);
  54. font-size: 12px;
  55. }
  56. .ellipsis {
  57. width: 100%;
  58. font-weight: bold;
  59. font-size: 14px;
  60. }
  61. }
  62. }
  63. }
  64. }
  65. .pro-table-card-pagination {
  66. position: absolute;
  67. right: 24px;
  68. bottom: 24px;
  69. > .ant-pagination-item {
  70. display: none;
  71. }
  72. }
  73. }
  74. .iot-card {
  75. width: 100%;
  76. background-color: #fff;
  77. &.hover {
  78. box-shadow: 0 0 24px rgba(#000, 0.1);
  79. }
  80. .card-warp {
  81. position: relative;
  82. border: 1px solid @border-color;
  83. .card-content {
  84. position: relative;
  85. padding: @card-content-padding-top 12px 16px @card-content-padding-left;
  86. overflow: hidden;
  87. &::before {
  88. position: absolute;
  89. top: 0;
  90. left: @card-content-padding-left + 10px;
  91. display: block;
  92. width: 120px;
  93. height: 4px;
  94. background-image: url('/images/rectangle.png');
  95. background-repeat: no-repeat;
  96. content: ' ';
  97. }
  98. .card-state {
  99. position: absolute;
  100. top: @card-content-padding-top;
  101. right: -12px;
  102. display: flex;
  103. justify-content: center;
  104. width: 100px;
  105. padding: 2px 0;
  106. background-color: @info-color-deprecated-bg;
  107. transform: skewX(45deg);
  108. &.success {
  109. background-color: @success-color-deprecated-bg;
  110. }
  111. &.warning {
  112. background-color: @warning-color-deprecated-bg;
  113. }
  114. &.error {
  115. background-color: @error-color-deprecated-bg;
  116. }
  117. .card-state-content {
  118. transform: skewX(-45deg);
  119. }
  120. }
  121. }
  122. .card-mask {
  123. position: absolute;
  124. top: 0;
  125. left: 0;
  126. z-index: 2;
  127. display: flex;
  128. align-items: center;
  129. justify-content: center;
  130. width: 100%;
  131. height: 100%;
  132. color: #fff;
  133. background-color: rgba(#000, 0);
  134. cursor: pointer;
  135. transition: all 0.3s;
  136. &.show {
  137. background-color: rgba(#000, 0.5);
  138. }
  139. }
  140. }
  141. .card-tools {
  142. display: flex;
  143. margin-top: 8px;
  144. .card-button {
  145. display: flex;
  146. flex-grow: 1;
  147. > span,
  148. & button {
  149. width: 100%;
  150. border-radius: 0;
  151. }
  152. button {
  153. background: #f6f6f6;
  154. border: 1px solid #e6e6e6;
  155. &:hover {
  156. background-color: @primary-color-hover;
  157. border-color: @primary-color-hover;
  158. span {
  159. color: #fff !important;
  160. }
  161. }
  162. &:active {
  163. background-color: @primary-color-active;
  164. border-color: @primary-color-active;
  165. span {
  166. color: #fff !important;
  167. }
  168. }
  169. }
  170. &:not(:last-child) {
  171. margin-right: 8px;
  172. }
  173. &.delete {
  174. flex-basis: 60px;
  175. flex-grow: 0;
  176. button {
  177. background: @error-color-deprecated-bg;
  178. border: 1px solid @error-color-outline;
  179. span {
  180. color: @error-color !important;
  181. }
  182. &:hover {
  183. background-color: @error-color-hover;
  184. span {
  185. color: #fff !important;
  186. }
  187. }
  188. &:active {
  189. background-color: @error-color-active;
  190. span {
  191. color: #fff !important;
  192. }
  193. }
  194. }
  195. }
  196. button[disabled] {
  197. background: @disabled-bg;
  198. border-color: @disabled-color;
  199. span {
  200. color: @disabled-color !important;
  201. }
  202. &:hover {
  203. background-color: @disabled-active-bg;
  204. }
  205. &:active {
  206. background-color: @disabled-active-bg;
  207. }
  208. }
  209. }
  210. }
  211. }