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

Support for MicroModal #39

Merged
merged 27 commits into from
Apr 9, 2020
Merged

Support for MicroModal #39

merged 27 commits into from
Apr 9, 2020

Conversation

humitos
Copy link
Member

@humitos humitos commented Apr 2, 2020

This PR implements a new completely different style: modal dialogues. It uses MicroModal.js as backend to show them

Screenshot_2020-04-03_17-36-58

There is a live example where you can see it in action.

The docs were updated to reflect this new type.

I plan to merge this and make a new 0.2 beta release next week. It was tested on alabaster, sphinx_rtd_theme, typlog and sphinx_material. They render pretty nice!

Closes #22
Closes #1
Closes #26
Closes #25
Closes #40

@humitos humitos added the PR: work in progress Pull request is not ready for full review label Apr 2, 2020
- use a similar font size for h1 than the rest (175% looked too big)
- use inherit color from `rst-content` class
- use h1 for modal title
- default modal title option when there is no h1 in the content of
modal
- add option for default modal title
- add option for modal prefix title
- change max-width on mobile devices
- add link to the content of the page in the title
- sphinx_rtd_theme
- alabaster
- sphinx_material
- typlog
This config works for both, tooltip and modal now. So, the "tooltip"
prefix is not needed anymore.

I added a warning message and also keep support for the old name.
@humitos humitos removed the PR: work in progress Pull request is not ready for full review label Apr 4, 2020
@humitos humitos requested a review from a team April 4, 2020 14:42
@humitos
Copy link
Member Author

humitos commented Apr 4, 2020

I'm requesting review of the Core Team, but I don't think it worth to take a deep look at this. Consider just to ignore this PR if you are not too familiarized with the code and developing Sphinx extensions themselves.

@humitos humitos added the Feature New feature label Apr 4, 2020
@humitos humitos merged commit ed542fd into master Apr 9, 2020
@humitos humitos deleted the humitos/micromodal branch April 9, 2020 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature
Projects
None yet
1 participant