-
Notifications
You must be signed in to change notification settings - Fork 20
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 initial dropdown
directive implementation
#15
Conversation
cc @choldgraf and @jorisvandenbossche |
Nice! I'll take a look hopefully this weekend. When you say dropdown-group, do you essentially mean bootstrap accordions? |
Yeh basically. Just a way to orchestrate the style of a group of dropdowns with a default style and adding a bottom/top margin for the group. So rather than: .. dropdown:: My Content
:container: mt-3 shadow
:title: bg-primary text-white text-center font-weight-bold
:body: bg-light text-right font-italic
Is formatted
.. dropdown:: My Content
:container: shadow
:title: bg-primary text-white text-center font-weight-bold
:body: bg-light text-right font-italic
Is formatted
.. dropdown:: My Content
:container: mb-3 shadow
:title: bg-primary text-white text-center font-weight-bold
:body: bg-light text-right font-italic
Is formatted You could have: .. dropdown-group::
:container: shadow
:title: bg-primary text-white text-center font-weight-bold
:body: bg-light text-right font-italic
.. dropdown:: My Content
if formatted
.. dropdown:: My Content
if formatted
.. dropdown:: My Content
if formatted |
Took a look through the docs and the demo, I think it looks great in general. A couple quick thoughts:
|
Made animation configurable, see https://43-260360729-gh.circle-artifacts.com/0/html/index.html#transition-animation
You could make the glyph configurable, but I would leave this for another PR.
Yes. Note that the container is only "expanded" into HTML specific nodes if it is a HTML builder: sphinx-panels/sphinx_panels/dropdown.py Lines 109 to 111 in ad056eb
Also note that, as with the
See #19, and also #17 and #18 for things not covered by this PR |
@choldgraf when there is no title, an ellipsis is now added, which is hidden when open. See https://48-260360729-gh.circle-artifacts.com/0/html/index.html#dropdown-usage. |
This is really nice! Only looked at the demo, and that is looking good. |
Cheers 😄
Yeh looking at https://pandas.pydata.org/docs/getting_started/index.html#intro-to-pandas, |
This is great - I think one path forward is to deprecate the |
Well There is always the issue of CSS incompatibilities with certain themes. |
Addresses #14
It doesn't completely close it, because:
dropdown-group
directiveBoth of these are extra functionality that can be covered in later PRs.