wetrade-design
Version:
一款多语言支持Vue3的UI框架
214 lines (213 loc) • 4.73 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-alert {
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: flex;
align-items: center;
padding: 8px 24px 8px 16px;
word-wrap: break-word;
border-radius: 6px;
font-size: 12px ;
}
.wd-alert-content {
flex: 1;
min-width: 0;
}
.wd-alert-icon {
margin-right: 8px;
font-size: 18px;
}
.wd-alert-description {
display: none;
font-size: 12px;
color: #656B80;
}
.wd-alert-error .wd-alert-icon-tip,
.wd-alert-warning .wd-alert-icon-tip,
.wd-alert-info .wd-alert-icon-tip,
.wd-alert-success .wd-alert-icon-tip {
font-size: 18px;
margin-right: 8px;
width: 20px;
height: 20px;
}
.wd-alert-error .wd-alert-icon-tip .wd-icon,
.wd-alert-warning .wd-alert-icon-tip .wd-icon,
.wd-alert-info .wd-alert-icon-tip .wd-icon,
.wd-alert-success .wd-alert-icon-tip .wd-icon {
margin-top: 1px;
}
.wd-alert-success {
background-color: #FAFDFC;
}
.wd-alert-success .wd-alert-icon-tip {
color: #23BF70;
}
.wd-alert-info {
background-color: #F6F9FE;
}
.wd-alert-info .wd-alert-icon-tip {
color: #2469F2;
}
.wd-alert-warning {
background-color: #FFFCFA;
}
.wd-alert-warning .wd-alert-icon-tip {
color: #FF7925;
}
.wd-alert-error {
background-color: #FFFAFB;
}
.wd-alert-error .wd-alert-icon-tip {
color: #f5222d;
}
.wd-alert-error .wd-alert-description > pre {
margin: 0;
padding: 0;
}
.wd-alert-action {
margin-left: 8px;
}
.wd-alert-close-icon {
margin-left: 8px;
padding: 0;
overflow: hidden;
font-size: 12px;
line-height: 12px;
background-color: transparent;
border: none;
outline: none;
cursor: pointer;
}
.wd-alert-close-icon .wdicon-close {
color: #575E73;
transition: color 0.3s;
}
.wd-alert-close-icon .wdicon-close:hover {
color: rgba(0, 0, 0, 0.75);
}
.wd-alert-close-icon .wd-alert-tips_close {
line-height: 18px;
width: 18px;
font-size: 16px;
border-radius: 3px;
color: #656B80;
font-weight: 700;
}
.wd-alert-close-icon .wd-alert-tips_close:focus,
.wd-alert-close-icon .wd-alert-tips_close:hover {
color: #1E1E29;
background-color: rgba(129, 135, 153, 0.1);
text-decoration: none;
}
.wd-alert-close-icon .wd-alert-tips_close:active {
color: #1E1E29;
background-color: rgba(129, 135, 153, 0.2);
text-decoration: none;
}
.wd-alert-close-text {
color: #575E73;
transition: color 0.3s;
}
.wd-alert-close-text:hover {
color: rgba(0, 0, 0, 0.75);
}
.wd-alert-icon-start {
align-items: flex-start;
}
.wd-alert-with-description {
align-items: flex-start;
padding: 12px 24px 12px 16px;
}
.wd-alert-with-description.wd-alert-no-icon {
padding: 12px 24px 12px 16px;
}
.wd-alert-with-description .wd-alert-icon {
font-size: 24px;
}
.wd-alert-with-description .wd-alert-message {
display: block;
margin-bottom: 4px;
color: #1E1E29;
font-size: 12px;
}
.wd-alert-message {
color: #1E1E29;
}
.wd-alert-with-description .wd-alert-description {
display: block;
}
.wd-alert.wd-alert-motion-leave {
overflow: hidden;
opacity: 1;
transition: max-height 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), opacity 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), padding-top 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), padding-bottom 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), margin-bottom 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}
.wd-alert.wd-alert-motion-leave-active {
max-height: 0;
margin-bottom: 0 ;
padding-top: 0;
padding-bottom: 0;
opacity: 0;
}
.wd-alert-banner {
margin-bottom: 0;
border: 0;
border-radius: 0;
}
.wd-alert.wd-alert-rtl {
direction: rtl;
}
.wd-alert-rtl .wd-alert-icon {
margin-right: auto;
margin-left: 8px;
}
.wd-alert-rtl .wd-alert-action {
margin-right: 8px;
margin-left: auto;
}
.wd-alert-rtl .wd-alert-close-icon {
margin-right: 8px;
margin-left: auto;
}
.wd-alert-rtl.wd-alert-with-description {
padding-right: 24px;
padding-left: 15px;
}
.wd-alert-rtl.wd-alert-with-description .wd-alert-icon {
margin-right: auto;
margin-left: 15px;
}