MessageContent.styled.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 MetadataWrapper = styled.div`
  36. background-color: ${({ theme }) => theme.topicMetaData.backgroundColor};
  37. padding: 24px;
  38. border-radius: 0 8px 8px 0;
  39. flex-grow: 1;
  40. display: flex;
  41. flex-direction: column;
  42. gap: 16px;
  43. min-width: 400px;
  44. `;
  45. export const Metadata = styled.span`
  46. display: flex;
  47. gap: 35px;
  48. `;
  49. export const MetadataLabel = styled.p`
  50. color: ${({ theme }) => theme.topicMetaData.color.label};
  51. font-size: 14px;
  52. width: 80px;
  53. `;
  54. export const MetadataValue = styled.p`
  55. color: ${({ theme }) => theme.topicMetaData.color.value};
  56. font-size: 14px;
  57. `;
  58. export const MetadataMeta = styled.p`
  59. color: ${({ theme }) => theme.topicMetaData.color.meta};
  60. font-size: 12px;
  61. `;
  62. export const Tab = styled.button<{ $active?: boolean }>(
  63. ({ theme, $active }) => css`
  64. background-color: ${theme.secondaryTab.backgroundColor[
  65. $active ? 'active' : 'normal'
  66. ]};
  67. color: ${theme.secondaryTab.color[$active ? 'active' : 'normal']};
  68. padding: 6px 16px;
  69. height: 32px;
  70. border: 1px solid ${theme.layout.stuffBorderColor};
  71. cursor: pointer;
  72. &:hover {
  73. background-color: ${theme.secondaryTab.backgroundColor.hover};
  74. color: ${theme.secondaryTab.color.hover};
  75. }
  76. &:first-child {
  77. border-radius: 4px 0 0 4px;
  78. }
  79. &:last-child {
  80. border-radius: 0 4px 4px 0;
  81. }
  82. &:not(:last-child) {
  83. border-right: 0;
  84. }
  85. `
  86. );
  87. export const Tabs = styled.nav``;