We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This idea came from #134.
By exposing selected size as data attribute of <section> slide container, theme author can change style by size.
<section>
--- theme: xxx size: A4 --- # Hello!
<section data-size="A4"> <h1>Hello!</h1> </section>
/*! * @theme xxx * @size 4:3 960px 720px * @size A4 210mm 297mm */ section { /* Default style (16:9) */ } section[data-size="4:3"] { /* Style for 4:3 slide */ } section[data-size="A4"] { /* Style for A4 slide */ }
It might be better to work at Marpit framework, to expose the value of global directives as like as local directives.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
This idea came from #134.
By exposing selected size as data attribute of
<section>
slide container, theme author can change style by size.The text was updated successfully, but these errors were encountered: