-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Questions about theming #134
Comments
There is no applied class even if setting up As my position, I recommend to divide theme file if you want greatly different styling, to avoid too complex CSS. But what your use case can we cover if Marp Core had assigned some class (or data attribute) depending on size? |
Ok, I understand. Firstly I use mainly marp to write slide deck. I like so much the simplicity that i wanted to use it to make printed document (A4 size). I need header, footer, page, etc. To keep this simple i wanted to include all css in one theme and split it by size. With this i will be able to write only markdown with vscode, and never have to use office product again :D. Do you think marpit can be used for that ? |
I feel you. There are not many better solution for Markdown -> PDF document conversion with simple styling. I'll consider to expose which size selected through global directive. In theme CSS, specific style could apply by size. /*!
* @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 */
} |
Perfect it's exactly what i need :) |
|
Hello
I have a made a custom theme and now i want to have a theme that support multiple size (4:3 16:9 4K A4) with completely different css rules for size A4.
Do you have a class applied when size is setup ?
The text was updated successfully, but these errors were encountered: