basic-tool.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. [data-component="tool-trigger"] {
  2. content-visibility: auto;
  3. width: 100%;
  4. display: flex;
  5. align-items: center;
  6. align-self: stretch;
  7. gap: 0px;
  8. justify-content: flex-start;
  9. &[data-clickable="true"] {
  10. cursor: pointer;
  11. }
  12. &[data-hide-details="true"] {
  13. [data-slot="basic-tool-tool-trigger-content"] {
  14. flex: 1 1 auto;
  15. max-width: 100%;
  16. }
  17. [data-slot="basic-tool-tool-info"] {
  18. flex: 1 1 auto;
  19. }
  20. }
  21. [data-slot="basic-tool-tool-trigger-content"] {
  22. flex: 0 1 auto;
  23. width: auto;
  24. max-width: calc(100% - 24px);
  25. min-width: 0;
  26. display: flex;
  27. align-items: center;
  28. align-self: stretch;
  29. gap: 8px;
  30. }
  31. [data-slot="basic-tool-tool-indicator"] {
  32. width: 16px;
  33. height: 16px;
  34. display: inline-flex;
  35. align-items: center;
  36. justify-content: center;
  37. flex-shrink: 0;
  38. [data-component="spinner"] {
  39. width: 16px;
  40. height: 16px;
  41. }
  42. }
  43. [data-slot="basic-tool-tool-spinner"] {
  44. width: 16px;
  45. height: 16px;
  46. display: inline-flex;
  47. align-items: center;
  48. justify-content: center;
  49. flex-shrink: 0;
  50. color: var(--text-weak);
  51. [data-component="spinner"] {
  52. width: 16px;
  53. height: 16px;
  54. }
  55. }
  56. [data-slot="icon-svg"] {
  57. flex-shrink: 0;
  58. }
  59. [data-slot="basic-tool-tool-info"] {
  60. flex: 0 1 auto;
  61. min-width: 0;
  62. max-width: 100%;
  63. font-size: 14px;
  64. }
  65. [data-slot="basic-tool-tool-info-structured"] {
  66. flex: 0 1 auto;
  67. width: auto;
  68. max-width: 100%;
  69. min-width: 0;
  70. display: inline-flex;
  71. align-items: center;
  72. gap: 8px;
  73. justify-content: flex-start;
  74. }
  75. [data-slot="basic-tool-tool-info-main"] {
  76. display: flex;
  77. align-items: baseline;
  78. gap: 8px;
  79. min-width: 0;
  80. overflow: hidden;
  81. }
  82. [data-slot="basic-tool-tool-title"] {
  83. flex-shrink: 0;
  84. font-family: var(--font-family-sans);
  85. font-size: 14px;
  86. font-style: normal;
  87. font-weight: var(--font-weight-medium);
  88. line-height: var(--line-height-large);
  89. letter-spacing: var(--letter-spacing-normal);
  90. color: var(--text-strong);
  91. &.capitalize {
  92. text-transform: capitalize;
  93. }
  94. &.agent-title {
  95. color: var(--text-strong);
  96. font-weight: var(--font-weight-medium);
  97. }
  98. }
  99. [data-slot="basic-tool-tool-subtitle"] {
  100. flex-shrink: 1;
  101. min-width: 0;
  102. overflow: hidden;
  103. text-overflow: ellipsis;
  104. white-space: nowrap;
  105. font-family: var(--font-family-sans);
  106. font-variant-numeric: tabular-nums;
  107. font-size: 14px;
  108. font-style: normal;
  109. font-weight: var(--font-weight-regular);
  110. line-height: var(--line-height-large);
  111. letter-spacing: var(--letter-spacing-normal);
  112. color: var(--text-base);
  113. &.clickable {
  114. cursor: pointer;
  115. text-decoration: underline;
  116. transition: color 0.15s ease;
  117. &:hover {
  118. color: var(--text-base);
  119. }
  120. }
  121. &.subagent-link {
  122. color: var(--text-interactive-base);
  123. text-decoration: none;
  124. text-underline-offset: 2px;
  125. font-weight: var(--font-weight-regular);
  126. &:hover {
  127. color: var(--text-interactive-base);
  128. text-decoration: underline;
  129. }
  130. &:active {
  131. color: var(--text-interactive-base);
  132. }
  133. &:visited {
  134. color: var(--text-interactive-base);
  135. }
  136. }
  137. }
  138. [data-slot="basic-tool-tool-arg"] {
  139. flex-shrink: 1;
  140. min-width: 0;
  141. overflow: hidden;
  142. text-overflow: ellipsis;
  143. white-space: nowrap;
  144. font-family: var(--font-family-sans);
  145. font-variant-numeric: tabular-nums;
  146. font-size: 14px;
  147. font-style: normal;
  148. font-weight: var(--font-weight-regular);
  149. line-height: var(--line-height-large);
  150. letter-spacing: var(--letter-spacing-normal);
  151. color: var(--text-base);
  152. }
  153. [data-slot="basic-tool-tool-action"] {
  154. display: inline-flex;
  155. align-items: center;
  156. flex-shrink: 0;
  157. }
  158. }
  159. [data-component="task-tool-card"] {
  160. width: 100%;
  161. min-width: 0;
  162. display: flex;
  163. align-items: center;
  164. gap: 8px;
  165. padding: 8px 12px;
  166. border-radius: 6px;
  167. border: 1px solid var(--border-weak-base, rgba(255, 255, 255, 0.08));
  168. background: color-mix(in srgb, var(--background-base) 92%, transparent);
  169. transition:
  170. border-color 0.15s ease,
  171. background-color 0.15s ease,
  172. color 0.15s ease;
  173. [data-slot="basic-tool-tool-info-structured"] {
  174. flex: 1 1 auto;
  175. min-width: 0;
  176. }
  177. [data-slot="basic-tool-tool-info-main"] {
  178. flex: 1 1 auto;
  179. min-width: 0;
  180. align-items: center;
  181. }
  182. [data-component="task-tool-spinner"] {
  183. display: inline-flex;
  184. align-items: center;
  185. justify-content: center;
  186. flex-shrink: 0;
  187. [data-component="spinner"] {
  188. width: 16px;
  189. height: 16px;
  190. }
  191. }
  192. [data-component="task-tool-action"] {
  193. display: inline-flex;
  194. align-items: center;
  195. justify-content: center;
  196. flex-shrink: 0;
  197. color: var(--icon-weak);
  198. margin-left: auto;
  199. opacity: 0;
  200. transition:
  201. opacity 0.15s ease,
  202. color 0.15s ease;
  203. }
  204. [data-component="task-tool-title"] {
  205. flex-shrink: 0;
  206. font-family: var(--font-family-sans);
  207. font-size: 14px;
  208. font-style: normal;
  209. font-weight: var(--font-weight-medium);
  210. line-height: var(--line-height-large);
  211. letter-spacing: var(--letter-spacing-normal);
  212. text-transform: capitalize;
  213. }
  214. [data-slot="basic-tool-tool-subtitle"] {
  215. color: var(--text-strong);
  216. }
  217. &:hover,
  218. &:focus-visible {
  219. border-color: var(--border-weak-base, rgba(255, 255, 255, 0.08));
  220. background: color-mix(in srgb, var(--background-stronger) 88%, transparent);
  221. [data-component="task-tool-action"] {
  222. opacity: 1;
  223. }
  224. }
  225. }