report-health-index.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. @import "../../../../themes//t.cell.scss";
  2. @import "../../report-common.scss";
  3. @import "../../../../themes/card.scss";
  4. /* module/health/components/report-health-index/report-health-index.wxss */
  5. .health-index {
  6. $size: 10px;
  7. $gap: 12px;
  8. background-color: transparent;
  9. &__title {
  10. display: flex;
  11. flex-direction: row;
  12. align-items: center;
  13. }
  14. &__slider {
  15. position: relative;
  16. height: $size * 6;
  17. font-size: 12px;
  18. padding: 8px 0;
  19. .value {
  20. position: absolute;
  21. top: $size - 4px;
  22. display: flex;
  23. &.normal {
  24. color: #38FF6E;
  25. transform: translateX(-50%);
  26. }
  27. &.big {
  28. flex-direction: row-reverse;
  29. color: #FF611B;
  30. transform: translateX(-98%);
  31. .description {
  32. margin-right: 4px;
  33. }
  34. }
  35. &.small {
  36. flex-direction: row;
  37. color: #FF611B;
  38. transform: translateX(-2%);
  39. .description {
  40. margin-left: 4px;
  41. }
  42. }
  43. }
  44. .track {
  45. position: absolute;
  46. top: $size * 3;
  47. height: $size;
  48. border-radius: $size;
  49. &__bg {
  50. left: 0;
  51. right: 0;
  52. background-color: #143731;
  53. }
  54. &__value {
  55. background-color: #FF611B;
  56. }
  57. &__scope {
  58. background-color: #38FF6E;
  59. }
  60. &__point {
  61. width: $size;
  62. height: $size;
  63. border: 1px solid #38FF6E;
  64. border-radius: 50%;
  65. box-sizing: content-box;
  66. transform: translate(-50%, -1px);
  67. background-color: #fff;
  68. &.small,
  69. &.big {
  70. border-color: #FF611B;
  71. }
  72. }
  73. }
  74. .point {
  75. position: absolute;
  76. top: $size * 4 + 4px;
  77. &__left {
  78. transform: translateX(-50%);
  79. }
  80. &__right {
  81. transform: translateX(50%);
  82. }
  83. }
  84. }
  85. }