summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/collapsible.css
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-10-24 08:26:17 -0500
committerAdam <[email protected]>2025-10-24 12:16:33 -0500
commitfe8f6d7a3eef34e932bd43d244460d417865de88 (patch)
tree3129fd2072fd3fd0dd842e33c59e0f1f256c1df3 /packages/ui/src/components/collapsible.css
parent59b5f5350950e9cac81676f45eaca8611514c4d1 (diff)
downloadopencode-fe8f6d7a3eef34e932bd43d244460d417865de88.tar.gz
opencode-fe8f6d7a3eef34e932bd43d244460d417865de88.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, 46 insertions, 0 deletions
diff --git a/packages/ui/src/components/collapsible.css b/packages/ui/src/components/collapsible.css
new file mode 100644
index 000000000..441d0083f
--- /dev/null
+++ b/packages/ui/src/components/collapsible.css
@@ -0,0 +1,46 @@
+[data-component="collapsible"] {
+ display: flex;
+ flex-direction: column;
+
+ [data-slot="trigger"] {
+ cursor: pointer;
+ user-select: none;
+
+ &:focus-visible {
+ outline: 2px solid var(--border-focus);
+ outline-offset: 2px;
+ }
+
+ &[data-disabled] {
+ cursor: not-allowed;
+ opacity: 0.5;
+ }
+ }
+
+ [data-slot="content"] {
+ overflow: hidden;
+ /* animation: slideUp 250ms ease-out; */
+
+ /* &[data-expanded] { */
+ /* animation: slideDown 250ms ease-out; */
+ /* } */
+ }
+}
+
+@keyframes slideDown {
+ from {
+ height: 0;
+ }
+ to {
+ height: var(--kb-collapsible-content-height);
+ }
+}
+
+@keyframes slideUp {
+ from {
+ height: var(--kb-collapsible-content-height);
+ }
+ to {
+ height: 0;
+ }
+}