Increasing font size of Improved tooltips #6757
-
Hi all. I've implemented Improved tooltips¶ on my site, but wanted to do two things:
What CSS do I need to add to accomplish this? Thanks, P. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hello @oceanclub1970, 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.
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?
|
Beta Was this translation helpful? Give feedback.
-
Would you be able to link me to an example extra.css file? For some reason the above CSS excerpt is not working for me. Also, what is the difference between specifying as:
and
|
Beta Was this translation helpful? Give feedback.
-
None of the other solutions worked for me here. For me the only thing that actually worked was this:
I know it's not very elegant, but I need to move forward with my project, so it's OK for now. |
Beta Was this translation helpful? Give feedback.
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:
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.
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?