UNPKG

antd-mobile

Version:

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

176 lines (147 loc) 3.69 kB
.adm-popover { --z-index: var(--adm-popover-z-index, 1030); --background: #ffffff; --arrow-size: 16px; --content-padding: 16px 24px; position: absolute; top: 0; left: 0; z-index: var(--z-index); white-space: normal; text-align: left; cursor: auto; user-select: text; animation: none; } .adm-popover.adm-popover-dark { --background: rgba(0, 0, 0, 0.75); --adm-color-text: #ffffff; color: white; } .adm-popover.adm-popover-dark .adm-popover-inner { box-shadow: none; } .adm-popover::after { position: absolute; background: rgba(255, 255, 255, 0.01); content: ''; } .adm-popover-hidden { display: none; } .adm-popover-placement-top, .adm-popover-placement-topLeft, .adm-popover-placement-topRight { padding-bottom: var(--arrow-size); } .adm-popover-placement-top .adm-popover-arrow, .adm-popover-placement-topLeft .adm-popover-arrow, .adm-popover-placement-topRight .adm-popover-arrow { bottom: 0; --arrow-icon-rotate: 0deg; } .adm-popover-placement-top .adm-popover-arrow { left: 50%; transform: translateX(-50%); } .adm-popover-placement-topLeft .adm-popover-arrow { left: 24px; } .adm-popover-placement-topRight .adm-popover-arrow { right: 24px; } .adm-popover-placement-right, .adm-popover-placement-rightTop, .adm-popover-placement-rightBottom { padding-left: var(--arrow-size); } .adm-popover-placement-right .adm-popover-arrow, .adm-popover-placement-rightTop .adm-popover-arrow, .adm-popover-placement-rightBottom .adm-popover-arrow { left: 0; --arrow-icon-rotate: 90deg; } .adm-popover-placement-right .adm-popover-arrow { top: 50%; transform: translateY(-50%); } .adm-popover-placement-rightTop .adm-popover-arrow { top: 24px; } .adm-popover-placement-rightBottom .adm-popover-arrow { bottom: 24px; } .adm-popover-placement-bottom, .adm-popover-placement-bottomLeft, .adm-popover-placement-bottomRight { padding-top: var(--arrow-size); } .adm-popover-placement-bottom .adm-popover-arrow, .adm-popover-placement-bottomLeft .adm-popover-arrow, .adm-popover-placement-bottomRight .adm-popover-arrow { top: 0; --arrow-icon-rotate: 180deg; } .adm-popover-placement-bottom .adm-popover-arrow { left: 50%; transform: translateX(-50%); } .adm-popover-placement-bottomLeft .adm-popover-arrow { left: 24px; } .adm-popover-placement-bottomRight .adm-popover-arrow { right: 24px; } .adm-popover-placement-left, .adm-popover-placement-leftTop, .adm-popover-placement-leftBottom { padding-right: var(--arrow-size); } .adm-popover-placement-left .adm-popover-arrow, .adm-popover-placement-leftTop .adm-popover-arrow, .adm-popover-placement-leftBottom .adm-popover-arrow { right: 0; --arrow-icon-rotate: 270deg; } .adm-popover-placement-left .adm-popover-arrow { top: 50%; transform: translateY(-50%); } .adm-popover-placement-leftTop .adm-popover-arrow { top: 24px; } .adm-popover-placement-leftBottom .adm-popover-arrow { bottom: 24px; } .adm-popover-inner { background-color: var(--background); background-clip: padding-box; border-radius: 16px; box-shadow: 0 0 60px 0 rgba(51, 51, 51, 0.2); font-size: 30px; min-width: 64px; overflow-y: hidden; } .adm-popover-inner-content { padding: var(--content-padding); } .adm-popover-arrow { position: absolute; display: block; height: var(--arrow-size); width: var(--arrow-size); overflow: visible; background: transparent; } .adm-popover-arrow-icon { display: block; height: var(--arrow-size); width: 30px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(var(--arrow-icon-rotate)); } .adm-popover .adm-popover-arrow { color: var(--background); }