index.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. @import '../../../node_modules/antd/lib/style/themes/variable';
  2. .pro-table-card {
  3. position: relative;
  4. .pro-table-card-setting-item {
  5. color: rgba(0, 0, 0, 0.75);
  6. font-size: 16px;
  7. cursor: pointer;
  8. &:hover {
  9. color: @primary-color-hover;
  10. }
  11. &.active {
  12. color: @primary-color-active;
  13. }
  14. }
  15. .pro-table-card-items {
  16. display: grid;
  17. grid-gap: 26px;
  18. grid-template-columns: repeat(4, 1fr);
  19. //display: flex;
  20. //flex-wrap: wrap;
  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: 100%;
  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. > span {
  45. flex: 1;
  46. }
  47. }
  48. }
  49. }
  50. }
  51. .pro-table-card-pagination {
  52. position: absolute;
  53. right: 24px;
  54. bottom: 24px;
  55. > .ant-pagination-item {
  56. display: none;
  57. }
  58. }
  59. }
  60. @border-color: #e6e6e6;
  61. .iot-card {
  62. width: 100%;
  63. .card-warp {
  64. position: relative;
  65. border: 1px solid @border-color;
  66. .card-content {
  67. position: relative;
  68. padding: 30px 12px 12px 30px;
  69. overflow: hidden;
  70. .card-state {
  71. position: absolute;
  72. top: 0;
  73. right: 0;
  74. display: flex;
  75. justify-content: center;
  76. width: 100px;
  77. padding: 8px 0;
  78. background-color: @info-color-deprecated-bg;
  79. transform: skewX(45deg);
  80. &.success {
  81. background-color: @success-color-deprecated-bg;
  82. }
  83. &.warning {
  84. background-color: @warning-color-deprecated-bg;
  85. }
  86. &.error {
  87. background-color: @error-color-deprecated-bg;
  88. }
  89. .card-state-content {
  90. transform: skewX(-45deg);
  91. }
  92. }
  93. }
  94. .card-mask {
  95. position: absolute;
  96. top: 0;
  97. left: 0;
  98. display: none;
  99. align-items: center;
  100. justify-content: center;
  101. width: 100%;
  102. height: 100%;
  103. color: #fff;
  104. background-color: rgba(#000, 0.5);
  105. cursor: pointer;
  106. &.show {
  107. display: flex;
  108. }
  109. }
  110. }
  111. }