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

Simpler image right alignment #213

Merged
merged 1 commit into from
Oct 30, 2018
Merged

Conversation

obilodeau
Copy link
Member

A "right" role can be applied on all divs under revealjs CSS class namespace. If you think this is a bad idea, say so. This is our first attempt at overriding CSS from reveal.js.

Initial attempt is promising, we could backport a lot of AsciiDoc's features like tables and more. Lots of issues already open for these.

That said, I would have preferred a pure .css file include (so that syntax highlighting and IDE would have played along better) but I couldn't make it work.

PR to fix #197.

Note to reviewers: there is more test code in there than actual code. I'll merge it relatively soonish so I can get my Hacktoberfest t-shirt 😉

.

This is our first attempt at overriding CSS from reveal.js. Initial attempt is promising, we could backport a lot of AsciiDoc's features like tables and more.

Added a test case in examples/images.adoc.
@mojavelinux
Copy link
Member

👍

When considering how to implement styles, don't rule out flexbox for alignment. It's supported perfectly across browsers and it it's extremely powerful. In particular, it's very good at self-alignment of items.

@obilodeau obilodeau merged commit b90738f into asciidoctor:master Oct 30, 2018
obilodeau added a commit to obilodeau/asciidoctor-reveal.js that referenced this pull request Oct 30, 2018
@obilodeau obilodeau deleted the role-right branch February 11, 2019 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

role=right on image block's behavior could be improved
2 participants