Skip to content

Increasing font size of Improved tooltips #6757

Discussion options

You must be logged in to vote

Hello @oceanclub1970,
to change the size of the font you can do it with:

Note

If you're reading this after April 2024 please see the comment below:

.md-tooltip__inner,
.md-tooltip--inline .md-tooltip__inner {
  font-size: 0.9rem;
}

However, it's position won't be centred to the hovered item, it will be shifted, as the JavaScript calculated the position without using the new font-size.

If possible, on desktop/wide screens, make the tooltip narrower, as it stretches to the width of the window.

I don't know what you mean, the tooltips stretch on the whole page? Can you do a screenshot on the mkdocs-material documentation page and send it here please?

Note that positioni…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@oceanclub1970
Comment options

@kamilkrzyskow
Comment options

Answer selected by kamilkrzyskow
Comment options

You must be logged in to vote
1 reply
@Lexachoc
Comment options

Comment options

You must be logged in to vote
2 replies
@kamilkrzyskow
Comment options

@squidfunk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants