index.less 565 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. @import (reference) './variable.less';
  2. @import '../style/mixins/hairline.less';
  3. .ant-rate {
  4. display: inline-flex;
  5. font-size: 48 * @rpx;
  6. user-select: none;
  7. &-container {
  8. display: flex;
  9. }
  10. &-star {
  11. position: relative;
  12. margin-right: 8 * @rpx;
  13. line-height: 1;
  14. &:last-child {
  15. margin-right: 0;
  16. }
  17. &-icon {
  18. color: #eee;
  19. }
  20. &-icon-active {
  21. color: @COLOR_YELLOW;
  22. }
  23. &-icon-half-active {
  24. position: absolute;
  25. left: 0;
  26. top: 0;
  27. width: 50%;
  28. overflow: hidden;
  29. }
  30. }
  31. }