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

generating custom markup for more powerful styling. #93

Open
stefanseefeld opened this issue Dec 22, 2021 · 2 comments
Open

generating custom markup for more powerful styling. #93

stefanseefeld opened this issue Dec 22, 2021 · 2 comments
Labels
question Further information is requested

Comments

@stefanseefeld
Copy link

Is there a way to attach metadata to elements in the RST document, which will translate into classes in the generated HTML ? This would greatly help customizing the layout / styling.
For example, I'm looking for ways to generate multi-column slides. While I believe I understand how to achieve this with HTML / CSS, I don't see any way to identify my RST elements (paragraph, list item, etc.) such that I could then select them from custom CSS.

@attakei attakei added the question Further information is requested label Dec 23, 2021
@stefanseefeld
Copy link
Author

I actually figured this out, at least for my current use-case:

.. container:: column

allows me to create a block wrapper (<div class="column"> in HTML) which I can then lay out appropriately.
It might be useful to add a few examples as I suspect that at least some users may want to fine-tune their slides using advanced styles and layouts.

@attakei
Copy link
Owner

attakei commented Dec 29, 2021

I am using container directive to implement for 2-column layout.

Example:

It might be useful to add a few examples as I suspect that at least some users may want to fine-tune their slides using advanced styles and layouts.

It is good idea. I have thought that this is good example as one of usage sphinx-revealjs for combination RST with CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants