wetrade-design
Version:
一款多语言支持Vue3的UI框架
269 lines (268 loc) • 6.08 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色板 */
/** 绿色 */
/** 品牌蓝 */
@keyframes antCheckboxEffect {
0% {
transform: scale(1);
opacity: 0.5;
}
100% {
transform: scale(1.6);
opacity: 0;
}
}
.wd-checkbox {
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;
line-height: 1;
white-space: nowrap;
outline: none;
cursor: pointer;
}
.wd-checkbox-wrapper:hover .wd-checkbox-inner,
.wd-checkbox:hover .wd-checkbox-inner,
.wd-checkbox-input:focus + .wd-checkbox-inner {
border-color: #2469F2;
}
.wd-checkbox-checked::after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 1px solid #2469F2;
border-radius: 6px;
visibility: hidden;
animation: antCheckboxEffect 0.36s ease-in-out;
animation-fill-mode: backwards;
content: '';
box-sizing: border-box;
}
.wd-checkbox:hover::after,
.wd-checkbox-wrapper:hover .wd-checkbox::after {
visibility: visible;
}
.wd-checkbox-inner {
position: relative;
top: 0;
left: 0;
display: block;
width: 14px;
height: 14px;
direction: ltr;
background-color: transparent;
border: 1.5px solid #818799;
border-radius: 2px;
border-collapse: separate;
transition: all 0.3s;
}
.wd-checkbox-inner::after {
position: absolute;
top: 50%;
left: 21.5%;
display: table;
width: 4.07px;
height: 7.78px;
border: 1px solid #fff;
border-top: 0;
border-left: 0;
transform: rotate(40deg) scale(0) translate(-50%, -50%);
opacity: 0;
transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
content: ' ';
box-sizing: border-box;
}
.wd-checkbox-input {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
width: 100%;
height: 100%;
cursor: pointer;
opacity: 0;
}
.wd-checkbox-checked .wd-checkbox-inner::after {
position: absolute;
display: table;
border: 2px solid #fff;
border-top: 0;
border-left: 0;
transform: rotate(45deg) scale(1) translate(-50%, -50%);
opacity: 1;
transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
content: ' ';
}
.wd-checkbox-checked .wd-checkbox-inner {
background-color: #2469F2;
border-color: #2469F2;
}
.wd-checkbox-disabled {
cursor: not-allowed;
}
.wd-checkbox-disabled.wd-checkbox-checked .wd-checkbox-inner {
background-color: #93BEFB;
border-color: #93BEFB;
}
.wd-checkbox-disabled.wd-checkbox-checked .wd-checkbox-inner::after {
border-collapse: separate;
animation-name: none;
border-color: #656B80;
}
.wd-checkbox-disabled .wd-checkbox-input {
cursor: not-allowed;
pointer-events: none;
}
.wd-checkbox-disabled:not(.wd-checkbox-checked) .wd-checkbox-inner {
background-color: #DBDEE8;
border-color: #C7CBD6;
}
.wd-checkbox-disabled:not(.wd-checkbox-checked) .wd-checkbox-inner::after {
border-collapse: separate;
animation-name: none;
}
.wd-checkbox-disabled + span {
color: #C7CBD6;
cursor: not-allowed;
}
.wd-checkbox-disabled:hover::after,
.wd-checkbox-wrapper:hover .wd-checkbox-disabled::after {
visibility: hidden;
}
.wd-checkbox-wrapper {
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-flex;
align-items: center;
line-height: 24px;
cursor: pointer;
padding: 0 6px;
height: 24px;
font-weight: normal;
}
.wd-checkbox-wrapper:hover {
background: rgba(129, 135, 153, 0.1);
border-radius: 4px;
}
.wd-checkbox-wrapper:hover .wd-checkbox-indeterminate .wd-checkbox-inner {
border-color: #2469F2;
}
.wd-checkbox-wrapper::after {
display: inline-block;
width: 0;
overflow: hidden;
content: '\a0';
}
.wd-checkbox-wrapper.wd-checkbox-wrapper-disabled {
cursor: not-allowed;
background: none;
}
.wd-checkbox-wrapper.wd-checkbox-wrapper-disabled .wd-checkbox-text {
color: #C7CBD6;
}
.wd-checkbox-wrapper + .wd-checkbox-wrapper {
margin-left: 8px;
}
.wd-checkbox-wrapper-checked:not(.wd-checkbox-wrapper-disabled):hover .wd-checkbox-inner {
border-color: #2469F2;
}
.wd-checkbox + span {
padding: 0 0 0 8px;
font-size: 12px;
line-height: 18px;
color: #1E1E29;
}
.wd-checkbox-group {
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;
}
.wd-checkbox-group-item {
margin-right: 8px;
}
.wd-checkbox-group-item:last-child {
margin-right: 0;
}
.wd-checkbox-group-item + .wd-checkbox-group-item {
margin-left: 0;
}
.wd-checkbox-indeterminate .wd-checkbox-inner {
background-color: #2469F2;
border-color: #2469F2;
}
.wd-checkbox-indeterminate .wd-checkbox-inner::after {
top: 50%;
left: 50%;
width: 6px;
height: 2px;
background-color: #fff;
border: 0;
transform: translate(-50%, -50%) scale(1);
opacity: 1;
content: ' ';
}
.wd-checkbox-indeterminate.wd-checkbox-disabled .wd-checkbox-inner::after {
background-color: #C7CBD6;
border-color: #C7CBD6;
}
.wd-checkbox-rtl {
direction: rtl;
}
.wd-checkbox-group-rtl .wd-checkbox-group-item {
margin-right: 0;
margin-left: 8px;
}
.wd-checkbox-group-rtl .wd-checkbox-group-item:last-child {
margin-left: 0 ;
}
.wd-checkbox-group-rtl .wd-checkbox-group-item + .wd-checkbox-group-item {
margin-left: 8px;
}