wetrade-design
Version:
一款多语言支持Vue3的UI框架
168 lines (167 loc) • 3.78 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-segmented {
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';
display: inline-block;
padding: 2px;
color: #656B80;
background-color: #FBFCFD;
border-radius: 4px;
transition: all 0.3s ease-in-out;
}
.wd-segmented-group {
position: relative;
display: flex;
align-items: stretch;
justify-items: flex-start;
width: 100%;
}
.wd-segmented-rtl {
direction: rtl;
}
.wd-segmented-block {
display: flex;
}
.wd-segmented-block .wd-segmented-item {
flex: 1;
min-width: 0;
}
.wd-segmented-item {
position: relative;
text-align: center;
cursor: pointer;
transition: color 0.3s ease-in-out;
border-radius: 4px;
}
.wd-segmented-item-selected {
color: #1E1E29;
background-color: #D4D9E3;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.15);
}
.wd-segmented-item::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
inset-inline-start: 0;
border-radius: inherit;
transition: background-color 0.3s;
}
.wd-segmented-item:hover:not(.wd-segmented-item-selected):not( .wd-segmented-item-disabled) {
color: #1E1E29;
}
.wd-segmented-item:hover:not(.wd-segmented-item-selected):not( .wd-segmented-item-disabled)::after {
background-color: rgba(129, 135, 153, 0.1);
}
.wd-segmented-item-label {
min-height: 28px;
line-height: 28px;
padding: 0 10px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.wd-segmented-item-input {
position: absolute;
inset-block-start: 0;
inset-inline-start: 0;
width: 0;
height: 0;
opacity: 0;
pointer-events: none;
}
.wd-segmented-item-disabled,
.wd-segmented-item-disabled:hover,
.wd-segmented-item-disabled:focus {
color: #C7CBD6;
cursor: not-allowed;
}
.wd-segmented-thumb {
background-color: #D4D9E3;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.15);
position: absolute;
inset-block-start: 0;
width: 0;
height: 100%;
border-radius: 4px;
}
.wd-segmented-thumb ~ .wd-segmented-item:not(.wd-segmented-item-selected):not( .wd-segmented-item-disabled)::after {
background-color: transparent;
}
.wd-segmented-thumb-motion-appear-active {
transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
will-change: transform, width;
}
.wd-segmented-bg {
border-radius: 4px;
}
.wd-segmented-bg .wd-segmented-item-label {
min-height: 32px;
line-height: 32px;
padding: 0 12px;
font-size: 15px;
}
.wd-segmented-bg .wd-segmented-item,
.wd-segmented-bg .wd-segmented-thumb {
border-radius: 4px;
}
.wd-segmented-sm {
border-radius: 4px;
}
.wd-segmented-sm .wd-segmented-item-label {
min-height: 24px;
line-height: 24px;
padding: 0 8px;
font-size: 12px;
}
.wd-segmented-sm .wd-segmented-item,
.wd-segmented-sm .wd-segmented-thumb {
border-radius: 4px;
}
.wd-segmented-xs {
border-radius: 4px;
}
.wd-segmented-xs .wd-segmented-item-label {
min-height: 20px;
line-height: 20px;
padding: 0 8px;
font-size: 12px;
}
.wd-segmented-xs .wd-segmented-item,
.wd-segmented-xs .wd-segmented-thumb {
border-radius: 4px;
}