Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add panels/droppdown/etc styles defaults #18

Open
chrisjsewell opened this issue May 16, 2020 · 2 comments
Open

Add panels/droppdown/etc styles defaults #18

chrisjsewell opened this issue May 16, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@chrisjsewell
Copy link
Member

chrisjsewell commented May 16, 2020

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 #14 (comment)

@chrisjsewell
Copy link
Member Author

chrisjsewell commented May 17, 2020

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

@chrisjsewell chrisjsewell changed the title Add droppdown styles defaults Add panels/droppdown styles defaults Oct 3, 2020
@chrisjsewell chrisjsewell changed the title Add panels/droppdown styles defaults Add panels/droppdown/etc styles defaults Oct 3, 2020
@pradyunsg
Copy link
Member

I'll bring in the note from #39 -- regarding changing the "default" style uses when none are specified. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants