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

@media print and <!-- .element: style="font-size: 60%" --> #3556

Open
jpggithub opened this issue Jan 2, 2024 · 0 comments
Open

@media print and <!-- .element: style="font-size: 60%" --> #3556

jpggithub opened this issue Jan 2, 2024 · 0 comments

Comments

@jpggithub
Copy link

jpggithub commented Jan 2, 2024

When printing a presentation, a directive like <!-- .element: style="font-size: 60%" --> for a paragraph is not respected.
(reveal.js v5.0.3)

In /css/print/paper.scss, the following rule causes the problem:

@media print {
[...]font-size: 20pt!important;
	html:not(.print-pdf) .reveal {
[...]
		p, td, li {
			font-size: 20pt!important;
[...]
		}

It would be more obvious to have something like font-size: 20pt;, no?

Without the !important part, it could be possible to configure the print version as wished.
With !important part, it can't be as far as I understand.

EDIT: delete an unnecessary !important part. Oups!

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

No branches or pull requests

1 participant