M: Add delay for some hover effects
This commit is contained in:
parent
4a65e2a0c4
commit
d2b37f9cad
|
@ -91,6 +91,7 @@
|
||||||
--duration-modal: 300ms;
|
--duration-modal: 300ms;
|
||||||
--duration-fade: 300ms;
|
--duration-fade: 300ms;
|
||||||
--duration-move: 500ms;
|
--duration-move: 500ms;
|
||||||
|
--duration-cycle: 1000ms;
|
||||||
|
|
||||||
/* Custom animations */
|
/* Custom animations */
|
||||||
--animate-pulse-scale: pulse-scale 1s infinite;
|
--animate-pulse-scale: pulse-scale 1s infinite;
|
||||||
|
|
|
@ -314,6 +314,10 @@
|
||||||
color: var(--color-muted-foreground);
|
color: var(--color-muted-foreground);
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
||||||
|
transition-property: color;
|
||||||
|
transition-timing-function: var(--transition-bezier);
|
||||||
|
transition-duration: var(--duration-select);
|
||||||
|
|
||||||
.selected & {
|
.selected & {
|
||||||
color: var(--color-foreground);
|
color: var(--color-foreground);
|
||||||
border-color: var(--color-graph-selected);
|
border-color: var(--color-graph-selected);
|
||||||
|
@ -322,6 +326,7 @@
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--color-foreground);
|
color: var(--color-foreground);
|
||||||
|
transition-delay: var(--duration-select);
|
||||||
}
|
}
|
||||||
|
|
||||||
.cursor-relocate .dragging & {
|
.cursor-relocate .dragging & {
|
||||||
|
|
|
@ -75,8 +75,13 @@
|
||||||
pointer-events: none !important;
|
pointer-events: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
transition-property: box-shadow;
|
||||||
|
transition-timing-function: var(--transition-bezier);
|
||||||
|
transition-duration: var(--duration-select);
|
||||||
|
|
||||||
&:hover:not(.selected) {
|
&:hover:not(.selected) {
|
||||||
box-shadow: 0 0 0 2px var(--color-selected);
|
box-shadow: 0 0 0 2px var(--color-selected);
|
||||||
|
transition-delay: var(--duration-select);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,14 +28,15 @@
|
||||||
|
|
||||||
@utility cc-hover-pulse {
|
@utility cc-hover-pulse {
|
||||||
&:hover:not(:disabled) {
|
&:hover:not(:disabled) {
|
||||||
animation: pulse-scale 1s infinite;
|
animation: pulse-scale var(--duration-cycle) infinite;
|
||||||
transition: var(--duration-move);
|
animation-delay: var(--duration-select);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@utility cc-hover-text {
|
@utility cc-hover-text {
|
||||||
&:hover:not(:disabled) {
|
&:hover:not(:disabled) {
|
||||||
color: var(--color-foreground);
|
color: var(--color-foreground);
|
||||||
|
transition-delay: var(--duration-select);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user