InfoCard.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. $max-card-width: 230px;
  2. $card-box-height: 110px;
  3. .x-info-card {
  4. .x-panel-body {
  5. background: transparent;
  6. .x-panel-bodyWrap {
  7. .x-autocontainer-innerCt {
  8. .x-component {
  9. height: 100%;
  10. .x-row {
  11. background: $panel-body-background;
  12. display: flex;
  13. height: 100%;
  14. width: 100%;
  15. justify-content: flex-start;
  16. .x-col {
  17. flex: 1;
  18. max-width: $max-card-width;
  19. color: #fff;
  20. padding: 0 8px;
  21. display: flex;
  22. &:first-child {
  23. padding: 0 8px 0 0;
  24. }
  25. &> div {
  26. flex: 1;
  27. display: flex;
  28. align-items: center;
  29. .x-box {
  30. padding: 24px;
  31. height: $card-box-height;
  32. border-radius: 6px;
  33. position: relative;
  34. display: flex;
  35. cursor: pointer;
  36. flex: 1;
  37. flex-direction: column;
  38. &:hover {
  39. opacity: 0.7;
  40. }
  41. .title {
  42. font-size: 16px;
  43. font-weight: bold;
  44. }
  45. .value {
  46. font-size: 24px;
  47. text-align: center;
  48. margin-top: 22px;
  49. }
  50. }
  51. .x-box.x-view-item-focused {
  52. outline: none !important;
  53. }
  54. }
  55. }
  56. }
  57. }
  58. }
  59. }
  60. }
  61. .x-toolbar-default-vertical {
  62. padding: 0;
  63. background-color: transparent;
  64. .x-box-target {
  65. height: 100%;
  66. }
  67. }
  68. .x-mask {
  69. background-color: transparent;
  70. }
  71. }
  72. .x-scroller-button {
  73. position: absolute !important;
  74. z-index: 1;
  75. width: 44px !important;
  76. min-width: 44px !important;
  77. height: 100% !important;
  78. padding: 0 !important;
  79. background-color: transparent !important;
  80. border: none !important;
  81. box-shadow: none !important;
  82. background-repeat: no-repeat !important;
  83. background-size: 30px !important;
  84. background-position-y: center !important;
  85. background-position-x: 6px !important;
  86. cursor: pointer;
  87. }
  88. .x-scroller-button-left {
  89. left: 0;
  90. background-image: url(get-resource-path('images/default/arrows-left.png')) !important;
  91. background-position-x: 10px !important;
  92. }
  93. .x-scroller-button-right {
  94. right: 0;
  95. background-image: url(get-resource-path('images/default/arrows-right.png')) !important;
  96. background-position-x: 4px !important;
  97. }
  98. .x-btn-over.x-btn-default-small.x-scroller-button-left,
  99. .x-btn.x-btn-disabled.x-btn-default-small.x-scroller-button-left,
  100. .x-btn-over.x-btn-default-small.x-scroller-button-right,
  101. .x-btn.x-btn-disabled.x-btn-default-small.x-scroller-button-right,
  102. .x-keyboard-mode .x-btn-focus.x-btn-default-small.x-scroller-button-left,
  103. .x-keyboard-mode .x-btn-focus.x-btn-default-small.x-scroller-button-right {
  104. background: white;
  105. }
  106. .x-bg-default {
  107. background: linear-gradient(to right, #19C0D5 , #7AEBF8);
  108. }
  109. .x-bg-yellow {
  110. background: linear-gradient(to right, #FA964D , #FCC002);
  111. }
  112. .x-bg-purple {
  113. background: linear-gradient(to right, #6B73FD , #B195FF);
  114. }
  115. .x-bg-red {
  116. background: linear-gradient(to right, #F25F88 , #FFA4BA);
  117. }
  118. .x-bg-blue {
  119. background: linear-gradient(to right, #6B6CFA , #58C5F6);
  120. }
  121. .x-bg-pink {
  122. background: linear-gradient(to right, #F66F6D , #FD9C8D);
  123. }
  124. .x-bg-gray {
  125. background: linear-gradient(to right, #D8D8D8 , #D8D8D8);
  126. }