frc-ui
Version:
React Web UI
61 lines (60 loc) • 1.11 kB
CSS
.swc-message {
font-size: 12px;
line-height: 1.5;
color: #ffebc8;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
position: fixed;
top: 16px;
left: 0;
z-index: 1010;
width: 100%;
pointer-events: none;
}
.swc-message-notice {
padding: 8px;
text-align: center;
}
.swc-message-notice:first-child {
margin-top: -8px;
}
.swc-message-notice-content {
display: inline-block;
padding: 10px 16px;
background: '#172422';
border-radius: 2px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
pointer-events: all;
}
.swc-message-success > .swc-icon {
color: #52c41a;
}
.swc-message-error > .swc-icon {
color: #dc4444;
}
.swc-message-warning > .swc-icon {
color: #faad14;
}
.swc-message-info > .swc-icon,
.swc-message-loading > .swc-icon {
color: #1890ff;
}
.swc-message-notice.move-up-leave.move-up-leave-active {
overflow: hidden;
animation-name: MessageMoveOut;
animation-duration: 0.3s;
}
@keyframes MessageMoveOut {
0% {
max-height: 150px;
padding: 8px;
opacity: 1;
}
100% {
max-height: 0;
padding: 0;
opacity: 0;
}
}