[new feature] Rate: add allow-half prop (#3134)

This commit is contained in:
neverland
2019-04-11 17:14:34 +08:00
committed by GitHub
parent e6d4f331a8
commit 9ecbcae725
7 changed files with 314 additions and 74 deletions
+14 -2
View File
@@ -4,8 +4,20 @@
user-select: none;
&__item {
width: 1em;
display: inline-block;
position: relative;
padding: 0 2px;
box-sizing: content-box;
}
&__icon {
width: 1em;
&--half {
position: absolute;
top: 0;
left: 2px;
width: .5em;;
overflow: hidden;
}
}
}