You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't actually find where JupyterBooks picks up the definition of the p instruction. Because I wanted serif for a long-form book, I've added this to my private css:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've worried about this before, but I've learned some things since then so another go at this, I hope?
I know how to include my own css for a jupyterbook by creating a mine.css inside of _static.
But I would like to change the formatting of some standard features of the stock jupyterbook look and feel.
In particular, I'd like to change the formatting of text inside of admonitions.
In _static/basic.css and I see the the admonitions are defined:
I don't actually find where JupyterBooks picks up the definition of the p instruction. Because I wanted serif for a long-form book, I've added this to my private css:
I thought that I could add a redefinition of the elements in the admonition, and indeed if I include:
in my private css, the titles do change to sans serif. But because the body of the admonition is tied to p, that doesn't change:
does not change anything,
The code inspection shows that what's used is:
I have tried removing my redefinition of p to see if I could change the body of the admonitions, but it clearly adopts whatever is defined for p.
So I'm not sure how to affect the font styling of the body of a stock admonition.
This is as much a css question, I suppose, as executable books...but if someone could tell me how to fix this I'd be grateful.
Beta Was this translation helpful? Give feedback.
All reactions