@reown/appkit-scaffold-ui
Version:
The full stack toolkit to build onchain app UX.
90 lines (82 loc) • 2.26 kB
JavaScript
import { css } from '@reown/appkit-ui';
export default css `
:host > wui-flex {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
border-radius: ${({ borderRadius }) => borderRadius['5']};
background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
padding: ${({ spacing }) => spacing['5']};
padding-right: ${({ spacing }) => spacing['3']};
width: 100%;
height: 100px;
box-sizing: border-box;
box-shadow: inset 0px 0px 0px 1px ${({ tokens }) => tokens.theme.foregroundPrimary};
position: relative;
transition: box-shadow ${({ easings }) => easings['ease-out-power-1']}
${({ durations }) => durations['lg']};
will-change: background-color;
}
:host wui-flex.focus {
box-shadow: inset 0px 0px 0px 1px ${({ tokens }) => tokens.core.glass010};
}
:host > wui-flex .swap-input,
:host > wui-flex .swap-token-button {
z-index: 10;
}
:host > wui-flex .swap-input {
-webkit-mask-image: linear-gradient(
270deg,
transparent 0px,
transparent 8px,
black 24px,
black 25px,
black 32px,
black 100%
);
mask-image: linear-gradient(
270deg,
transparent 0px,
transparent 8px,
black 24px,
black 25px,
black 32px,
black 100%
);
}
:host > wui-flex .swap-input input {
background: none;
border: none;
height: 42px;
width: 100%;
font-size: 32px;
font-style: normal;
font-weight: 400;
line-height: 130%;
letter-spacing: -1.28px;
outline: none;
caret-color: ${({ tokens }) => tokens.core.textAccentPrimary};
color: ${({ tokens }) => tokens.theme.textPrimary};
padding: 0px;
}
:host > wui-flex .swap-input input:focus-visible {
outline: none;
}
:host > wui-flex .swap-input input::-webkit-outer-spin-button,
:host > wui-flex .swap-input input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.max-value-button {
background-color: transparent;
border: none;
cursor: pointer;
color: ${({ tokens }) => tokens.core.glass010};
padding-left: 0px;
}
.market-value {
min-height: 18px;
}
`;
//# sourceMappingURL=styles.js.map