mirror of
https://github.com/picocss/pico.git
synced 2025-04-21 00:56:14 -04:00
Fix: Exclude tooltip animation on touch screens
This commit is contained in:
parent
5bb7346728
commit
1b1c13b8cf
1 changed files with 16 additions and 8 deletions
|
@ -48,25 +48,33 @@
|
||||||
color: var(--tooltip-background-color);
|
color: var(--tooltip-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Display
|
||||||
&:focus,
|
&:focus,
|
||||||
&:hover {
|
&:hover {
|
||||||
&::before,
|
&::before,
|
||||||
&::after {
|
&::after {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Animations, excluding touch devices
|
||||||
@if $enable-transitions {
|
@if $enable-transitions {
|
||||||
|
@media (hover: hover) and (pointer: fine) {
|
||||||
|
&:focus,
|
||||||
|
&:hover {
|
||||||
|
&::before,
|
||||||
|
&::after {
|
||||||
animation-duration: .2s;
|
animation-duration: .2s;
|
||||||
animation-name: slide;
|
animation-name: slide;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
@if $enable-transitions {
|
|
||||||
animation-name: slideCaret;
|
animation-name: slideCaret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Animations
|
// Animations
|
||||||
@if $enable-transitions {
|
@if $enable-transitions {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue