diff --git a/README.md b/README.md index 1dfd495..3269742 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ This Sphinx extension fixes: - an issue where drop down menus would still take up space after being minimized, and the patch fixes it through some css. - an issue where in drop down code cells the shown summary remained lightgray instead of turning darkgrey. Fix through css. +- an issue where the size of code in a header is not the correct font size. Fix through css. ## Installation To install the Sphinx-JupyterBook-Patches, follow these steps: diff --git a/src/jupyterbook_patches/patches/_static/fix_code_header_style.css b/src/jupyterbook_patches/patches/_static/fix_code_header_style.css new file mode 100644 index 0000000..9f61b4b --- /dev/null +++ b/src/jupyterbook_patches/patches/_static/fix_code_header_style.css @@ -0,0 +1,8 @@ +h1 code, +h2 code, +h3 code, +h4 code, +h5 code, +h6 code { + font-size: inherit; +} \ No newline at end of file diff --git a/src/jupyterbook_patches/patches/layout.py b/src/jupyterbook_patches/patches/layout.py index c97169a..b8c1b3e 100644 --- a/src/jupyterbook_patches/patches/layout.py +++ b/src/jupyterbook_patches/patches/layout.py @@ -8,3 +8,4 @@ def initialize(self, app): logger.info("Initializing layout patch") app.add_css_file(filename="fix_admonition_style.css") app.add_css_file(filename="fix_dropdown_style.css") + app.add_css_file(filename="fix_code_header_style.css")