mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 05:09:09 +08:00
refactor(SelectionToolbar): add transition effects to action buttons (#6869)
* refactor(SelectionToolbar): add transition effects to action buttons * refactor: reduce transition duration
This commit is contained in:
parent
dfc32967ed
commit
67ab36e0ea
@ -310,15 +310,22 @@ const ActionButton = styled.div`
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 4px 6px;
|
padding: 4px 6px;
|
||||||
|
transition: all 0.1s ease-in-out;
|
||||||
|
will-change: color, background-color;
|
||||||
|
|
||||||
.btn-icon {
|
.btn-icon {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
color: var(--color-selection-toolbar-text);
|
color: var(--color-selection-toolbar-text);
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
transition: color 0.1s ease-in-out;
|
||||||
|
will-change: color;
|
||||||
}
|
}
|
||||||
.btn-title {
|
.btn-title {
|
||||||
color: var(--color-selection-toolbar-text);
|
color: var(--color-selection-toolbar-text);
|
||||||
--font-size: 14px;
|
--font-size: 14px;
|
||||||
|
transition: color 0.1s ease-in-out;
|
||||||
|
will-change: color;
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user