KeyData.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. #key_data {
  2. .key_data-body {
  3. padding: 0;
  4. }
  5. .x-container {
  6. height: 100%;
  7. display: flex;
  8. flex-wrap: wrap;
  9. background: $panel-body-background;
  10. .x-box {
  11. width: calc(50% - 9px);
  12. background: #fff;
  13. cursor: pointer;
  14. transition: all 0.3s ease;
  15. outline: none !important;
  16. background: transparent;
  17. // &:hover {
  18. // box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  19. // transform: translate3d(0, -2px, 0);
  20. // }
  21. &:nth-child(1) {
  22. margin: 0 8px 8px 0;
  23. &:hover {
  24. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  25. transform: translate3d(2px, 2px, 0);
  26. }
  27. }
  28. &:nth-child(2) {
  29. margin: 0 0 8px 8px;
  30. &:hover {
  31. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  32. transform: translate3d(-2px, 2px, 0);
  33. }
  34. }
  35. &:nth-child(3) {
  36. margin: 8px 8px 0 0;
  37. &:hover {
  38. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  39. transform: translate3d(2px, -2px, 0);
  40. }
  41. }
  42. &:nth-child(4) {
  43. margin: 8px 0 0 8px;
  44. &:hover {
  45. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  46. transform: translate3d(-2px, -2px, 0);
  47. }
  48. }
  49. .x-box-content {
  50. display: flex;
  51. flex-direction: column;
  52. height: 100%;
  53. .x-title {
  54. flex: 1;
  55. height: 30px;
  56. line-height: 30px;
  57. font-size: 14px;
  58. padding: 0 20px;
  59. color: #fff;
  60. border-radius: 4px 4px 0 0;
  61. }
  62. .x-contain {
  63. background: #fff;
  64. border-style: solid;
  65. border-width: 0 1px 1px 1px;
  66. border-radius: 0 0 4px 4px;
  67. height: 100%;
  68. .x-icon {
  69. background-repeat: no-repeat;
  70. background-size: contain;
  71. background-position: center;
  72. width: 100%;
  73. height: 40px;
  74. margin: 14px 0 7px 0;
  75. &-storageTotal {
  76. background-image: url(get-resource-path('images/home/storageTotal.png'));
  77. }
  78. &-receiveTotal {
  79. background-image: url(get-resource-path('images/home/receiveTotal.png'));
  80. }
  81. &-payTotal {
  82. background-image: url(get-resource-path('images/home/payTotal.png'));
  83. }
  84. &-balanceTotal {
  85. background-image: url(get-resource-path('images/home/balanceTotal.png'));
  86. }
  87. }
  88. .x-value {
  89. text-align: center;
  90. font-size: 16px;
  91. color: #1E2429;
  92. letter-spacing: 0.19px;
  93. padding: 0 20px;
  94. overflow: hidden;
  95. text-overflow: ellipsis;
  96. white-space: nowrap;
  97. }
  98. }
  99. }
  100. }
  101. .x-box-yellow {
  102. .x-box-content {
  103. .x-title {
  104. background-image: linear-gradient(270deg, #FFE300 0%, #FBAC27 100%);
  105. }
  106. .x-contain {
  107. border-color: #FDC200;
  108. }
  109. }
  110. }
  111. .x-box-purple {
  112. .x-box-content {
  113. .x-title {
  114. background-image: linear-gradient(270deg, #A58FFF 0%, #7477FE 100%);
  115. }
  116. .x-contain {
  117. border-color: #7477FE;
  118. }
  119. }
  120. }
  121. .x-box-red {
  122. .x-box-content {
  123. .x-title {
  124. background-image: linear-gradient(270deg, #FDA3B9 0%, #F2668C 100%);
  125. }
  126. .x-contain {
  127. border-color: #FB6A83;
  128. }
  129. }
  130. }
  131. .x-box-blue {
  132. .x-box-content {
  133. .x-title {
  134. background-image: linear-gradient(270deg, #87DBFF 0%, #27A7FF 100%);
  135. }
  136. .x-contain {
  137. border-color: #33AEFF;
  138. }
  139. }
  140. }
  141. }
  142. }