mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-12 01:50:52 +01:00
Fixed overly long tooltips
This commit is contained in:
parent
e15518cfa5
commit
599193edfa
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -44,7 +44,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.458f862d.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.f0945174.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
|
||||
|
@ -182,6 +182,13 @@
|
||||
)
|
||||
);
|
||||
width: fit-content;
|
||||
// @todo refactor - this is currently a hack to fix overly long tooltips,
|
||||
// but should be refactored in the future to be more flexible
|
||||
max-width:
|
||||
min(
|
||||
calc(100vw - 2 * #{px2rem(16px)}),
|
||||
400px
|
||||
);
|
||||
padding: px2rem(4px) px2rem(8px);
|
||||
font-size: px2rem(10px);
|
||||
font-weight: 700;
|
||||
|
Loading…
Reference in New Issue
Block a user