share.module.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. .root {
  2. padding-top: 0.5rem;
  3. display: flex;
  4. flex-direction: column;
  5. gap: 2.5rem;
  6. line-height: 1;
  7. }
  8. [data-element-button-text] {
  9. cursor: pointer;
  10. appearance: none;
  11. background-color: transparent;
  12. border: none;
  13. padding: 0;
  14. color: var(--sl-color-text-secondary);
  15. &:hover {
  16. color: var(--sl-color-text);
  17. }
  18. }
  19. [data-element-button-text] {
  20. cursor: pointer;
  21. appearance: none;
  22. background-color: transparent;
  23. border: none;
  24. padding: 0;
  25. color: var(--sl-color-text-secondary);
  26. &:hover {
  27. color: var(--sl-color-text);
  28. }
  29. &[data-element-button-more] {
  30. display: flex;
  31. align-items: center;
  32. gap: 0.125rem;
  33. span[data-button-icon] {
  34. line-height: 1;
  35. opacity: 0.85;
  36. svg {
  37. display: block;
  38. }
  39. }
  40. }
  41. }
  42. [data-element-label] {
  43. text-transform: uppercase;
  44. letter-spacing: 0.05em;
  45. color: var(--sl-color-text-dimmed);
  46. }
  47. .header {
  48. display: flex;
  49. flex-direction: column;
  50. gap: 0.75rem;
  51. [data-section="title"] {
  52. display: flex;
  53. align-items: center;
  54. justify-content: space-between;
  55. }
  56. [data-section="row"] {
  57. display: flex;
  58. flex-direction: column;
  59. gap: 0.375rem;
  60. }
  61. h1 {
  62. font-size: 1.75rem;
  63. font-weight: 500;
  64. line-height: 1.125;
  65. letter-spacing: -0.05em;
  66. }
  67. p {
  68. flex: 0 0 auto;
  69. display: flex;
  70. gap: 0.375rem;
  71. font-size: 0.75rem;
  72. span:first-child {
  73. color: var(--sl-color-divider);
  74. &[data-status="connected"] { color: var(--sl-color-green); }
  75. &[data-status="connecting"] { color: var(--sl-color-orange); }
  76. &[data-status="disconnected"] { color: var(--sl-color-divider); }
  77. &[data-status="reconnecting"] { color: var(--sl-color-orange); }
  78. &[data-status="error"] { color: var(--sl-color-red); }
  79. }
  80. }
  81. [data-section="stats"] {
  82. list-style-type: none;
  83. padding: 0;
  84. margin: 0;
  85. display: flex;
  86. gap: 1rem;
  87. li {
  88. display: flex;
  89. align-items: center;
  90. gap: 0.5rem;
  91. font-size: 0.875rem;
  92. span[data-placeholder] {
  93. color: var(--sl-color-text-dimmed);
  94. }
  95. }
  96. }
  97. [data-section="stats"][data-section-models] {
  98. li {
  99. gap: 0.3125rem;
  100. [data-stat-model-icon] {
  101. flex: 0 0 auto;
  102. color: var(--sl-color-text-dimmed);
  103. opacity: 0.85;
  104. svg {
  105. display: block;
  106. }
  107. }
  108. span[data-stat-model] {
  109. color: var(sl-color-text);
  110. }
  111. }
  112. }
  113. [data-section="date"] {
  114. span {
  115. font-size: 0.875rem;
  116. color: var(--sl-color-text);
  117. &[data-placeholder] {
  118. color: var(--sl-color-text-dimmed);
  119. }
  120. }
  121. }
  122. }
  123. .parts {
  124. display: flex;
  125. flex-direction: column;
  126. gap: 0.625rem;
  127. [data-section="part"] {
  128. display: flex;
  129. gap: 0.625rem;
  130. }
  131. [data-section="decoration"] {
  132. flex: 0 0 auto;
  133. display: flex;
  134. flex-direction: column;
  135. gap: 0.625rem;
  136. align-items: center;
  137. justify-content: flex-start;
  138. div:first-child {
  139. flex: 0 0 auto;
  140. width: 18px;
  141. svg {
  142. color: var(--sl-color-text-secondary);
  143. display: block;
  144. }
  145. }
  146. div:last-child {
  147. width: 3px;
  148. height: 100%;
  149. border-radius: 1px;
  150. background-color: var(--sl-color-hairline);
  151. }
  152. }
  153. [data-section="content"] {
  154. padding: 0 0 0.375rem;
  155. display: flex;
  156. flex-direction: column;
  157. gap: 1rem;
  158. [data-part-tool-body] {
  159. display: flex;
  160. flex-direction: column;
  161. gap: 0.375rem;
  162. }
  163. span[data-part-title] {
  164. line-height: 18px;
  165. font-size: 0.75rem;
  166. &[data-size="md"] {
  167. font-size: 0.875rem;
  168. }
  169. }
  170. span[data-part-footer] {
  171. align-self: flex-start;
  172. font-size: 0.75rem;
  173. color: var(--sl-color-text-dimmed);
  174. }
  175. span[data-part-model] {
  176. line-height: 1.5;
  177. }
  178. [data-part-tool-args] {
  179. display: inline-grid;
  180. align-items: center;
  181. grid-template-columns: max-content max-content minmax(0, 1fr);
  182. max-width: 100%;
  183. gap: 0.25rem 0.375rem;
  184. & > div:nth-child(3n+1) {
  185. width: 8px;
  186. height: 2px;
  187. border-radius: 1px;
  188. background: var(--sl-color-divider);
  189. }
  190. & > div:nth-child(3n+2),
  191. & > div:nth-child(3n+3) {
  192. white-space: nowrap;
  193. overflow: hidden;
  194. text-overflow: ellipsis;
  195. font-size: 0.75rem;
  196. line-height: 1.5;
  197. }
  198. & > div:nth-child(3n+3) {
  199. padding-left: 0.125rem;
  200. color: var(--sl-color-text-dimmed);
  201. }
  202. }
  203. [data-part-tool-result] {
  204. display: flex;
  205. flex-direction: column;
  206. align-items: flex-start;
  207. gap: 0.5rem;
  208. button {
  209. font-size: 0.75rem;
  210. }
  211. }
  212. }
  213. }
  214. [data-element-message-text] {
  215. background-color: var(--sl-color-bg-surface);
  216. padding: 0.5rem calc(0.5rem + 3px);
  217. border-radius: 0.25rem;
  218. display: flex;
  219. flex-direction: column;
  220. align-items: flex-start;
  221. gap: 1rem;
  222. pre {
  223. line-height: 1.5;
  224. font-size: 0.875rem;
  225. white-space: pre-wrap;
  226. overflow-wrap: anywhere;
  227. color: var(--sl-color-text);
  228. }
  229. &[data-size="sm"] {
  230. pre {
  231. font-size: 0.75rem;
  232. }
  233. }
  234. &[data-color="dimmed"] {
  235. pre {
  236. color: var(--sl-color-text-dimmed);
  237. }
  238. }
  239. button {
  240. flex: 0 0 auto;
  241. padding: 2px 0;
  242. font-size: 0.75rem;
  243. }
  244. &[data-highlight="true"] {
  245. background-color: var(--sl-color-blue-high);
  246. pre {
  247. color: var(--sl-color-text-invert);
  248. }
  249. button {
  250. opacity: 0.85;
  251. color: var(--sl-color-text-invert);
  252. &:hover {
  253. opacity: 1;
  254. }
  255. }
  256. }
  257. &[data-expanded="true"] {
  258. pre {
  259. display: block;
  260. }
  261. }
  262. &[data-expanded="false"] {
  263. pre {
  264. display: -webkit-box;
  265. -webkit-box-orient: vertical;
  266. -webkit-line-clamp: 3;
  267. overflow: hidden;
  268. }
  269. }
  270. }
  271. .code-block {
  272. pre {
  273. line-height: 1.4;
  274. font-size: 0.75rem;
  275. }
  276. }