UNPKG

@reown/appkit-ui

Version:

The full stack toolkit to build onchain app UX.

103 lines (87 loc) 2.45 kB
import { css } from '../../utils/ThemeHelperUtil.js'; export default css ` wui-flex { position: relative; display: inline-flex; justify-content: center; align-items: center; } wui-image { border-radius: ${({ borderRadius }) => borderRadius[128]}; } .fallback-icon { color: ${({ tokens }) => tokens.theme.iconInverse}; border-radius: ${({ borderRadius }) => borderRadius[3]}; background-color: ${({ tokens }) => tokens.theme.foregroundPrimary}; } .direction-icon, .status-image { position: absolute; right: 0; bottom: 0; border-radius: ${({ borderRadius }) => borderRadius[128]}; border: 2px solid ${({ tokens }) => tokens.theme.backgroundPrimary}; } .direction-icon { padding: ${({ spacing }) => spacing['01']}; color: ${({ tokens }) => tokens.core.iconSuccess}; background-color: color-mix( in srgb, ${({ tokens }) => tokens.core.textSuccess} 30%, ${({ tokens }) => tokens.theme.backgroundPrimary} 70% ); } /* -- Sizes --------------------------------------------------- */ :host([data-size='sm']) > wui-image:not(.status-image), :host([data-size='sm']) > wui-flex { width: 24px; height: 24px; } :host([data-size='lg']) > wui-image:not(.status-image), :host([data-size='lg']) > wui-flex { width: 40px; height: 40px; } :host([data-size='sm']) .fallback-icon { height: 16px; width: 16px; padding: ${({ spacing }) => spacing[1]}; } :host([data-size='lg']) .fallback-icon { height: 32px; width: 32px; padding: ${({ spacing }) => spacing[1]}; } :host([data-size='sm']) .direction-icon, :host([data-size='sm']) .status-image { transform: translate(40%, 30%); } :host([data-size='lg']) .direction-icon, :host([data-size='lg']) .status-image { transform: translate(40%, 10%); } :host([data-size='sm']) .status-image { height: 14px; width: 14px; } :host([data-size='lg']) .status-image { height: 20px; width: 20px; } /* -- Crop effects --------------------------------------------------- */ .swap-crop-left-image, .swap-crop-right-image { position: absolute; top: 0; bottom: 0; } .swap-crop-left-image { left: 0; clip-path: inset(0px calc(50% + 1.5px) 0px 0%); } .swap-crop-right-image { right: 0; clip-path: inset(0px 0px 0px calc(50% + 1.5px)); } `; //# sourceMappingURL=styles.js.map