1234567891011121314151617181920212223242526272829303132 |
- import styled from '@emotion/styled';
- import space from 'sentry/styles/space';
- /**
- * Common performance layouts
- */
- export const PerformanceLayoutBodyRow = styled('div')<{
- minSize: number;
- columns?: number;
- }>`
- display: grid;
- grid-template-columns: 1fr;
- grid-column-gap: ${space(2)};
- grid-row-gap: ${space(2)};
- @media (min-width: ${p => p.theme.breakpoints.small}) {
- grid-template-columns: repeat(2, 1fr);
- }
- @media (min-width: ${p => p.theme.breakpoints.large}) {
- ${p =>
- p.columns
- ? `
- grid-template-columns: repeat(${p.columns}, 1fr);
- `
- : `
- grid-template-columns: repeat(auto-fit, minmax(${p.minSize}px, 1fr));
- `}
- }
- `;
|