Hide too many ticks on mobile

cache
Varun Patil 2022-10-06 10:47:45 -07:00
parent 0807498894
commit 7445f43381
1 changed files with 8 additions and 0 deletions

View File

@ -1319,10 +1319,18 @@ export default class Timeline extends Mixins(GlobalMixin, UserConfig) {
opacity: 0;
transition: opacity .2s ease-in-out;
// Show ticks on hover or scroll of main window
&:hover, &.scrolling {
opacity: 1;
}
// Hide ticks on mobile unless hovering
@include phone {
&:not(:hover) > .tick {
opacity: 0;
}
}
> .tick {
pointer-events: none;
position: absolute;