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

Code in callouts in smaller slides needs to be scaled down twice #11252

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Oct 30, 2024

This is because code-.*-font-size variables are set in px and not em, and we need to scaled down using calc() twice so that correct font is used.

Follow up on #11237

$code-inline-font-size and $code-block-inline are in pixels, and so we need to have $presentation-font-smaller applied to it, so that it gets correctly scaled down, like other text.

When callouts inside .smaller content, the scaling factor needs to be applied twice to get correct result.

image

This PR fixes it.

Other style issues are in #11251

This is because code-.*-font-size variables are set in px and not em, and we need to scaled down using `calc()` twice so that correct font is used.
@cderv cderv merged commit efeb89d into main Oct 31, 2024
47 checks passed
@cderv cderv deleted the fix/revealjs/code-font-size-callout-smaller branch October 31, 2024 13:47
@cderv cderv added this to the v1.6 milestone Oct 31, 2024
@cderv cderv added revealjs Issues with the revealjs format callouts Issues with Callout Blocks. labels Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
callouts Issues with Callout Blocks. revealjs Issues with the revealjs format
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant