UNPKG

@fe6/water-pro

Version:

An enterprise-class UI design language and Vue-based implementation

104 lines (90 loc) 1.99 kB
@rate-prefix-cls: rc-rate; @rate-star-color: #f5a623; @font-size-base: 13px; .@{rate-prefix-cls} { display: inline-block; margin: 0; padding: 0; font-weight: normal; font-size: 18px; font-style: normal; vertical-align: middle; list-style: none; outline: none; &-disabled &-star { &::before, &-content::before { cursor: default; } &:hover { transform: scale(1); } } &-star { position: relative; display: inline-block; margin: 0; margin-right: 8px; padding: 0; color: #e9e9e9; line-height: 1.5; cursor: pointer; transition: all 0.3s; &-first, &-second { transition: all 0.3s; } &-focused, &:hover { transform: scale(1.1); } &-first { position: absolute; top: 0; left: 0; width: 50%; height: 100%; overflow: hidden; opacity: 0; } &-half &-first, &-half &-second { opacity: 1; } &-half &-first, &-full &-second { color: @rate-star-color; } &-half:hover &-first, &-full:hover &-second { color: tint(@rate-star-color, 30%); } } } @icon-url: '//at.alicdn.com/t/font_r5u29ls31bgldi'; @font-face { font-family: 'anticon'; src: url('@{icon-url}.eot'); /* IE9 */ src: url('@{icon-url}.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('@{icon-url}.woff') format('woff'), /* chrome、firefox */ url('@{icon-url}.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('@{icon-url}.svg#iconfont') format('svg'); /* iOS 4.1- */ } .anticon { font-style: normal; line-height: 1; text-align: center; text-transform: none; vertical-align: baseline; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; &::before { display: block; font-family: 'anticon' !important; } } .anticon-star::before { content: '\e660'; }