index.less 5.2 KB

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