basic-tool.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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-slot="basic-tool-tool-trigger-content"] {
  10. width: auto;
  11. display: flex;
  12. align-items: center;
  13. align-self: stretch;
  14. gap: 8px;
  15. }
  16. [data-slot="basic-tool-tool-indicator"] {
  17. width: 16px;
  18. height: 16px;
  19. display: inline-flex;
  20. align-items: center;
  21. justify-content: center;
  22. flex-shrink: 0;
  23. [data-component="spinner"] {
  24. width: 16px;
  25. height: 16px;
  26. }
  27. }
  28. [data-slot="basic-tool-tool-spinner"] {
  29. width: 16px;
  30. height: 16px;
  31. display: inline-flex;
  32. align-items: center;
  33. justify-content: center;
  34. flex-shrink: 0;
  35. color: var(--text-weak);
  36. [data-component="spinner"] {
  37. width: 16px;
  38. height: 16px;
  39. }
  40. }
  41. [data-slot="icon-svg"] {
  42. flex-shrink: 0;
  43. }
  44. [data-slot="basic-tool-tool-info"] {
  45. flex: 0 1 auto;
  46. min-width: 0;
  47. font-size: 14px;
  48. }
  49. [data-slot="basic-tool-tool-info-structured"] {
  50. width: auto;
  51. display: flex;
  52. align-items: center;
  53. gap: 8px;
  54. justify-content: flex-start;
  55. }
  56. [data-slot="basic-tool-tool-info-main"] {
  57. display: flex;
  58. align-items: baseline;
  59. gap: 8px;
  60. min-width: 0;
  61. overflow: hidden;
  62. }
  63. [data-slot="basic-tool-tool-title"] {
  64. flex-shrink: 0;
  65. font-family: var(--font-family-sans);
  66. font-size: 14px;
  67. font-style: normal;
  68. font-weight: var(--font-weight-medium);
  69. line-height: var(--line-height-large);
  70. letter-spacing: var(--letter-spacing-normal);
  71. color: var(--text-strong);
  72. &.capitalize {
  73. text-transform: capitalize;
  74. }
  75. &.agent-title {
  76. color: var(--text-strong);
  77. font-weight: var(--font-weight-medium);
  78. }
  79. }
  80. [data-slot="basic-tool-tool-subtitle"] {
  81. flex-shrink: 1;
  82. min-width: 0;
  83. overflow: hidden;
  84. text-overflow: ellipsis;
  85. white-space: nowrap;
  86. font-family: var(--font-family-sans);
  87. font-variant-numeric: tabular-nums;
  88. font-size: 14px;
  89. font-style: normal;
  90. font-weight: var(--font-weight-regular);
  91. line-height: var(--line-height-large);
  92. letter-spacing: var(--letter-spacing-normal);
  93. color: var(--text-base);
  94. &.clickable {
  95. cursor: pointer;
  96. text-decoration: underline;
  97. transition: color 0.15s ease;
  98. &:hover {
  99. color: var(--text-base);
  100. }
  101. }
  102. &.subagent-link {
  103. color: var(--text-interactive-base);
  104. text-decoration: none;
  105. text-underline-offset: 2px;
  106. font-weight: var(--font-weight-regular);
  107. &:hover {
  108. color: var(--text-interactive-base);
  109. text-decoration: underline;
  110. }
  111. &:active {
  112. color: var(--text-interactive-base);
  113. }
  114. &:visited {
  115. color: var(--text-interactive-base);
  116. }
  117. }
  118. }
  119. [data-slot="basic-tool-tool-arg"] {
  120. flex-shrink: 1;
  121. min-width: 0;
  122. overflow: hidden;
  123. text-overflow: ellipsis;
  124. white-space: nowrap;
  125. font-family: var(--font-family-sans);
  126. font-variant-numeric: tabular-nums;
  127. font-size: 14px;
  128. font-style: normal;
  129. font-weight: var(--font-weight-regular);
  130. line-height: var(--line-height-large);
  131. letter-spacing: var(--letter-spacing-normal);
  132. color: var(--text-base);
  133. }
  134. }