🎥 Make videos programmatically with React
Elements: Hide Contributing and Guidelines in Studio iframe
Igor Samokhovets1bd94a84fe9e
diff --git a/packages/docs/elements-sidebars.ts b/packages/docs/elements-sidebars.tsindex 4df05bba36..0168a67bc6 100644--- a/packages/docs/elements-sidebars.ts+++ b/packages/docs/elements-sidebars.ts@@ -28,9 +28,14 @@ const sidebars: SidebarsConfig = {collapsible: true,collapsed: false,items: [- 'contributing',+ {+ type: 'doc',+ id: 'contributing',+ className: 'elements-sidebar-standalone-only',+ },{type: 'html',+ className: 'elements-sidebar-standalone-only',value:'<hr style="margin-top: 4px; margin-bottom: 4px; border-bottom: none"/>',defaultStyle: true,@@ -54,7 +59,11 @@ const sidebars: SidebarsConfig = {'<hr style="margin-top: 4px; margin-bottom: 4px; border-bottom: none"/>',defaultStyle: true,},- 'guidelines',+ {+ type: 'doc',+ id: 'guidelines',+ className: 'elements-sidebar-standalone-only',+ },'libraries',],},diff --git a/packages/docs/src/css/custom.css b/packages/docs/src/css/custom.cssindex f58eb5b286..b44bc4cea5 100644--- a/packages/docs/src/css/custom.css+++ b/packages/docs/src/css/custom.css@@ -79,7 +79,8 @@ h6 {/* The Elements library is also browsed inside Studio's iframe. */.studio-elements-embed .theme-announcement-bar,.studio-elements-embed .theme-doc-footer,-.studio-elements-embed .pagination-nav {+.studio-elements-embed .pagination-nav,+.studio-elements-embed .elements-sidebar-standalone-only {display: none;}