choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
95 lines (94 loc) • 2.11 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 declaration-bang-space-before,no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
.c7n-message {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
position: fixed;
top: 0;
left: 0;
z-index: 1030;
pointer-events: none;
}
.c7n-message-notice {
padding: 0.08rem;
text-align: center;
}
.c7n-message-notice:first-child {
margin-top: -0.08rem;
}
.c7n-message-notice-content {
display: inline-block;
padding: 0.1rem 0.16rem;
background: #fff;
border-radius: 0.02rem;
-webkit-box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.12);
box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.12);
pointer-events: all;
}
.c7n-message-success .icon {
color: #00bf96;
}
.c7n-message-error .icon {
color: #d50000;
}
.c7n-message-warning .icon {
color: #faad14;
}
.c7n-message-info .icon,
.c7n-message-loading .c7n-progress-loading {
color: #3f51b5;
}
.c7n-message-loading .c7n-progress-loading {
position: relative;
top: -0.01rem;
margin-right: 0.08rem;
font-size: 0.16rem;
line-height: 1;
}
.c7n-message-loading .c7n-progress-loading .c7n-progress-inner {
width: 0.16rem;
height: 0.16rem;
}
.c7n-message .icon {
position: relative;
top: 0.01rem;
margin-right: 0.08rem;
font-size: 0.16rem;
vertical-align: top;
}
.c7n-message-notice.move-up-leave.move-up-leave-active {
overflow: hidden;
-webkit-animation-name: MessageMoveOut;
animation-name: MessageMoveOut;
-webkit-animation-duration: 0.3s;
animation-duration: 0.3s;
}
@-webkit-keyframes MessageMoveOut {
0% {
max-height: 1.5rem;
padding: 0.08rem;
opacity: 1;
}
100% {
max-height: 0;
padding: 0;
opacity: 0;
}
}
@keyframes MessageMoveOut {
0% {
max-height: 1.5rem;
padding: 0.08rem;
opacity: 1;
}
100% {
max-height: 0;
padding: 0;
opacity: 0;
}
}