UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

64 lines (63 loc) 1.28 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable declaration-bang-space-before */ /* stylelint-disable declaration-bang-space-before */ .ant-message { font-size: 12px; position: fixed; z-index: 1010; width: 100%; top: 16px; left: 0; pointer-events: none; } .ant-message-notice { padding: 8px; text-align: center; } .ant-message-notice:first-child { margin-top: -8px; } .ant-message-notice-content { padding: 8px 16px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); background: #fff; display: inline-block; pointer-events: all; } .ant-message-success .anticon { color: #00a854; } .ant-message-error .anticon { color: #f04134; } .ant-message-warning .anticon { color: #ffbf00; } .ant-message-info .anticon, .ant-message-loading .anticon { color: #108ee9; } .ant-message .anticon { margin-right: 8px; font-size: 14px; top: 1px; position: relative; } .ant-message-notice.move-up-leave.move-up-leave-active { animation-name: MessageMoveOut; overflow: hidden; animation-duration: .3s; } @keyframes MessageMoveOut { 0% { opacity: 1; max-height: 150px; padding: 8px; } 100% { opacity: 0; max-height: 0; padding: 0; } }