Skip to content

Commit 111c372

Browse files
committed
style: enhance iframe visibility by hiding navbar, footer, and pagination
- Updated CSS to completely hide the main navbar, mobile navbar sidebar, and footer for iframe views. - Ensured pagination navigation is also hidden to streamline the embedded experience.
1 parent e401416 commit 111c372

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/css/custom.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,25 @@ details:target {
218218
Iframe Styles - Preserved
219219
=========================== */
220220

221-
div[data-iframe="true"] header,
221+
/* Hide navbar/header completely */
222+
/* Note: This hides the main navbar and mobile navbar sidebar, but NOT the doc sidebar (theme-doc-sidebar-container) */
223+
div[data-iframe="true"] .theme-layout-navbar,
224+
div[data-iframe="true"] .theme-layout-navbar-sidebar,
225+
div[data-iframe="true"] .navbar-sidebar,
226+
div[data-iframe="true"] header,
222227
div[data-iframe="true"] .navbar__items:not(.navbar__items--right),
223228
div[data-iframe="true"] .navbar__brand {
224229
display: none !important;
225230
}
226231

232+
/* Hide footer completely */
233+
div[data-iframe="true"] .theme-layout-footer,
234+
div[data-iframe="true"] .footer,
235+
div[data-iframe="true"] footer {
236+
display: none !important;
237+
}
238+
239+
/* Hide pagination navigation */
227240
div[data-iframe="true"] nav.pagination-nav {
228241
display: none !important;
229242
}

0 commit comments

Comments
 (0)