summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/basic-tool.css
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2025-10-30 22:53:00 +0000
committerDavid Hill <[email protected]>2025-10-30 22:53:00 +0000
commit2f9f189f390401b3314c74bd9f83e64b2420cd65 (patch)
treeb275ca785719a54115752a79d4b66984ba125670 /packages/ui/src/components/basic-tool.css
parentf3c70f4ea8818bde5b1228482f72af9b10c71796 (diff)
parenta3ba740de41eb1e4825a99dc8f519e1225357e55 (diff)
downloadopencode-2f9f189f390401b3314c74bd9f83e64b2420cd65.tar.gz
opencode-2f9f189f390401b3314c74bd9f83e64b2420cd65.zip
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'packages/ui/src/components/basic-tool.css')
-rw-r--r--packages/ui/src/components/basic-tool.css76
1 files changed, 76 insertions, 0 deletions
diff --git a/packages/ui/src/components/basic-tool.css b/packages/ui/src/components/basic-tool.css
new file mode 100644
index 000000000..f3d9f865f
--- /dev/null
+++ b/packages/ui/src/components/basic-tool.css
@@ -0,0 +1,76 @@
+[data-component="tool-trigger"] {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ align-self: stretch;
+ gap: 20px;
+ justify-content: space-between;
+
+ [data-slot="tool-trigger-content"] {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ align-self: stretch;
+ gap: 20px;
+ }
+
+ [data-slot="tool-icon"] {
+ flex-shrink: 0;
+ }
+
+ [data-slot="tool-info"] {
+ flex-grow: 1;
+ min-width: 0;
+ }
+
+ [data-slot="tool-info-structured"] {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ justify-content: space-between;
+ }
+
+ [data-slot="tool-info-main"] {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ [data-slot="tool-title"] {
+ font-family: var(--font-family-sans);
+ font-size: var(--font-size-small);
+ font-style: normal;
+ font-weight: var(--font-weight-medium);
+ line-height: var(--line-height-large);
+ letter-spacing: var(--letter-spacing-normal);
+ color: var(--text-base);
+
+ &.capitalize {
+ text-transform: capitalize;
+ }
+ }
+
+ [data-slot="tool-subtitle"] {
+ font-family: var(--font-family-sans);
+ font-size: var(--font-size-small);
+ font-style: normal;
+ font-weight: var(--font-weight-medium);
+ line-height: var(--line-height-large);
+ letter-spacing: var(--letter-spacing-normal);
+ color: var(--text-weak);
+ }
+
+ [data-slot="tool-arg"] {
+ font-family: var(--font-family-sans);
+ font-size: var(--font-size-small);
+ font-style: normal;
+ font-weight: var(--font-weight-regular);
+ line-height: var(--line-height-large);
+ letter-spacing: var(--letter-spacing-normal);
+ color: var(--text-weak);
+ }
+}