UNPKG

ps-frame-father

Version:

An enterprise-class UI design language and React components implementation

101 lines (100 loc) 1.86 kB
.rc-notification { position: fixed; z-index: 1000; } .rc-notification-notice { padding: 7px 20px 7px 10px; border-radius: 3px 3px; border: 1px solid #999; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); border: 0px solid rgba(0, 0, 0, 0); background: #fff; display: block; width: auto; line-height: 1.5; vertical-align: middle; position: relative; margin: 10px 0; } .rc-notification-notice-closable { padding-right: 20px; } .rc-notification-notice-close { position: absolute; right: 8px; top: 5px; color: #000; cursor: pointer; outline: none; font-size: 20px; font-weight: 500; line-height: 1; text-shadow: 0 1px 0 #fff; filter: alpha(opacity=20); opacity: 0.2; text-decoration: none; } .rc-notification-notice-close-x:after { content: '×'; } .rc-notification-notice-close:hover { opacity: 1; filter: alpha(opacity=100); text-decoration: none; } .rc-notification-fade-enter { animation: moveLeft 0.3s; } .rc-notification-fade-leave { animation: moveOutLeft 0.3s; } .rc-notification-fade-enter.rc-notification-fade-enter-active { animation: moveLeft 0.3s; } .rc-notification-fade-leave.rc-notification-fade-leave-active { animation-name: moveOutLeft 0.3s; } @keyframes moveOutLeft { 100% { right: -200%; } } @keyframes moveLeft { 0% { right: -200%; } 100% { right: 0; } } .xNotice { display: flex; padding: 12px; } .xNotice .iconWrap { width: 36px; line-height: 1.5; font-size: 20px; } .xNotice .iconWrap.info { color: #1890ff; } .xNotice .iconWrap.success { color: #52c41a; } .xNotice .iconWrap.warning { color: #faad14; } .xNotice .iconWrap.error { color: #f5222d; } .xNotice .xNoticeTit { margin-bottom: 6px; font-size: 16px; font-weight: 500; line-height: 1.5; } .xNotice .xNoticeDesc { line-height: 1.5; color: rgba(0, 0, 0, 0.65); }