basic-tool.css 5.3 KB

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