mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03: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 %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% 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 %}
|
{% if config.theme.palette %}
|
||||||
{% set palette = config.theme.palette %}
|
{% set palette = config.theme.palette %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
|
||||||
|
@ -182,6 +182,13 @@
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
width: fit-content;
|
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);
|
padding: px2rem(4px) px2rem(8px);
|
||||||
font-size: px2rem(10px);
|
font-size: px2rem(10px);
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
Loading…
Reference in New Issue
Block a user