pageSections.tsx 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import styled from '@emotion/styled';
  2. import space from 'sentry/styles/space';
  3. export const SIDEBAR_MIN_WIDTH = 325;
  4. export const TOPBAR_MIN_HEIGHT = 325;
  5. const PageColumn = styled('section')`
  6. display: flex;
  7. flex-grow: 1;
  8. flex-wrap: nowrap;
  9. flex-direction: column;
  10. `;
  11. export const PageRow = styled(PageColumn)`
  12. flex-direction: row;
  13. `;
  14. export const TimelineSection = styled(PageColumn)`
  15. flex-grow: 0;
  16. `;
  17. export const ContentSection = styled(PageColumn)`
  18. flex-grow: 3; /* Higher growth than SidebarSection or TopVideoSection */
  19. height: 100%;
  20. min-height: 300px;
  21. width: 100%;
  22. `;
  23. export const VideoSection = styled(PageColumn)`
  24. height: 100%;
  25. flex-grow: 2;
  26. `;
  27. export const BreadcrumbSection = styled(PageColumn)``;
  28. export const SidebarSection = styled(PageColumn)`
  29. min-width: ${SIDEBAR_MIN_WIDTH}px;
  30. `;
  31. export const TopbarSection = styled(PageRow)`
  32. height: ${TOPBAR_MIN_HEIGHT}px;
  33. min-height: ${TOPBAR_MIN_HEIGHT}px;
  34. ${BreadcrumbSection} {
  35. max-width: ${SIDEBAR_MIN_WIDTH}px;
  36. margin-left: ${space(2)};
  37. }
  38. `;