1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-12 01:50:52 +01:00

Added nicer scaling for reset button

This commit is contained in:
squidfunk 2020-02-26 10:03:15 +01:00
parent 4b745d0027
commit 2de1608079

View File

@ -370,6 +370,7 @@ $md-toggle__search--checked:
transform 150ms cubic-bezier(0.1, 0.7, 0.1, 1),
opacity 150ms;
opacity: 0;
pointer-events: none;
// Adjust for right-to-left languages
[dir="rtl"] & {
@ -393,6 +394,7 @@ $md-toggle__search--checked:
#{$md-toggle__search--checked} .md-search__input:valid ~ & {
transform: scale(1);
opacity: 1;
pointer-events: initial;
// Hovered icon
&:hover {