@reown/appkit-ui
Version:
The full stack toolkit to build onchain app UX.
58 lines (51 loc) • 1.29 kB
JavaScript
import { css } from '../../utils/ThemeHelperUtil.js';
export default css `
:host {
display: block;
width: var(--local-width);
height: var(--local-height);
}
img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
border-radius: inherit;
user-select: none;
user-drag: none;
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
}
:host([data-boxed='true']) {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
border-radius: ${({ borderRadius }) => borderRadius[2]};
}
:host([data-boxed='true']) img {
width: 20px;
height: 20px;
border-radius: ${({ borderRadius }) => borderRadius[16]};
}
:host([data-full='true']) img {
width: 100%;
height: 100%;
}
:host([data-boxed='true']) wui-icon {
width: 20px;
height: 20px;
}
:host([data-icon='error']) {
background-color: ${({ tokens }) => tokens.core.backgroundError};
}
:host([data-rounded='true']) {
border-radius: ${({ borderRadius }) => borderRadius[16]};
}
`;
//# sourceMappingURL=styles.js.map