rate.wxss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. page {
  29. --td-rate-text-color: rgba(0, 0, 0, 0.4);
  30. --td-rate-selected-color: #ed7b2f;
  31. --td-rate-unselected-color: #e3e6eb;
  32. --td-rate-disabled-color: #999999;
  33. }
  34. .t-rate {
  35. display: flex;
  36. align-items: center;
  37. justify-content: flex-start;
  38. }
  39. .t-rate__wrapper {
  40. line-height: 1em;
  41. display: inline-flex;
  42. }
  43. .t-rate__icon {
  44. line-height: 1em;
  45. }
  46. .t-rate-selected {
  47. color: var(--td-rate-selected-color);
  48. }
  49. .t-rate-selected-half {
  50. color: transparent;
  51. background: linear-gradient(to right, var(--td-rate-selected-color) 0%, var(--td-rate-selected-color) 50%, var(--td-rate-unselected-color) 51%, var(--td-rate-unselected-color) 100%);
  52. -webkit-background-clip: text;
  53. background-clip: text;
  54. }
  55. .t-rate-unselected {
  56. color: var(--td-rate-unselected-color);
  57. }
  58. .t-rate-disabled {
  59. color: var(--td-rate-disabled-color);
  60. }
  61. .t-rate-disabled-half {
  62. background: linear-gradient(to right, var(--td-rate-disabled-color) 0%, var(--td-rate-disabled-color) 50%, var(--td-rate-unselected-color) 51%, var(--td-rate-unselected-color) 100%);
  63. -webkit-background-clip: text;
  64. background-clip: text;
  65. }
  66. .t-rate__text {
  67. font-size: 32rpx;
  68. color: var(--td-rate-text-color);
  69. padding-left: 32rpx;
  70. vertical-align: middle;
  71. }