Skip to content

Commit d8fcf7f

Browse files
committed
fix: add basic responsiveness
1 parent 0bb5d5c commit d8fcf7f

File tree

6 files changed

+441
-381
lines changed

6 files changed

+441
-381
lines changed

playgrounds/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@fontsource/roboto": "^5.1.0",
2424
"@kobalte/core": "^0.13.7",
2525
"@libsql/client": "^0.14.0",
26+
"@solid-primitives/media": "^2.2.9",
2627
"@solid-primitives/storage": "^4.2.1",
2728
"@solidjs/meta": "^0.29.4",
2829
"@solidjs/router": "^0.14.7",

playgrounds/app/src/app.css

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@
102102

103103
body {
104104
@apply bg-background text-foreground;
105-
font-feature-settings:
106-
'rlig' 1,
107-
'calt' 1;
105+
font-feature-settings: 'rlig' 1, 'calt' 1;
108106
}
109107
}
110108

@@ -148,3 +146,27 @@
148146
#app {
149147
@apply min-h-screen flex flex-col;
150148
}
149+
150+
.collapsible__content {
151+
overflow: hidden;
152+
animation: slideUp 300ms ease-out;
153+
}
154+
.collapsible__content[data-expanded] {
155+
animation: slideDown 300ms ease-out;
156+
}
157+
@keyframes slideDown {
158+
from {
159+
height: 0;
160+
}
161+
to {
162+
height: var(--kb-collapsible-content-height);
163+
}
164+
}
165+
@keyframes slideUp {
166+
from {
167+
height: var(--kb-collapsible-content-height);
168+
}
169+
to {
170+
height: 0;
171+
}
172+
}

0 commit comments

Comments
 (0)