mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-02 10:48:49 -04:00
Added support for search highlighting fading
This commit is contained in:
@@ -20,6 +20,17 @@
|
||||
/// DEALINGS
|
||||
////
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Keyframes
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Fade text highlighting marker
|
||||
@keyframes fade {
|
||||
100% {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Rules: font definitions
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -277,6 +288,12 @@ kbd {
|
||||
word-break: break-word;
|
||||
background-color: var(--md-typeset-mark-color);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user