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