-
I am enjoying the easy ability to customize Quarto Reveal slides through SCSS variables, bypassing the tedious CSS work. I tend to come back and modify the same CSS properties over and over again, so I would love to see SCSS variables for them:
.reveal section ul {
font-size: 0.9em;
}
.reveal section table {
font-size: 0.6em;
} These are not exclusive to Reveal format and might be useful for HTML as well, hence variables might need to be repeated without the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Why don't you define those in a file you could use for all your documents, or even write a format template extension with that. Edit: in your case the scss file would be something like the following. $presentation-ul-font-size: 1em !default;
$presentation-table-font-size: 1em !default;
.reveal section ul {
font-size: $presentation-ul-font-size;
}
.reveal section table {
font-size: $presentation-table-font-size;
} |
Beta Was this translation helpful? Give feedback.
Why don't you define those in a file you could use for all your documents, or even write a format template extension with that.
This way you get access to those without having to write them every time.
Edit: in your case the scss file would be something like the following.