MessageContent.styled.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. import styled, { css } from 'styled-components';
  2. import * as SEditorViewer from 'components/common/EditorViewer/EditorViewer.styled';
  3. export const Wrapper = styled.tr`
  4. background-color: ${({ theme }) => theme.topicMetaData.backgroundColor};
  5. & > td {
  6. padding: 16px;
  7. &:first-child {
  8. padding-right: 1px;
  9. }
  10. &:last-child {
  11. padding-left: 1px;
  12. }
  13. }
  14. `;
  15. export const Section = styled.div`
  16. padding: 0 16px;
  17. display: flex;
  18. gap: 1px;
  19. align-items: stretch;
  20. `;
  21. export const ContentBox = styled.div`
  22. background-color: ${({ theme }) => theme.topicMetaData.backgroundColor};
  23. padding: 24px;
  24. border-radius: 8px 0 0 8px;
  25. flex-grow: 3;
  26. display: flex;
  27. flex-direction: column;
  28. & nav {
  29. padding-bottom: 16px;
  30. }
  31. ${SEditorViewer.Wrapper} {
  32. flex-grow: 1;
  33. }
  34. `;
  35. export const DataCell = styled.td`
  36. overflow: hidden;
  37. white-space: nowrap;
  38. text-overflow: ellipsis;
  39. max-width: 350px;
  40. min-width: 350px;
  41. `;
  42. export const ClickableRow = styled.tr`
  43. cursor: pointer;
  44. `;
  45. export const MetadataWrapper = styled.div`
  46. background-color: ${({ theme }) => theme.topicMetaData.backgroundColor};
  47. padding: 24px;
  48. border-radius: 0 8px 8px 0;
  49. flex-grow: 1;
  50. display: flex;
  51. flex-direction: column;
  52. gap: 16px;
  53. min-width: 400px;
  54. `;
  55. export const Metadata = styled.span`
  56. display: flex;
  57. gap: 35px;
  58. `;
  59. export const MetadataLabel = styled.p`
  60. color: ${({ theme }) => theme.topicMetaData.color.label};
  61. font-size: 14px;
  62. width: 80px;
  63. `;
  64. export const MetadataValue = styled.div`
  65. color: ${({ theme }) => theme.topicMetaData.color.value};
  66. font-size: 14px;
  67. `;
  68. export const MetadataMeta = styled.p`
  69. color: ${({ theme }) => theme.topicMetaData.color.meta};
  70. font-size: 12px;
  71. `;
  72. export const Tab = styled.button<{ $active?: boolean }>(
  73. ({ theme, $active }) => css`
  74. background-color: ${theme.secondaryTab.backgroundColor[
  75. $active ? 'active' : 'normal'
  76. ]};
  77. color: ${theme.secondaryTab.color[$active ? 'active' : 'normal']};
  78. padding: 6px 16px;
  79. height: 32px;
  80. border: 1px solid ${theme.layout.stuffBorderColor};
  81. cursor: pointer;
  82. &:hover {
  83. background-color: ${theme.secondaryTab.backgroundColor.hover};
  84. color: ${theme.secondaryTab.color.hover};
  85. }
  86. &:first-child {
  87. border-radius: 4px 0 0 4px;
  88. }
  89. &:last-child {
  90. border-radius: 0 4px 4px 0;
  91. }
  92. &:not(:last-child) {
  93. border-right: 0;
  94. }
  95. `
  96. );
  97. export const Tabs = styled.nav``;