style: fix Rate focused style (#30451)

* style: fix Rate focused style

close #30449

* Apply suggestions from code review

Co-authored-by: xrkffgg <xrkffgg@gmail.com>

Co-authored-by: xrkffgg <xrkffgg@gmail.com>
This commit is contained in:
afc163 2021-05-10 10:58:53 +08:00 committed by GitHub
parent effb9d9eef
commit 7e8075b06b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,21 +27,22 @@
display: inline-block;
color: inherit;
cursor: pointer;
transition: all 0.3s;
&:not(:last-child) {
margin-right: 8px;
}
> div {
&:focus {
outline: 0;
}
transition: all 0.3s;
&:hover,
&:focus {
&:focus-visible {
transform: @rate-star-hover-scale;
}
&:focus:not(:focus-visible) {
outline: 0;
}
}
&-first,