mirror of
https://github.com/picocss/pico.git
synced 2025-02-24 00:39:20 -05:00
Fix: Exclude tooltip animation on touch screens
This commit is contained in:
parent
5bb7346728
commit
1b1c13b8cf
@ -48,21 +48,29 @@
|
|||||||
color: var(--tooltip-background-color);
|
color: var(--tooltip-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Display
|
||||||
&:focus,
|
&:focus,
|
||||||
&:hover {
|
&:hover {
|
||||||
&::before,
|
&::before,
|
||||||
&::after {
|
&::after {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
||||||
@if $enable-transitions {
|
|
||||||
animation-duration: .2s;
|
|
||||||
animation-name: slide;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&::after {
|
// Animations, excluding touch devices
|
||||||
@if $enable-transitions {
|
@if $enable-transitions {
|
||||||
animation-name: slideCaret;
|
@media (hover: hover) and (pointer: fine) {
|
||||||
|
&:focus,
|
||||||
|
&:hover {
|
||||||
|
&::before,
|
||||||
|
&::after {
|
||||||
|
animation-duration: .2s;
|
||||||
|
animation-name: slide;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
animation-name: slideCaret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user