UNPKG

antd-mobile

Version:

<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />

45 lines (40 loc) 782 B
.adm-badge-wrap { display: inline-block; position: relative; } .adm-badge { display: inline-flex; vertical-align: middle; box-sizing: content-box; border-radius: 200px; background-color: var(--color); --right: 0; --top: 0; --color: var(--adm-badge-color, #ff411c); } .adm-badge-content { color: #fff; box-sizing: border-box; min-width: 16px; padding: 2px 8px; font-size: 18px; line-height: 24px; white-space: nowrap; font-weight: normal; text-align: center; } .adm-badge-fixed { position: absolute; right: var(--right); top: var(--top); transform: translate(50%, -50%); } .adm-badge-dot { min-width: 20px; width: 20px; height: 20px; border-radius: 10px; } .adm-badge-bordered { border: solid 2px var(--adm-color-white); }