KeyData.scss 4.7 KB

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