index.less 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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: 15%;
  93. min-width: 64px;
  94. height: 2px;
  95. background-image: url('/images/rectangle.png');
  96. background-repeat: no-repeat;
  97. background-size: 100% 100%;
  98. content: ' ';
  99. }
  100. .card-state {
  101. position: absolute;
  102. top: @card-content-padding-top;
  103. right: -12px;
  104. display: flex;
  105. justify-content: center;
  106. width: 100px;
  107. padding: 2px 0;
  108. background-color: rgba(#5995f5, 0.15);
  109. transform: skewX(45deg);
  110. &.success {
  111. background-color: @success-color-deprecated-bg;
  112. }
  113. &.warning {
  114. background-color: rgba(#ff9000, 0.1);
  115. }
  116. &.error {
  117. background-color: rgba(#e50012, 0.1);
  118. }
  119. .card-state-content {
  120. transform: skewX(-45deg);
  121. }
  122. }
  123. }
  124. .card-mask {
  125. position: absolute;
  126. top: 0;
  127. left: 0;
  128. z-index: 2;
  129. display: flex;
  130. align-items: center;
  131. justify-content: center;
  132. width: 100%;
  133. height: 100%;
  134. color: #fff;
  135. background-color: rgba(#000, 0);
  136. visibility: hidden;
  137. cursor: pointer;
  138. transition: all 0.3s;
  139. &.show {
  140. background-color: rgba(#000, 0.5);
  141. visibility: visible;
  142. }
  143. }
  144. }
  145. .card-tools {
  146. display: flex;
  147. margin-top: 8px;
  148. .card-button {
  149. display: flex;
  150. flex-grow: 1;
  151. > span,
  152. & button {
  153. width: 100%;
  154. border-radius: 0;
  155. }
  156. button {
  157. background: #f6f6f6;
  158. border: 1px solid #e6e6e6;
  159. &:hover {
  160. background-color: @primary-color-hover;
  161. border-color: @primary-color-hover;
  162. span {
  163. color: #fff !important;
  164. }
  165. }
  166. &:active {
  167. background-color: @primary-color-active;
  168. border-color: @primary-color-active;
  169. span {
  170. color: #fff !important;
  171. }
  172. }
  173. }
  174. &:not(:last-child) {
  175. margin-right: 8px;
  176. }
  177. &.delete {
  178. flex-basis: 60px;
  179. flex-grow: 0;
  180. button {
  181. background: @error-color-deprecated-bg;
  182. border: 1px solid @error-color-outline;
  183. span {
  184. color: @error-color !important;
  185. }
  186. &:hover {
  187. background-color: @error-color-hover;
  188. span {
  189. color: #fff !important;
  190. }
  191. }
  192. &:active {
  193. background-color: @error-color-active;
  194. span {
  195. color: #fff !important;
  196. }
  197. }
  198. }
  199. }
  200. button[disabled] {
  201. background: @disabled-bg;
  202. border-color: @disabled-color;
  203. span {
  204. color: @disabled-color !important;
  205. }
  206. &:hover {
  207. background-color: @disabled-active-bg;
  208. }
  209. &:active {
  210. background-color: @disabled-active-bg;
  211. }
  212. }
  213. }
  214. }
  215. }