diff options
| author | Adam <[email protected]> | 2025-12-27 19:43:52 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-27 19:43:52 -0600 |
| commit | 953e4e9446bee016ddbc531f4738cee079a3f34f (patch) | |
| tree | ffad690ecb876282259d5333ccfcdfa7855ddbab /packages/ui/src/components/tabs.css | |
| parent | 7ea0d37ee3b01be8788a95db5b6f08690d01465c (diff) | |
| download | opencode-953e4e9446bee016ddbc531f4738cee079a3f34f.tar.gz opencode-953e4e9446bee016ddbc531f4738cee079a3f34f.zip | |
chore(desktop): vertical tabs
Diffstat (limited to 'packages/ui/src/components/tabs.css')
| -rw-r--r-- | packages/ui/src/components/tabs.css | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/packages/ui/src/components/tabs.css b/packages/ui/src/components/tabs.css index d60edc5c5..3ec7ece90 100644 --- a/packages/ui/src/components/tabs.css +++ b/packages/ui/src/components/tabs.css @@ -205,4 +205,70 @@ /* [data-slot="tabs-content"] { */ /* } */ } + + &[data-orientation="vertical"] { + flex-direction: row; + + [data-slot="tabs-list"] { + flex-direction: column; + width: auto; + height: 100%; + overflow-x: hidden; + overflow-y: auto; + + &::after { + width: 100%; + height: auto; + flex-grow: 1; + border-bottom: none; + border-right: 1px solid var(--border-weak-base); + } + } + + [data-slot="tabs-trigger-wrapper"] { + width: 100%; + height: auto; + border-bottom: none; + border-right: 1px solid var(--border-weak-base); + + &:has([data-selected]) { + border-right-color: transparent; + } + } + + [data-slot="tabs-content"] { + overflow-x: auto; + overflow-y: auto; + } + + &[data-variant="alt"] { + [data-slot="tabs-list"] { + padding-left: 0; + padding-right: 0; + padding-top: 24px; + padding-bottom: 24px; + border-bottom: none; + border-right: 1px solid var(--border-weak-base); + + &::after { + border: none; + } + } + + [data-slot="tabs-trigger-wrapper"] { + border-bottom: none; + border-right-width: 2px; + border-right-style: solid; + border-right-color: transparent; + + [data-slot="tabs-trigger"] { + border-bottom: none; + } + + &:has([data-selected]) { + border-right-color: var(--icon-strong-base); + } + } + } + } } |
