wetrade-design
Version:
一款多语言支持Vue3的UI框架
232 lines (231 loc) • 5.64 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-notification {
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;
z-index: 2010;
margin-right: 24px;
}
.wd-notification-topLeft,
.wd-notification-bottomLeft {
margin-right: 0;
margin-left: 24px;
}
.wd-notification-topLeft .wd-notification-fade-enter.wd-notification-fade-enter-active,
.wd-notification-bottomLeft .wd-notification-fade-enter.wd-notification-fade-enter-active,
.wd-notification-topLeft .wd-notification-fade-appear.wd-notification-fade-appear-active,
.wd-notification-bottomLeft .wd-notification-fade-appear.wd-notification-fade-appear-active {
animation-name: NotificationLeftFadeIn;
}
.wd-notification-close-icon {
font-size: 14px;
cursor: pointer;
}
.wd-notification-hook-holder {
position: relative;
}
.wd-notification-notice {
position: relative;
width: 384px;
max-width: calc(100vw - 24px * 2);
margin-bottom: 16px;
margin-left: auto;
padding: 16px 24px;
overflow: hidden;
line-height: 18px;
word-wrap: break-word;
background: #fff;
border-radius: 6px;
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}
.wd-notification-topLeft .wd-notification-notice,
.wd-notification-bottomLeft .wd-notification-notice {
margin-right: auto;
margin-left: 0;
}
.wd-notification-notice-message {
margin-bottom: 8px;
color: #1E1E29;
font-size: 16px;
line-height: 24px;
}
.wd-notification-notice-message-single-line-auto-margin {
display: block;
width: calc(384px - 24px * 2 - 24px - 48px - 100%);
max-width: 4px;
background-color: transparent;
pointer-events: none;
}
.wd-notification-notice-message-single-line-auto-margin::before {
display: block;
content: '';
}
.wd-notification-notice-description {
font-size: 14px;
}
.wd-notification-notice-closable .wd-notification-notice-message {
padding-right: 24px;
}
.wd-notification-notice-with-icon .wd-notification-notice-message {
margin-bottom: 4px;
margin-left: 48px;
font-size: 16px;
}
.wd-notification-notice-with-icon .wd-notification-notice-description {
margin-left: 48px;
font-size: 14px;
}
.wd-notification-notice-icon {
position: absolute;
margin-left: 4px;
font-size: 24px;
line-height: 24px;
}
.wdicon.wd-notification-notice-icon-success {
color: #23BF70;
}
.wdicon.wd-notification-notice-icon-info {
color: #2469F2;
}
.wdicon.wd-notification-notice-icon-warning {
color: #FF7925;
}
.wdicon.wd-notification-notice-icon-error {
color: #f5222d;
}
.wd-notification-notice-close {
position: absolute;
top: 16px;
right: 22px;
color: #575E73;
outline: none;
}
.wd-notification-notice-close:hover {
color: #343845;
}
.wd-notification-notice-btn {
float: right;
margin-top: 16px;
}
.wd-notification .notification-fade-effect {
animation-duration: 0.24s;
animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
animation-fill-mode: both;
}
.wd-notification-fade-enter,
.wd-notification-fade-appear {
animation-duration: 0.24s;
animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
animation-fill-mode: both;
opacity: 0;
animation-play-state: paused;
}
.wd-notification-fade-leave {
animation-duration: 0.24s;
animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
animation-fill-mode: both;
animation-duration: 0.2s;
animation-play-state: paused;
}
.wd-notification-fade-enter.wd-notification-fade-enter-active,
.wd-notification-fade-appear.wd-notification-fade-appear-active {
animation-name: NotificationFadeIn;
animation-play-state: running;
}
.wd-notification-fade-leave.wd-notification-fade-leave-active {
animation-name: NotificationFadeOut;
animation-play-state: running;
}
@keyframes NotificationFadeIn {
0% {
left: 384px;
opacity: 0;
}
100% {
left: 0;
opacity: 1;
}
}
@keyframes NotificationLeftFadeIn {
0% {
right: 384px;
opacity: 0;
}
100% {
right: 0;
opacity: 1;
}
}
@keyframes NotificationFadeOut {
0% {
max-height: 150px;
margin-bottom: 16px;
opacity: 1;
}
100% {
max-height: 0;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
opacity: 0;
}
}
.wd-notification-rtl {
direction: rtl;
}
.wd-notification-rtl .wd-notification-notice-closable .wd-notification-notice-message {
padding-right: 0;
padding-left: 24px;
}
.wd-notification-rtl .wd-notification-notice-with-icon .wd-notification-notice-message {
margin-right: 48px;
margin-left: 0;
}
.wd-notification-rtl .wd-notification-notice-with-icon .wd-notification-notice-description {
margin-right: 48px;
margin-left: 0;
}
.wd-notification-rtl .wd-notification-notice-icon {
margin-right: 4px;
margin-left: 0;
}
.wd-notification-rtl .wd-notification-notice-close {
right: auto;
left: 22px;
}
.wd-notification-rtl .wd-notification-notice-btn {
float: left;
}