UNPKG

antd

Version:

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

144 lines (143 loc) 3.06 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-badge { position: relative; display: inline-block; line-height: 1; vertical-align: middle; } .ant-badge-count { position: absolute; -ms-transform: translateX(-50%); transform: translateX(-50%); top: -10px; height: 20px; border-radius: 10px; min-width: 20px; background: #f04134; color: #fff; line-height: 20px; text-align: center; padding: 0 6px; font-size: 12px; white-space: nowrap; -ms-transform-origin: -10% center; transform-origin: -10% center; font-family: tahoma; } .ant-badge-count a, .ant-badge-count a:hover { color: #fff; } .ant-badge-dot { position: absolute; -ms-transform: translateX(-50%); transform: translateX(-50%); -ms-transform-origin: 0 center; transform-origin: 0 center; top: -4px; height: 8px; width: 8px; border-radius: 100%; background: #f04134; z-index: 10; box-shadow: 0 0 0 1px #fff; } .ant-badge-status { line-height: inherit; vertical-align: baseline; } .ant-badge-status-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; } .ant-badge-status-success { background-color: #00a854; } .ant-badge-status-processing { background-color: #108ee9; position: relative; } .ant-badge-status-processing:after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 1px solid #108ee9; content: ''; animation: antStatusProcessing 1.2s infinite ease-in-out; } .ant-badge-status-default { background-color: #d9d9d9; } .ant-badge-status-error { background-color: #f04134; } .ant-badge-status-warning { background-color: #ffbf00; } .ant-badge-status-text { color: rgba(0, 0, 0, 0.65); font-size: 12px; margin-left: 8px; } .ant-badge-zoom-appear, .ant-badge-zoom-enter { animation: antZoomBadgeIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46); animation-fill-mode: both; } .ant-badge-zoom-leave { animation: antZoomBadgeOut 0.3s cubic-bezier(0.71, -0.46, 0.88, 0.6); animation-fill-mode: both; } .ant-badge-not-a-wrapper .ant-badge-count { top: auto; display: block; position: relative; -ms-transform: none !important; transform: none !important; } @keyframes antStatusProcessing { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(2.4); opacity: 0; } } .ant-scroll-number { overflow: hidden; } .ant-scroll-number-only { display: inline-block; transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); height: 20px; } .ant-scroll-number-only > p { height: 20px; } @keyframes antZoomBadgeIn { 0% { opacity: 0; transform: scale(0) translateX(-50%); } 100% { transform: scale(1) translateX(-50%); } } @keyframes antZoomBadgeOut { 0% { transform: scale(1) translateX(-50%); } 100% { opacity: 0; transform: scale(0) translateX(-50%); } }