wetrade-design
Version:
一款多语言支持Vue3的UI框架
117 lines (116 loc) • 2.33 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/** gray-sp */
/** blue-sp */
/** green-sp */
/** red-sp */
/** orange-sp */
/** 品牌橙 */
/** 日落黄 */
/** 柠檬黄 */
/** 新生绿 */
/** 绿色 */
/** 碧涛青 */
/** 海蔚蓝 */
/** 品牌蓝色 */
/** 宝石蓝 */
/** 星空紫 */
/** 罗兰紫 */
/** 青春紫 */
/** 品红 */
/** 红色 */
/** 灰色 */
/** 保留ant色板 */
/** 绿色 */
/** 品牌蓝 */
.wd-rate {
box-sizing: border-box;
color: #1E1E29;
font-size: 14px;
font-variant: tabular-nums;
line-height: 18px;
font-feature-settings: 'tnum';
display: inline-block;
margin: 0;
padding: 0;
color: #fadb14;
font-size: 20px;
line-height: unset;
list-style: none;
outline: none;
}
.wd-rate-disabled .wd-rate-star {
cursor: default;
}
.wd-rate-disabled .wd-rate-star:hover {
transform: scale(1);
}
.wd-rate-star {
position: relative;
display: inline-block;
color: inherit;
cursor: pointer;
}
.wd-rate-star:not(:last-child) {
margin-right: 8px;
}
.wd-rate-star > div {
transition: all 0.3s, outline 0s;
}
.wd-rate-star > div:hover {
transform: scale(1.1);
}
.wd-rate-star > div:focus {
outline: 0;
}
.wd-rate-star > div:focus-visible {
outline: 1px dashed #fadb14;
transform: scale(1.1);
}
.wd-rate-star-first,
.wd-rate-star-second {
color: #EBEDF2;
transition: all 0.3s;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.wd-rate-star-first .wdicon,
.wd-rate-star-second .wdicon {
vertical-align: middle;
}
.wd-rate-star-first {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
.wd-rate-star-half .wd-rate-star-first,
.wd-rate-star-half .wd-rate-star-second {
opacity: 1;
}
.wd-rate-star-half .wd-rate-star-first,
.wd-rate-star-full .wd-rate-star-second {
color: inherit;
}
.wd-rate-text {
display: inline-block;
margin: 0 8px;
font-size: 14px;
}
.wd-rate-rtl {
direction: rtl;
}
.wd-rate-rtl .wd-rate-star:not(:last-child) {
margin-right: 0;
margin-left: 8px;
}
.wd-rate-rtl .wd-rate-star-first {
right: 0;
left: auto;
}