index.less 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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. background-color: #fff;
  8. .pro-table-card-setting-item {
  9. color: rgba(0, 0, 0, 0.75);
  10. font-size: 16px;
  11. cursor: pointer;
  12. &:hover {
  13. color: @primary-color-hover;
  14. }
  15. &.active {
  16. color: @primary-color-active;
  17. }
  18. }
  19. .pro-table-card-items {
  20. display: grid;
  21. grid-gap: 26px;
  22. padding-bottom: 38px;
  23. .pro-table-card-item {
  24. display: flex;
  25. .card-item-avatar {
  26. margin-right: 16px;
  27. }
  28. .card-item-body {
  29. display: flex;
  30. flex-direction: column;
  31. flex-grow: 1;
  32. width: 0;
  33. .card-item-header {
  34. display: flex;
  35. width: calc(100% - 86px);
  36. margin-bottom: 12px;
  37. .card-item-header-name {
  38. font-weight: bold;
  39. font-size: 16px;
  40. }
  41. }
  42. .card-item-content-flex {
  43. display: flex;
  44. flex-wrap: wrap;
  45. gap: 12px;
  46. .flex-auto {
  47. display: flex;
  48. flex-direction: column;
  49. flex-grow: 1;
  50. width: 0;
  51. }
  52. .flex-button {
  53. display: flex;
  54. flex: 0 0 50px;
  55. align-items: center;
  56. justify-content: center;
  57. height: 50px;
  58. color: @primary-color;
  59. border: 1px solid @primary-color-active;
  60. cursor: pointer;
  61. }
  62. label {
  63. color: rgba(#000, 0.75);
  64. font-size: 12px;
  65. }
  66. .ellipsis {
  67. max-width: 70%;
  68. font-weight: bold;
  69. font-size: 14px;
  70. }
  71. }
  72. .card-item-content {
  73. display: flex;
  74. flex-wrap: wrap;
  75. > div {
  76. width: 50%;
  77. &:nth-child(even) {
  78. width: calc(50% - 12px);
  79. margin-left: 12px;
  80. }
  81. }
  82. label {
  83. color: rgba(#000, 0.75);
  84. font-size: 12px;
  85. }
  86. .ellipsis {
  87. max-width: 70%;
  88. font-weight: bold;
  89. font-size: 14px;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. .pro-table-card-pagination {
  96. position: absolute;
  97. right: 24px;
  98. bottom: 24px;
  99. > .ant-pagination-item {
  100. display: none;
  101. }
  102. }
  103. .mask-loading {
  104. position: absolute;
  105. top: 0;
  106. left: 0;
  107. z-index: 99;
  108. display: none;
  109. width: 100%;
  110. height: 100%;
  111. &.show {
  112. display: block;
  113. }
  114. }
  115. }
  116. .iot-card {
  117. width: 100%;
  118. background-color: #fff;
  119. .checked-icon {
  120. position: absolute;
  121. right: -22px;
  122. bottom: -22px;
  123. z-index: 2;
  124. display: none;
  125. width: 44px;
  126. height: 44px;
  127. color: #fff;
  128. background-color: red;
  129. background-color: #2f54eb;
  130. transform: rotate(-45deg);
  131. > div {
  132. position: relative;
  133. height: 100%;
  134. transform: rotate(45deg);
  135. > span {
  136. position: absolute;
  137. top: 6px;
  138. left: 6px;
  139. font-size: 12px;
  140. }
  141. }
  142. }
  143. &.hover {
  144. box-shadow: 0 0 24px rgba(#000, 0.1);
  145. }
  146. .card-warp {
  147. position: relative;
  148. border: 1px solid @border-color;
  149. .card-content {
  150. position: relative;
  151. padding: @card-content-padding-top 12px 16px @card-content-padding-left;
  152. overflow: hidden;
  153. &::before {
  154. position: absolute;
  155. top: 0;
  156. left: @card-content-padding-left + 10px;
  157. display: block;
  158. width: 15%;
  159. min-width: 64px;
  160. height: 2px;
  161. background-image: url('/images/rectangle.png');
  162. background-repeat: no-repeat;
  163. background-size: 100% 100%;
  164. content: ' ';
  165. }
  166. .card-state {
  167. position: absolute;
  168. top: @card-content-padding-top;
  169. right: -12px;
  170. display: flex;
  171. justify-content: center;
  172. width: 100px;
  173. padding: 2px 0;
  174. background-color: rgba(#5995f5, 0.15);
  175. transform: skewX(45deg);
  176. &.success {
  177. background-color: @success-color-deprecated-bg;
  178. }
  179. &.warning {
  180. background-color: rgba(#ff9000, 0.1);
  181. }
  182. &.error {
  183. background-color: rgba(#e50012, 0.1);
  184. }
  185. .card-state-content {
  186. transform: skewX(-45deg);
  187. }
  188. }
  189. }
  190. .card-mask {
  191. position: absolute;
  192. top: 0;
  193. left: 0;
  194. z-index: 2;
  195. display: flex;
  196. align-items: center;
  197. justify-content: center;
  198. width: 100%;
  199. height: 100%;
  200. color: #fff;
  201. background-color: rgba(#000, 0);
  202. visibility: hidden;
  203. cursor: pointer;
  204. transition: all 0.3s;
  205. > div {
  206. display: flex;
  207. align-items: center;
  208. justify-content: center;
  209. width: 100%;
  210. height: 100%;
  211. padding: 0 !important;
  212. }
  213. &.show {
  214. background-color: rgba(#000, 0.5);
  215. visibility: visible;
  216. }
  217. }
  218. }
  219. &.item-active {
  220. position: relative;
  221. color: #2f54eb;
  222. .checked-icon {
  223. display: block;
  224. }
  225. .card-warp {
  226. border: 1px solid #2f54eb;
  227. }
  228. }
  229. .card-tools {
  230. display: flex;
  231. margin-top: 8px;
  232. .card-button {
  233. display: flex;
  234. flex-grow: 1;
  235. > span,
  236. & button {
  237. width: 100%;
  238. border-radius: 0;
  239. }
  240. button {
  241. background: #f6f6f6;
  242. border: 1px solid #e6e6e6;
  243. &:hover {
  244. background-color: @primary-color-hover;
  245. border-color: @primary-color-hover;
  246. span {
  247. color: #fff !important;
  248. }
  249. }
  250. &:active {
  251. background-color: @primary-color-active;
  252. border-color: @primary-color-active;
  253. span {
  254. color: #fff !important;
  255. }
  256. }
  257. }
  258. &:not(:last-child) {
  259. margin-right: 8px;
  260. }
  261. &.delete {
  262. flex-basis: 60px;
  263. flex-grow: 0;
  264. button {
  265. background: @error-color-deprecated-bg;
  266. border: 1px solid @error-color-outline;
  267. span {
  268. color: @error-color !important;
  269. }
  270. &:hover {
  271. background-color: @error-color-hover;
  272. span {
  273. color: #fff !important;
  274. }
  275. }
  276. &:active {
  277. background-color: @error-color-active;
  278. span {
  279. color: #fff !important;
  280. }
  281. }
  282. }
  283. }
  284. button[disabled] {
  285. background: @disabled-bg;
  286. border-color: @disabled-color;
  287. span {
  288. color: @disabled-color !important;
  289. }
  290. &:hover {
  291. background-color: @disabled-active-bg;
  292. }
  293. &:active {
  294. background-color: @disabled-active-bg;
  295. }
  296. }
  297. }
  298. }
  299. }