mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
F: Add selection animation for graphs
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
This commit is contained in:
parent
609752a9d6
commit
b7aa8fe56a
|
@ -19,6 +19,7 @@
|
|||
--duration-move: 500ms;
|
||||
--duration-modal: 300ms;
|
||||
--duration-fade: 300ms;
|
||||
--duration-select: 100ms;
|
||||
|
||||
/* Light Theme */
|
||||
--cl-bg-120: hsl(000, 000%, 100%);
|
||||
|
|
|
@ -115,14 +115,26 @@
|
|||
border-radius: 5px;
|
||||
padding: 2px;
|
||||
width: 150px;
|
||||
height: 40px;
|
||||
height: fit-content;
|
||||
|
||||
outline-offset: -2px;
|
||||
outline-style: solid;
|
||||
outline-color: transparent;
|
||||
|
||||
transition-property: outline-offset;
|
||||
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition-duration: var(--duration-select);
|
||||
|
||||
&.selected {
|
||||
outline-offset: 4px;
|
||||
outline-color: var(--cl-teal-bg-100);
|
||||
border-color: var(--cd-bg-40);
|
||||
}
|
||||
|
||||
.dark & {
|
||||
&.selected {
|
||||
outline-offset: 4px;
|
||||
border-color: var(--cd-teal-bg-100);
|
||||
border-color: var(--cl-bg-40);
|
||||
}
|
||||
}
|
||||
|
@ -137,18 +149,25 @@
|
|||
width: 40px;
|
||||
height: 40px;
|
||||
|
||||
outline-offset: 4px;
|
||||
outline-offset: -2px;
|
||||
outline-style: solid;
|
||||
outline-color: transparent;
|
||||
|
||||
transition-property: outline-offset;
|
||||
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition-duration: var(--duration-select);
|
||||
|
||||
&.selected {
|
||||
outline-offset: 4px;
|
||||
outline-color: var(--cl-teal-bg-100);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.dark & {
|
||||
&.selected {
|
||||
outline-offset: 4px;
|
||||
border-color: var(--cd-teal-bg-100);
|
||||
border-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user