Skip to content

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