Layout scaffolding for Web apps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
635 B

  1. import { css } from '@tesseract-design/goofy-goober';
  2. import {LayoutArgs, Span} from '../common';
  3. export const ContentBase = () => css.cx(
  4. css`
  5. box-sizing: border-box;
  6. `
  7. );
  8. export const ContentContainer = ({
  9. span,
  10. }: LayoutArgs) => css.cx(
  11. css`
  12. padding: 0 1rem;
  13. box-sizing: border-box;
  14. margin: 0 auto;
  15. width: 100%;
  16. `,
  17. css.if(span === Span.NARROW)(
  18. css`
  19. max-width: var(--base-width);
  20. `
  21. ),
  22. css.if(span === Span.NORMAL)(
  23. css`
  24. max-width: calc(var(--base-width) * 2);
  25. `
  26. ),
  27. css.if(span === Span.WIDE)(
  28. css`
  29. max-width: calc(var(--base-width) * 3);
  30. `
  31. ),
  32. );