wetrade-design
Version:
一款多语言支持Vue3的UI框架
459 lines (458 loc) • 9.82 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-badge {
box-sizing: border-box;
margin: 0;
padding: 0;
color: #1E1E29;
font-size: 14px;
font-variant: tabular-nums;
line-height: 18px;
list-style: none;
font-feature-settings: 'tnum';
position: relative;
display: inline-block;
line-height: 1;
}
.wd-badge-count {
z-index: auto;
min-width: 20px;
height: 20px;
padding: 0 6px;
color: #fff;
font-weight: normal;
font-size: 12px;
line-height: 20px;
white-space: nowrap;
text-align: center;
background: #ff4d4f;
border-radius: 10px;
box-shadow: 0 0 0 1px #fff;
}
.wd-badge-count a,
.wd-badge-count a:hover {
color: #fff;
}
.wd-badge-count-sm {
min-width: 14px;
height: 14px;
padding: 0;
font-size: 12px;
line-height: 14px;
border-radius: 7px;
}
.wd-badge-multiple-words {
padding: 0 8px;
}
.wd-badge-dot {
z-index: auto;
width: 6px;
min-width: 6px;
height: 6px;
background: #ff4d4f;
border-radius: 100%;
box-shadow: 0 0 0 1px #fff;
}
.wd-badge-dot.wd-scroll-number {
transition: background 1.5s;
}
.wd-badge-count,
.wd-badge-dot,
.wd-badge .wd-scroll-number-custom-component {
position: absolute;
top: 0;
right: 0;
transform: translate(50%, -50%);
transform-origin: 100% 0%;
}
.wd-badge-count.wdicon-spin,
.wd-badge-dot.wdicon-spin,
.wd-badge .wd-scroll-number-custom-component.wdicon-spin {
animation: antBadgeLoadingCircle 1s infinite linear;
}
.wd-badge-status {
line-height: inherit;
vertical-align: baseline;
}
.wd-badge-status-dot {
position: relative;
top: -1px;
display: inline-block;
width: 6px;
height: 6px;
vertical-align: middle;
border-radius: 50%;
}
.wd-badge-status-success {
background-color: #23BF70;
}
.wd-badge-status-processing {
position: relative;
background-color: #0637bf;
}
.wd-badge-status-processing::after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 1px solid #0637bf;
border-radius: 50%;
animation: antStatusProcessing 1.2s infinite ease-in-out;
content: '';
}
.wd-badge-status-default {
background-color: #d9d9d9;
}
.wd-badge-status-error {
background-color: #f5222d;
}
.wd-badge-status-warning {
background-color: #FF7925;
}
.wd-badge-status-pink {
background: #eb2f96;
}
.wd-badge-status-magenta {
background: #eb2f96;
}
.wd-badge-status-red {
background: #f5222d;
}
.wd-badge-status-volcano {
background: #fa541c;
}
.wd-badge-status-orange {
background: #FF7925;
}
.wd-badge-status-yellow {
background: #fadb14;
}
.wd-badge-status-gold {
background: #faad14;
}
.wd-badge-status-cyan {
background: #13c2c2;
}
.wd-badge-status-lime {
background: #a0d911;
}
.wd-badge-status-green {
background: #23BF70;
}
.wd-badge-status-blue {
background: #1251E5;
}
.wd-badge-status-geekblue {
background: #2f54eb;
}
.wd-badge-status-purple {
background: #EB17EB;
}
.wd-badge-status-text {
margin-left: 8px;
color: #1E1E29;
font-size: 14px;
}
.wd-badge-zoom-appear,
.wd-badge-zoom-enter {
animation: antZoomBadgeIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);
animation-fill-mode: both;
}
.wd-badge-zoom-leave {
animation: antZoomBadgeOut 0.3s cubic-bezier(0.71, -0.46, 0.88, 0.6);
animation-fill-mode: both;
}
.wd-badge-not-a-wrapper .wd-badge-zoom-appear,
.wd-badge-not-a-wrapper .wd-badge-zoom-enter {
animation: antNoWrapperZoomBadgeIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}
.wd-badge-not-a-wrapper .wd-badge-zoom-leave {
animation: antNoWrapperZoomBadgeOut 0.3s cubic-bezier(0.71, -0.46, 0.88, 0.6);
}
.wd-badge-not-a-wrapper:not(.wd-badge-status) {
vertical-align: middle;
}
.wd-badge-not-a-wrapper .wd-scroll-number-custom-component,
.wd-badge-not-a-wrapper .wd-badge-count {
transform: none;
}
.wd-badge-not-a-wrapper .wd-scroll-number-custom-component,
.wd-badge-not-a-wrapper .wd-scroll-number {
position: relative;
top: auto;
display: block;
transform-origin: 50% 50%;
}
@keyframes antStatusProcessing {
0% {
transform: scale(0.8);
opacity: 0.5;
}
100% {
transform: scale(2.4);
opacity: 0;
}
}
.wd-scroll-number {
overflow: hidden;
direction: ltr;
}
.wd-scroll-number-only {
position: relative;
display: inline-block;
height: 20px;
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
/* stylelint-disable property-no-vendor-prefix */
-webkit-transform-style: preserve-3d;
-webkit-backface-visibility: hidden;
/* stylelint-enable property-no-vendor-prefix */
}
.wd-scroll-number-only > p.wd-scroll-number-only-unit {
height: 20px;
margin: 0;
/* stylelint-disable property-no-vendor-prefix */
-webkit-transform-style: preserve-3d;
-webkit-backface-visibility: hidden;
/* stylelint-enable property-no-vendor-prefix */
}
.wd-scroll-number-symbol {
vertical-align: top;
}
@keyframes antZoomBadgeIn {
0% {
transform: scale(0) translate(50%, -50%);
opacity: 0;
}
100% {
transform: scale(1) translate(50%, -50%);
}
}
@keyframes antZoomBadgeOut {
0% {
transform: scale(1) translate(50%, -50%);
}
100% {
transform: scale(0) translate(50%, -50%);
opacity: 0;
}
}
@keyframes antNoWrapperZoomBadgeIn {
0% {
transform: scale(0);
opacity: 0;
}
100% {
transform: scale(1);
}
}
@keyframes antNoWrapperZoomBadgeOut {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
opacity: 0;
}
}
@keyframes antBadgeLoadingCircle {
0% {
transform-origin: 50%;
}
100% {
transform: translate(50%, -50%) rotate(360deg);
transform-origin: 50%;
}
}
.wd-ribbon-wrapper {
position: relative;
}
.wd-ribbon {
box-sizing: border-box;
margin: 0;
padding: 0;
color: #1E1E29;
font-size: 14px;
font-variant: tabular-nums;
line-height: 18px;
list-style: none;
font-feature-settings: 'tnum';
position: absolute;
top: 8px;
height: 22px;
padding: 0 8px;
color: #fff;
line-height: 22px;
white-space: nowrap;
background-color: #2469F2;
border-radius: 4px;
}
.wd-ribbon-text {
color: #fff;
}
.wd-ribbon-corner {
position: absolute;
top: 100%;
width: 8px;
height: 8px;
color: currentcolor;
border: 4px solid;
transform: scaleY(0.75);
transform-origin: top;
}
.wd-ribbon-corner::after {
position: absolute;
top: -4px;
left: -4px;
width: inherit;
height: inherit;
color: rgba(0, 0, 0, 0.25);
border: inherit;
content: '';
}
.wd-ribbon-color-pink {
color: #eb2f96;
background: #eb2f96;
}
.wd-ribbon-color-magenta {
color: #eb2f96;
background: #eb2f96;
}
.wd-ribbon-color-red {
color: #f5222d;
background: #f5222d;
}
.wd-ribbon-color-volcano {
color: #fa541c;
background: #fa541c;
}
.wd-ribbon-color-orange {
color: #FF7925;
background: #FF7925;
}
.wd-ribbon-color-yellow {
color: #fadb14;
background: #fadb14;
}
.wd-ribbon-color-gold {
color: #faad14;
background: #faad14;
}
.wd-ribbon-color-cyan {
color: #13c2c2;
background: #13c2c2;
}
.wd-ribbon-color-lime {
color: #a0d911;
background: #a0d911;
}
.wd-ribbon-color-green {
color: #23BF70;
background: #23BF70;
}
.wd-ribbon-color-blue {
color: #1251E5;
background: #1251E5;
}
.wd-ribbon-color-geekblue {
color: #2f54eb;
background: #2f54eb;
}
.wd-ribbon-color-purple {
color: #EB17EB;
background: #EB17EB;
}
.wd-ribbon.wd-ribbon-placement-end {
right: -8px;
border-bottom-right-radius: 0;
}
.wd-ribbon.wd-ribbon-placement-end .wd-ribbon-corner {
right: 0;
border-color: currentcolor transparent transparent currentcolor;
}
.wd-ribbon.wd-ribbon-placement-start {
left: -8px;
border-bottom-left-radius: 0;
}
.wd-ribbon.wd-ribbon-placement-start .wd-ribbon-corner {
left: 0;
border-color: currentcolor currentcolor transparent transparent;
}
.wd-badge-rtl {
direction: rtl;
}
.wd-badge-rtl .wd-badge:not(.wd-badge-not-a-wrapper) .wd-badge-count,
.wd-badge-rtl .wd-badge:not(.wd-badge-not-a-wrapper) .wd-badge-dot,
.wd-badge-rtl .wd-badge:not(.wd-badge-not-a-wrapper) .wd-scroll-number-custom-component {
right: auto;
left: 0;
direction: ltr;
transform: translate(-50%, -50%);
transform-origin: 0% 0%;
}
.wd-badge-rtl.wd-badge:not(.wd-badge-not-a-wrapper) .wd-scroll-number-custom-component {
right: auto;
left: 0;
transform: translate(-50%, -50%);
transform-origin: 0% 0%;
}
.wd-badge-rtl .wd-badge-status-text {
margin-right: 8px;
margin-left: 0;
}
.wd-ribbon-rtl {
direction: rtl;
}
.wd-ribbon-rtl.wd-ribbon-placement-end {
right: unset;
left: -8px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 0;
}
.wd-ribbon-rtl.wd-ribbon-placement-end .wd-ribbon-corner {
right: unset;
left: 0;
border-color: currentcolor currentcolor transparent transparent;
}
.wd-ribbon-rtl.wd-ribbon-placement-end .wd-ribbon-corner::after {
border-color: currentcolor currentcolor transparent transparent;
}
.wd-ribbon-rtl.wd-ribbon-placement-start {
right: -8px;
left: unset;
border-bottom-right-radius: 0;
border-bottom-left-radius: 4px;
}
.wd-ribbon-rtl.wd-ribbon-placement-start .wd-ribbon-corner {
right: 0;
left: unset;
border-color: currentcolor transparent transparent currentcolor;
}
.wd-ribbon-rtl.wd-ribbon-placement-start .wd-ribbon-corner::after {
border-color: currentcolor transparent transparent currentcolor;
}