mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added support for search highlighting fading
This commit is contained in:
parent
5bc7240319
commit
07f7366875
9
material/assets/stylesheets/main.a4a84060.min.css
vendored
Normal file
9
material/assets/stylesheets/main.a4a84060.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.a4a84060.min.css.map
Normal file
1
material/assets/stylesheets/main.a4a84060.min.css.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -34,7 +34,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.bb3983ee.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.a4a84060.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.e6a45f82.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">
|
||||||
|
@ -20,6 +20,17 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Keyframes
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Fade text highlighting marker
|
||||||
|
@keyframes fade {
|
||||||
|
100% {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Rules: font definitions
|
// Rules: font definitions
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@ -277,6 +288,12 @@ kbd {
|
|||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
background-color: var(--md-typeset-mark-color);
|
background-color: var(--md-typeset-mark-color);
|
||||||
box-decoration-break: clone;
|
box-decoration-break: clone;
|
||||||
|
|
||||||
|
// Automatically fade programatically inserted markers - only active if the
|
||||||
|
// variable is defined by the author - see https://bit.ly/3r1C6qm
|
||||||
|
&[data-md-highlight] {
|
||||||
|
animation: fade var(--md-highlight-fade) forwards;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Abbreviation
|
// Abbreviation
|
||||||
|
Loading…
Reference in New Issue
Block a user