mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-29 23:09:38 +08:00
💫 添加交互效果
This commit is contained in:
@@ -98,6 +98,7 @@ async function switchCollect(): Promise<void> {
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
&.active {
|
||||
background: var(--tgc-btn-1);
|
||||
@@ -108,6 +109,15 @@ async function switchCollect(): Promise<void> {
|
||||
&:hover:not(.active) {
|
||||
background: var(--common-shadow-1);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
box-shadow: 2px 4px 12px var(--common-shadow-4);
|
||||
transform: scale(1.15);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
}
|
||||
|
||||
.dark .tbc-box {
|
||||
|
||||
@@ -225,6 +225,16 @@ async function handleDebug(): Promise<void> {
|
||||
box-shadow: 1px 3px 6px var(--common-shadow-2);
|
||||
color: var(--btn-text);
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.tpr-main-box:hover {
|
||||
box-shadow: 2px 4px 12px var(--common-shadow-4);
|
||||
transform: scale(1.15);
|
||||
}
|
||||
|
||||
.tpr-main-box:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.dark .tpr-main-box {
|
||||
|
||||
Reference in New Issue
Block a user