Skip to content

Commit

Permalink
feat: Add extra.css for custom styling and responsive layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tiankaima committed Jul 22, 2024
1 parent a5c8829 commit fad9a28
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/css/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.jp-Collapser {
display: none;
}

.jupyter-wrapper {
--jp-notebook-padding: 0px !important;
--jp-cell-padding: 0px !important;
--jp-code-padding: 0px !important;

.jp-Notebook {
.jp-Cell {
padding-block: 5px !important;
}
}

@media screen and (max-width: 76.25em) {
.jp-CodeCell .jp-InputPrompt {
display: none !important;
}
.jp-CodeCell .jp-OutputPrompt {
display: none !important;
}
}
}
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ extra_javascript:
- "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.js"

extra_css:
- css/extra.css
- "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css"

# Extensions
Expand Down

0 comments on commit fad9a28

Please sign in to comment.