wetrade-design
Version:
一款多语言支持Vue3的UI框架
167 lines (166 loc) • 3.32 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-message {
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: fixed;
top: 8px;
left: 0;
z-index: 2010;
width: 100%;
pointer-events: none;
}
.wd-message-notice {
padding: 8px;
text-align: center;
}
.wd-message-notice-content {
display: inline-block;
padding: 12px 16px;
background: #EDEFF3;
border-radius: 6px;
box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.24), 0px 9px 32px 2px rgba(0, 0, 0, 0.5), 0px 0px 1px 0px rgba(255, 255, 255, 0.6);
pointer-events: all;
}
.wd-message-notice-content__box {
display: flex;
align-items: flex-start;
flex-direction: column;
}
.wd-message-notice-content__title {
color: #1E1E29;
line-height: 22px;
margin-bottom: 4px;
}
.wd-message-notice-content__message {
color: #656B80;
line-height: 22px;
}
.wd-message-notice-content__icon {
position: relative;
display: flex;
align-items: center;
}
.wd-message-notice-content__icon::before {
position: absolute;
content: '';
display: block;
width: 20px;
height: 20px;
border-radius: 20px;
width: 15px;
top: 50%;
height: 15px;
background-color: #fff;
border-radius: 15px;
left: 50%;
transform: translate(-50%, -50%);
}
.wd-message-custom-content {
display: flex;
align-items: flex-start;
justify-content: space-between;
color: #1E1E29;
}
.wd-message-custom-content span {
line-height: 22px;
}
.wd-message-notice-title .wd-message-notice-content {
padding: 16px;
}
.wd-message-success .wdicon {
color: #23BF70;
}
.wd-message-error .wdicon {
color: #f5222d;
}
.wd-message-warning .wdicon {
color: #FF7925;
}
.wd-message-info .wdicon,
.wd-message-loading .wdicon {
color: #2469F2;
}
.wd-message .wdicon {
position: relative;
top: 1px;
margin-right: 8px;
font-size: 20px;
}
.wd-message-notice.wd-move-up-leave.wd-move-up-leave-active {
animation-name: MessageMoveOut;
animation-duration: 0.3s;
}
.wd-message-close {
margin-left: 24px;
padding: 0;
overflow: hidden;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
background-color: transparent;
border: none;
outline: none;
cursor: pointer;
}
.wd-message-close .wdicon {
margin-right: 0;
font-size: 16px;
color: #656B80;
}
@keyframes MessageMoveOut {
0% {
max-height: 150px;
padding: 8px;
opacity: 1;
}
100% {
max-height: 0;
padding: 0;
opacity: 0;
}
}
.wd-message-rtl {
direction: rtl;
}
.wd-message-rtl span {
direction: rtl;
}
.wd-message-rtl .wdicon {
margin-right: 0;
margin-left: 8px;
}