sphinx-panels
sphinx-panels copied to clipboard
Add panels/droppdown/etc styles defaults
There could be "top-level" styles option that initialize a bunch of bootstrap classes (maybe on multiple elements), i.e. warning wouldn't just relate to bg-danger; it might be e.g. font-weight-bold text-white bg-danger on the detail element, then potentially also other classes on the summary and div elements.
Originally posted by @chrisjsewell in https://github.com/executablebooks/sphinx-panels/issues/14#issuecomment-629441898
Note styles could also be used for panels, and additional "project-wide" styles could perhaps be added in conf.py, e.g.:
dropdown_styles = {
"my-style": {
"container": ["mb-2"],
"title": ["bg-primary", "text-center"],
"body": ["text-justify"]
}
}
Then in text:
.. dropdown:: Title
:style: my-style
Content
I'll bring in the note from #39 -- regarding changing the "default" style uses when none are specified. :)