Messages.styled.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import styled, { css } from 'styled-components';
  2. export const Wrapper = styled.div(
  3. ({ theme }) => css`
  4. display: grid;
  5. grid-template-columns: 300px 1fr;
  6. justify-items: center;
  7. min-height: calc(
  8. 100vh - ${theme.layout.navBarHeight} - ${theme.pageHeading.height} -
  9. ${theme.primaryTab.height}
  10. );
  11. `
  12. );
  13. export const Sidebar = styled.div(
  14. ({ theme }) => css`
  15. width: 300px;
  16. position: sticky;
  17. top: ${theme.layout.navBarHeight};
  18. align-self: start;
  19. `
  20. );
  21. export const SidebarContent = styled.div`
  22. padding: 8px 16px 16px;
  23. `;
  24. export const TableWrapper = styled.div(
  25. ({ theme }) => css`
  26. width: 100%;
  27. border-left: 1px solid ${theme.layout.stuffBorderColor};
  28. `
  29. );
  30. export const Pagination = styled.div`
  31. display: grid;
  32. grid-template-columns: 1fr 1fr;
  33. gap: 8px;
  34. position: fixed;
  35. bottom: 0;
  36. padding: 16px;
  37. width: 300px;
  38. `;
  39. export const StatusBarWrapper = styled.div(
  40. ({ theme }) => css`
  41. padding: 4px 8px;
  42. position: sticky;
  43. top: ${theme.layout.navBarHeight};
  44. background-color: ${theme.layout.backgroundColor};
  45. border-bottom: 1px solid ${theme.layout.stuffBorderColor};
  46. white-space: nowrap;
  47. display: flex;
  48. justify-content: space-between;
  49. `
  50. );
  51. export const StatusTags = styled.div`
  52. display: flex;
  53. gap: 4px;
  54. `;