mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
M: Add delay for some hover effects
This commit is contained in:
parent
e21ebc195d
commit
384bf4e924
|
@ -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;
|
||||||
|
@ -110,12 +111,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ========= shadcn theme ============ */
|
/* ========= shadcn theme ============ */
|
||||||
|
|
||||||
/* --radius-sm: calc(var(--radius) - 4px);
|
|
||||||
--radius-md: calc(var(--radius) - 2px);
|
|
||||||
--radius-lg: var(--radius);
|
|
||||||
--radius-xl: calc(var(--radius) + 4px); */
|
|
||||||
|
|
||||||
--color-background: var(--clr-prim-100);
|
--color-background: var(--clr-prim-100);
|
||||||
--color-foreground: var(--clr-prim-999);
|
--color-foreground: var(--clr-prim-999);
|
||||||
--color-card: var(--clr-prim-0);
|
--color-card: var(--clr-prim-0);
|
||||||
|
|
|
@ -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