summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/basic-tool.css
blob: 1dbfce26ec53163815f070408336ebd28baeb345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[data-component="tool-trigger"] {
  content-visibility: auto;
  width: 100%;
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 0px;
  justify-content: flex-start;

  [data-slot="basic-tool-tool-trigger-content"] {
    width: auto;
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 8px;
  }

  [data-slot="basic-tool-tool-indicator"] {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    [data-component="spinner"] {
      width: 16px;
      height: 16px;
    }
  }

  [data-slot="basic-tool-tool-spinner"] {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-weak);

    [data-component="spinner"] {
      width: 16px;
      height: 16px;
    }
  }

  [data-slot="icon-svg"] {
    flex-shrink: 0;
  }

  [data-slot="basic-tool-tool-info"] {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 14px;
  }

  [data-slot="basic-tool-tool-info-structured"] {
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
  }

  [data-slot="basic-tool-tool-info-main"] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
  }

  [data-slot="basic-tool-tool-title"] {
    flex-shrink: 0;
    font-family: var(--font-family-sans);
    font-size: 14px;
    font-style: normal;
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-large);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--text-strong);

    &.capitalize {
      text-transform: capitalize;
    }

    &.agent-title {
      color: var(--text-strong);
      font-weight: var(--font-weight-medium);
    }
  }

  [data-slot="basic-tool-tool-subtitle"] {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-family-sans);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-style: normal;
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-large);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--text-base);

    &.clickable {
      cursor: pointer;
      text-decoration: underline;
      transition: color 0.15s ease;

      &:hover {
        color: var(--text-base);
      }
    }

    &.subagent-link {
      color: var(--text-interactive-base);
      text-decoration: none;
      text-underline-offset: 2px;
      font-weight: var(--font-weight-regular);

      &:hover {
        color: var(--text-interactive-base);
        text-decoration: underline;
      }

      &:active {
        color: var(--text-interactive-base);
      }

      &:visited {
        color: var(--text-interactive-base);
      }
    }
  }

  [data-slot="basic-tool-tool-arg"] {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-family-sans);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-style: normal;
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-large);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--text-base);
  }
}