Skip to content

Commit 0a435da

Browse files
committed
custom css
Signed-off-by: Max Pumperla <max.pumperla@googlemail.com>
1 parent acd725c commit 0a435da

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

_config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
title: Course Notebooks
2+
html:
3+
theme:
4+
name: "sphinx_book_theme"
5+
options:
6+
default_mode: "light"
7+
theme_switcher: false
8+
extra_css:
9+
- custom_hide.css

custom_hide.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* Hide the left sidebar (TOC) */
2+
#site-navigation, .bd-sidebar-primary, .bd-toc {
3+
display: none !important;
4+
}
5+
6+
/* Expand main content to full width */
7+
.bd-main .bd-content {
8+
margin-left: 0 !important;
9+
max-width: 100% !important;
10+
}
11+
12+
/* Hide the footer */
13+
#jb-footer, .footer, .bd-footer {
14+
display: none !important;
15+
}
16+
17+
/* Hide the theme switcher button */
18+
.theme-switch-button, .toggle-switch {
19+
display: none !important;
20+
}

0 commit comments

Comments
 (0)