|
12345678910111213141516171819202122232425262728293031323334 |
- import { css } from '@tesseract-design/css-utils';
- import {LayoutArgs, Span} from '../common';
-
- export const ContentBase = () => css.cx(
- css`
- box-sizing: border-box;
- `
- );
-
- export const ContentContainer = ({
- span,
- }: LayoutArgs) => css.cx(
- css`
- padding: 0 1rem;
- box-sizing: border-box;
- margin: 0 auto;
- width: 100%;
- `,
- css.if(span === Span.NARROW)(
- css`
- max-width: var(--base-width);
- `
- ),
- css.if(span === Span.NORMAL)(
- css`
- max-width: calc(var(--base-width) * 2);
- `
- ),
- css.if(span === Span.WIDE)(
- css`
- max-width: calc(var(--base-width) * 3);
- `
- ),
- );
|