From dc2678cb9c91af410befe70e2b8f7e8b0bd73ec5 Mon Sep 17 00:00:00 2001 From: chunqi feng <44807921+fengchunqi@users.noreply.github.com> Date: Thu, 27 Apr 2023 11:07:28 +0800 Subject: [PATCH] Refator/rate (#1310) * refactor(rate): rate popover * docs: rate docs * refactor(rate): rate tips --- style/mobile/components/rate/v2/_index.less | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/style/mobile/components/rate/v2/_index.less b/style/mobile/components/rate/v2/_index.less index 3c1fe213cf..482ba655d7 100644 --- a/style/mobile/components/rate/v2/_index.less +++ b/style/mobile/components/rate/v2/_index.less @@ -18,6 +18,23 @@ line-height: 1em; width: 1em; transition: transform .3s ease; + position: relative; + + &-left { + position: absolute; + width: 50%; + overflow: hidden; + top: 0; + left: 0; + + &--selected { + color: @rate-selected-color; + } + + &--unselected { + color: @rate-unselected-color; + } + } &--current { transform: scale(@rate-icon-scale);