message-part.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. [data-component="assistant-message"] {
  2. width: 100%;
  3. display: flex;
  4. flex-direction: column;
  5. align-items: flex-start;
  6. gap: 12px;
  7. }
  8. [data-component="user-message"] {
  9. font-family: var(--font-family-sans);
  10. font-size: var(--font-size-small);
  11. font-style: normal;
  12. font-weight: var(--font-weight-regular);
  13. line-height: var(--line-height-large);
  14. letter-spacing: var(--letter-spacing-normal);
  15. color: var(--text-base);
  16. display: -webkit-box;
  17. line-clamp: 3;
  18. -webkit-line-clamp: 3;
  19. -webkit-box-orient: vertical;
  20. overflow: hidden;
  21. }
  22. [data-component="text-part"] {
  23. [data-component="markdown"] {
  24. margin-top: 32px;
  25. }
  26. }
  27. [data-component="tool-error"] {
  28. display: flex;
  29. align-items: start;
  30. gap: 8px;
  31. [data-slot="tool-error-icon"] {
  32. color: var(--icon-critical-base);
  33. margin-top: 4px;
  34. }
  35. [data-slot="tool-error-content"] {
  36. display: flex;
  37. align-items: start;
  38. gap: 8px;
  39. }
  40. [data-slot="tool-error-title"] {
  41. font-family: var(--font-family-sans);
  42. font-size: var(--font-size-small);
  43. font-style: normal;
  44. font-weight: var(--font-weight-medium);
  45. line-height: var(--line-height-large);
  46. letter-spacing: var(--letter-spacing-normal);
  47. color: var(--text-on-critical-base);
  48. white-space: nowrap;
  49. }
  50. [data-slot="tool-error-message"] {
  51. color: var(--text-on-critical-weak);
  52. }
  53. }
  54. [data-component="tool-output"] {
  55. white-space: pre;
  56. }
  57. [data-component="edit-trigger"],
  58. [data-component="write-trigger"] {
  59. display: flex;
  60. align-items: center;
  61. justify-content: space-between;
  62. width: 100%;
  63. [data-slot="title-area"] {
  64. display: flex;
  65. align-items: center;
  66. gap: 8px;
  67. }
  68. [data-slot="title"] {
  69. font-family: var(--font-family-sans);
  70. font-size: var(--font-size-small);
  71. font-style: normal;
  72. font-weight: var(--font-weight-medium);
  73. line-height: var(--line-height-large);
  74. letter-spacing: var(--letter-spacing-normal);
  75. color: var(--text-base);
  76. text-transform: capitalize;
  77. }
  78. [data-slot="path"] {
  79. display: flex;
  80. }
  81. [data-slot="directory"] {
  82. color: var(--text-weak);
  83. }
  84. [data-slot="filename"] {
  85. color: var(--text-strong);
  86. }
  87. [data-slot="actions"] {
  88. display: flex;
  89. gap: 16px;
  90. align-items: center;
  91. justify-content: flex-end;
  92. }
  93. }
  94. [data-component="edit-content"] {
  95. border-top: 1px solid var(--border-weaker-base);
  96. }
  97. [data-component="tool-action"] {
  98. width: 24px;
  99. height: 24px;
  100. display: flex;
  101. align-items: center;
  102. justify-content: center;
  103. }
  104. [data-component="todos"] {
  105. padding: 10px 12px 24px 48px;
  106. display: flex;
  107. flex-direction: column;
  108. gap: 8px;
  109. [data-slot="todo-content"] {
  110. &[data-completed="completed"] {
  111. text-decoration: line-through;
  112. color: var(--text-weaker);
  113. }
  114. }
  115. }