summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/collapsible.css
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-10-27 15:35:47 -0500
committerAdam <[email protected]>2025-10-27 15:37:07 -0500
commitfc115ea367dd034c7b989819d4f547c5d7519253 (patch)
tree653401ef94212e161334108449a11f60ba54dc86 /packages/ui/src/components/collapsible.css
parentd03b79e61eef0be1cca669e5e6a13df78cc4be85 (diff)
downloadopencode-fc115ea367dd034c7b989819d4f547c5d7519253.tar.gz
opencode-fc115ea367dd034c7b989819d4f547c5d7519253.zip
wip: desktop work
Diffstat (limited to 'packages/ui/src/components/collapsible.css')
-rw-r--r--packages/ui/src/components/collapsible.css46
1 files changed, 39 insertions, 7 deletions
diff --git a/packages/ui/src/components/collapsible.css b/packages/ui/src/components/collapsible.css
index 441d0083f..34699fc20 100644
--- a/packages/ui/src/components/collapsible.css
+++ b/packages/ui/src/components/collapsible.css
@@ -1,23 +1,55 @@
[data-component="collapsible"] {
+ width: 100%;
display: flex;
flex-direction: column;
+ background-color: var(--surface-inset-base);
+ border: 1px solid var(--border-weaker-base);
+ transition: background-color 0.15s ease;
+ border-radius: 8px;
+ overflow: clip;
- [data-slot="trigger"] {
- cursor: pointer;
+ [data-slot="collapsible-trigger"] {
+ width: 100%;
+ display: flex;
+ height: 40px;
+ padding: 6px 8px 6px 12px;
+ align-items: center;
+ align-self: stretch;
+ cursor: default;
user-select: none;
+ color: var(--text-base);
+ /* text-12-medium */
+ 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); /* 166.667% */
+ letter-spacing: var(--letter-spacing-normal);
+
+ /* &:hover { */
+ /* background-color: var(--surface-base); */
+ /* } */
&:focus-visible {
- outline: 2px solid var(--border-focus);
- outline-offset: 2px;
+ outline: none;
}
-
&[data-disabled] {
cursor: not-allowed;
- opacity: 0.5;
+ }
+
+ [data-slot="collapsible-arrow"] {
+ width: 24px;
+ height: 24px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ /* [data-slot="collapsible-arrow-icon"] { */
+ /* } */
}
}
- [data-slot="content"] {
+ [data-slot="collapsible-content"] {
overflow: hidden;
/* animation: slideUp 250ms ease-out; */