同步字符提示的提示框动画

This commit is contained in:
lutinglt
2025-11-01 14:16:36 +08:00
parent 493657bcb5
commit fede39c6eb
4 changed files with 16 additions and 2 deletions

View File

@@ -1,7 +1,16 @@
import { overlayAppearDown, overlayAppearUp } from "src/core/theme";
import { overlayAppear, overlayAppearDown, overlayAppearUp } from "src/core/theme";
import { css } from "src/types/vars";
export const keyframe = css`
// 出现动画
@keyframes ${overlayAppear} {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
// 向下出现动画
@keyframes ${overlayAppearDown} {
0% {

View File

@@ -1,4 +1,4 @@
import { animationDown } from "src/core/theme";
import { animation, animationDown } from "src/core/theme";
import { css, otherThemeVars, themeVars } from "src/types/vars";
// 一些界面内的提示框, 比如克隆按钮, PR信息, Runner信息 等
@@ -43,6 +43,7 @@ export const tippyBox = css`
}
// 专门用于提示信息的提示框, 比如提交的具体时间, 任务状态等
&[data-theme="tooltip"] {
animation: ${animation};
.tippy-content {
font-size: 12px;
font-weight: 400;