@reown/appkit-ui
Version:
The full stack toolkit to build onchain app UX.
85 lines (75 loc) • 2.2 kB
JavaScript
import { css } from '../../utils/ThemeHelperUtil.js';
export default css `
:host > wui-flex {
display: flex;
justify-content: center;
align-items: center;
position: relative;
width: 40px;
height: 40px;
box-shadow: inset 0 0 0 1px ${({ tokens }) => tokens.core.glass010};
background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
}
:host([data-no-images='true']) > wui-flex {
background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
border-radius: ${({ borderRadius }) => borderRadius[3]} !important;
}
:host > wui-flex wui-image {
display: block;
}
:host > wui-flex,
:host > wui-flex wui-image,
.swap-images-container,
.swap-images-container.nft,
wui-image.nft {
border-top-left-radius: var(--local-left-border-radius);
border-top-right-radius: var(--local-right-border-radius);
border-bottom-left-radius: var(--local-left-border-radius);
border-bottom-right-radius: var(--local-right-border-radius);
}
.swap-images-container {
position: relative;
width: 40px;
height: 40px;
overflow: hidden;
}
.swap-images-container wui-image:first-child {
position: absolute;
width: 40px;
height: 40px;
top: 0;
left: 0%;
clip-path: inset(0px calc(50% + 2px) 0px 0%);
}
.swap-images-container wui-image:last-child {
clip-path: inset(0px 0px 0px calc(50% + 2px));
}
.swap-fallback-container {
position: absolute;
inset: 0;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}
.swap-fallback-container.first {
clip-path: inset(0px calc(50% + 2px) 0px 0%);
}
.swap-fallback-container.last {
clip-path: inset(0px 0px 0px calc(50% + 2px));
}
wui-flex.status-box {
position: absolute;
right: 0;
bottom: 0;
transform: translate(20%, 20%);
border-radius: ${({ borderRadius }) => borderRadius[4]};
background-color: ${({ tokens }) => tokens.theme.backgroundPrimary};
box-shadow: 0 0 0 2px ${({ tokens }) => tokens.theme.backgroundPrimary};
overflow: hidden;
width: 16px;
height: 16px;
}
`;
//# sourceMappingURL=styles.js.map