index.less 684 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @import '../style/var';
  2. .van-rate {
  3. display: inline-flex;
  4. flex-wrap: wrap;
  5. cursor: pointer;
  6. user-select: none;
  7. &__item {
  8. position: relative;
  9. &:not(:last-child) {
  10. padding-right: @rate-icon-gutter;
  11. }
  12. }
  13. &__icon {
  14. display: block;
  15. width: 1em;
  16. color: @rate-icon-void-color;
  17. font-size: @rate-icon-size;
  18. &--half {
  19. position: absolute;
  20. top: 0;
  21. left: 0;
  22. width: 0.5em;
  23. overflow: hidden;
  24. }
  25. &--full {
  26. color: @rate-icon-full-color;
  27. }
  28. &--disabled {
  29. color: @rate-icon-disabled-color;
  30. }
  31. }
  32. &--disabled {
  33. cursor: not-allowed;
  34. }
  35. &--readonly {
  36. cursor: default;
  37. }
  38. }