@coinmeca/ui
Version:
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
40 lines (36 loc) • 894 B
JSX
import { styled } from 'styled-components';
export const Pad = styled.div `
display: flex;
flex-direction: column;
height: -webkit-fill-available;
flex: 3;
`;
const Style = styled.div `
display: flex;
align-items: center;
justify-content: center;
padding: ${({ $padding }) => $padding}em;
width: -webkit-fill-available;
height: -webkit-fill-available;
& > * {
display: flex;
flex-direction: row;
width: -webkit-fill-available;
height: -webkit-fill-available;
${({ $width }) => $width && `max-width: ${$width}em;`}
& > * {
flex: 1;
${({ $reverse }) => $reverse && 'flex-direction: column-reverse;'}
font-size: ${({ $scale }) => $scale}em;
&${Pad} {
flex: 3;
}
& > *:not(${Pad}) {
flex: 1;
height: -webkit-fill-available;
}
}
}
`;
export default Style;
//# sourceMappingURL=Numberpad.styled.jsx.map