diff options
| author | Jay V <[email protected]> | 2025-09-16 17:09:27 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-09-16 17:17:17 -0400 |
| commit | ae84d5a7340671a971954d80e26ab04d34e14f7e (patch) | |
| tree | 3a05ef436555978a2ea87f5b355ed28807bd2af3 /cloud/app/src/component/workspace/usage-section.module.css | |
| parent | cd537707348689c6bf758f73386e8a0e3368e31f (diff) | |
| download | opencode-ae84d5a7340671a971954d80e26ab04d34e14f7e.tar.gz opencode-ae84d5a7340671a971954d80e26ab04d34e14f7e.zip | |
ignore: zen
Diffstat (limited to 'cloud/app/src/component/workspace/usage-section.module.css')
| -rw-r--r-- | cloud/app/src/component/workspace/usage-section.module.css | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/cloud/app/src/component/workspace/usage-section.module.css b/cloud/app/src/component/workspace/usage-section.module.css new file mode 100644 index 000000000..520dc8f21 --- /dev/null +++ b/cloud/app/src/component/workspace/usage-section.module.css @@ -0,0 +1,72 @@ +.root { + [data-slot="usage-table"] { + overflow-x: auto; + } + + [data-slot="usage-table-element"] { + width: 100%; + border-collapse: collapse; + font-size: var(--font-size-sm); + + thead { + border-bottom: 1px solid var(--color-border); + } + + th { + padding: var(--space-3) var(--space-4); + text-align: left; + font-weight: normal; + color: var(--color-text-muted); + text-transform: uppercase; + } + + td { + padding: var(--space-3) var(--space-4); + border-bottom: 1px solid var(--color-border-muted); + color: var(--color-text-muted); + font-family: var(--font-mono); + + &[data-slot="usage-date"] { + color: var(--color-text); + } + + &[data-slot="usage-model"] { + font-family: var(--font-sans); + font-weight: 400; + color: var(--color-text-secondary); + max-width: 200px; + word-break: break-word; + } + + &[data-slot="usage-cost"] { + color: var(--color-text); + } + } + + tbody tr { + &:last-child td { + border-bottom: none; + } + } + + @media (max-width: 40rem) { + th, + td { + padding: var(--space-2) var(--space-3); + font-size: var(--font-size-xs); + } + + th { + &:nth-child(2) /* Model */ { + display: none; + } + } + + td { + &:nth-child(2) /* Model */ { + display: none; + } + } + } + } +} |
