mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Simplified tooltip positioning
This commit is contained in:
parent
350aee371d
commit
1316d8d184
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.cdfe358e.min.css.map
Normal file
1
material/assets/stylesheets/main.cdfe358e.min.css.map
Normal file
File diff suppressed because one or more lines are too long
@ -34,7 +34,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.58abb37a.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.cdfe358e.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9204c3b2.min.css' | url }}">
|
||||
|
@ -56,18 +56,12 @@
|
||||
top: var(--md-tooltip-y);
|
||||
left:
|
||||
clamp(
|
||||
calc(
|
||||
var(--md-tooltip-0, #{px2rem(0px)}) +
|
||||
#{px2rem(16px)}
|
||||
),
|
||||
var(--md-tooltip-0, #{px2rem(0px)}) + #{px2rem(16px)},
|
||||
var(--md-tooltip-x),
|
||||
calc(
|
||||
100vw -
|
||||
var(--md-tooltip-width) +
|
||||
calc(
|
||||
var(--md-tooltip-0, #{px2rem(0px)}) +
|
||||
#{px2rem(16px)}
|
||||
) -
|
||||
(
|
||||
100vw +
|
||||
var(--md-tooltip-0, #{px2rem(0px)}) + #{px2rem(16px)} -
|
||||
var(--md-tooltip-width) -
|
||||
2 * #{px2rem(16px)}
|
||||
)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user