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'm using mkdocs-material theme with this plugin, setting enable_default_pandas_dataframe_styling: true. Works and looks great in light mode, but in dark mode (recently introduced in mkdocs-material) it does not render nicely:
This can be solved by using the CSS prefers-color-scheme media feature, basically adding a
@media (prefers-color-scheme: dark) {
...
}
section to mknotebooks/templates/pandas-dataframe.css. This is the same way how mkdocs-materialimplemented their dark mode).
I'd also be willing to give a PR try if you want, let me know!
The text was updated successfully, but these errors were encountered:
Hi @greenape, great plugin and super useful !
I'm using
mkdocs-material
theme with this plugin, settingenable_default_pandas_dataframe_styling: true
. Works and looks great in light mode, but in dark mode (recently introduced inmkdocs-material
) it does not render nicely:This can be solved by using the CSS prefers-color-scheme media feature, basically adding a
section to
mknotebooks/templates/pandas-dataframe.css
. This is the same way howmkdocs-material
implemented their dark mode).I'd also be willing to give a PR try if you want, let me know!
The text was updated successfully, but these errors were encountered: