Adding custom CSS
Adding custom CSS#
In config.yaml you can add a extra_css_file entry pointing to a CSS file which will be included on every page:
config.yaml#
---
course_title: My course
extra_css_file: extra.css
Then in the CSS file you can put CSS you like:
extra.css#
body {
font-size: 2rem;
}
nbpretty will automatically add the CSS to every generated HTML page after all other CSS files:
<style>@import 'extra.css'</style>