Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: make docs items collapsibles

kapishdima73007849306f
diff --git a/app/globals.css b/app/globals.css
index c91db24e..44033257 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -386,21 +386,50 @@
}
#nd-sidebar a.w-full,
-#nd-sidebar-mobile a.w-full {
+#nd-sidebar-mobile a.w-full,
+#nd-sidebar [data-radix-scroll-area-viewport] button.w-full,
+#nd-sidebar-mobile [data-radix-scroll-area-viewport] button.w-full {
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: 0.6875rem;
font-weight: 600;
color: var(--muted-foreground);
- margin-top: 2.5rem;
+ margin-top: 0.25rem;
}
#nd-sidebar a.w-full:hover,
-#nd-sidebar-mobile a.w-full:hover {
+#nd-sidebar-mobile a.w-full:hover,
+#nd-sidebar [data-radix-scroll-area-viewport] button.w-full:hover,
+#nd-sidebar-mobile [data-radix-scroll-area-viewport] button.w-full:hover {
color: var(--foreground);
background-color: transparent;
}
+#nd-sidebar [data-radix-scroll-area-viewport] a.w-full + div,
+#nd-sidebar [data-radix-scroll-area-viewport] button.w-full + div,
+#nd-sidebar-mobile [data-radix-scroll-area-viewport] a.w-full + div,
+#nd-sidebar-mobile [data-radix-scroll-area-viewport] button.w-full + div {
+ padding-bottom: 1rem;
+}
+#nd-sidebar [data-radix-scroll-area-viewport] a.w-full + div::before,
+#nd-sidebar [data-radix-scroll-area-viewport] button.w-full + div::before,
+#nd-sidebar-mobile [data-radix-scroll-area-viewport] a.w-full + div::before,
+#nd-sidebar-mobile
+ [data-radix-scroll-area-viewport]
+ button.w-full
+ + div::before {
+ bottom: 1.25rem;
+}
+
+#nd-sidebar a.w-full svg[data-icon],
+#nd-sidebar button.w-full svg[data-icon],
+#nd-sidebar-mobile a.w-full svg[data-icon],
+#nd-sidebar-mobile button.w-full svg[data-icon] {
+ width: 0.875rem;
+ height: 0.875rem;
+ opacity: 0.7;
+}
+
#nd-sidebar [data-radix-scroll-area-viewport],
#nd-sidebar-mobile [data-radix-scroll-area-viewport] {
padding-bottom: 2rem;
diff --git a/content/docs/ai/meta.json b/content/docs/ai/meta.json
index 2e603369..b028d1e7 100644
--- a/content/docs/ai/meta.json
+++ b/content/docs/ai/meta.json
@@ -1,5 +1,5 @@
{
"title": "AI",
- "collapsible": false,
+ "defaultOpen": false,
"pages": ["index", "claude-chat", "chat-gpt", "v0", "claude-code", "opencode"]
}
diff --git a/content/docs/compositions/meta.json b/content/docs/compositions/meta.json
index 2f211889..5db93058 100644
--- a/content/docs/compositions/meta.json
+++ b/content/docs/compositions/meta.json
@@ -1,6 +1,6 @@
{
"title": "Compositions",
- "collapsible": false,
+ "defaultOpen": false,
"pages": [
"index",
"ecosystem-constellation",
diff --git a/content/docs/craft/meta.json b/content/docs/craft/meta.json
index b3bfe890..face7d7b 100644
--- a/content/docs/craft/meta.json
+++ b/content/docs/craft/meta.json
@@ -1,5 +1,5 @@
{
"title": "Craft",
- "collapsible": false,
+ "defaultOpen": false,
"pages": ["index", "design-defaults", "motion-principles", "anti-patterns"]
}
diff --git a/content/docs/effects/meta.json b/content/docs/effects/meta.json
index 29b21011..172481bf 100644
--- a/content/docs/effects/meta.json
+++ b/content/docs/effects/meta.json
@@ -1,6 +1,6 @@
{
"title": "Effects",
- "collapsible": false,
+ "defaultOpen": true,
"pages": [
"index",
"confetti",
diff --git a/content/docs/getting-started/meta.json b/content/docs/getting-started/meta.json
index 90e2e794..7caea4b2 100644
--- a/content/docs/getting-started/meta.json
+++ b/content/docs/getting-started/meta.json
@@ -1,5 +1,5 @@
{
"title": "Getting Started",
- "collapsible": false,
+ "defaultOpen": true,
"pages": ["introduction", "installation", "agent-skill"]
}
diff --git a/content/docs/guides/meta.json b/content/docs/guides/meta.json
index 7dc927a2..7075c020 100644
--- a/content/docs/guides/meta.json
+++ b/content/docs/guides/meta.json
@@ -1,6 +1,6 @@
{
"title": "Guides",
- "collapsible": false,
+ "defaultOpen": false,
"pages": [
"index",
"setup",
diff --git a/content/docs/layout/meta.json b/content/docs/layout/meta.json
index 380ce0cf..bddbbc1f 100644
--- a/content/docs/layout/meta.json
+++ b/content/docs/layout/meta.json
@@ -1,5 +1,5 @@
{
"title": "Layout",
- "collapsible": false,
+ "defaultOpen": false,
"pages": ["index", "backdrop", "drift", "chat-to-preview-layout"]
}
diff --git a/content/docs/social/meta.json b/content/docs/social/meta.json
index a0487617..9f0989df 100644
--- a/content/docs/social/meta.json
+++ b/content/docs/social/meta.json
@@ -1,6 +1,6 @@
{
"title": "Social",
- "collapsible": false,
+ "defaultOpen": false,
"pages": [
"index",
"github-stars",
diff --git a/content/docs/transitions/meta.json b/content/docs/transitions/meta.json
index 1afec29e..83c1075e 100644
--- a/content/docs/transitions/meta.json
+++ b/content/docs/transitions/meta.json
@@ -1,6 +1,6 @@
{
"title": "Transitions",
- "collapsible": false,
+ "defaultOpen": true,
"pages": [
"index",
"grain-dissolve",
diff --git a/content/docs/typography/meta.json b/content/docs/typography/meta.json
index 172aaf40..3fae67a6 100644
--- a/content/docs/typography/meta.json
+++ b/content/docs/typography/meta.json
@@ -1,6 +1,6 @@
{
"title": "Typography",
- "collapsible": false,
+ "defaultOpen": true,
"pages": [
"index",
"soft-blur-in",
diff --git a/content/docs/ui-blocks/meta.json b/content/docs/ui-blocks/meta.json
index 8cb2ff5f..e3c5b7c5 100644
--- a/content/docs/ui-blocks/meta.json
+++ b/content/docs/ui-blocks/meta.json
@@ -1,6 +1,6 @@
{
"title": "UI Blocks",
- "collapsible": false,
+ "defaultOpen": true,
"pages": [
"index",
"glass-code-block",