移除 react

This commit is contained in:
lutinglt
2025-08-05 12:59:23 +08:00
parent 305b2eca0b
commit a1cc1509ce
34 changed files with 9 additions and 33 deletions

39
styles/public/tippy.ts Normal file
View File

@@ -0,0 +1,39 @@
import { animationDown } from "src/core/theme";
import { css, otherThemeVars, themeVars } from "src/types/vars";
// 一些界面内的提示框, 比如克隆按钮, PR信息, Runner信息 等
export const tippyBox = css`
.tippy-box {
margin-top: -3px;
border-radius: 12px;
overflow: hidden;
animation: ${animationDown};
// 边框线同步 github 样式
&[data-theme="default"],
&[data-theme="box-with-header"] {
border: unset;
box-shadow: ${themeVars.github.shadow.floating.small};
}
// 带标题的提示框 (Runner信息)
&[data-theme="box-with-header"] {
.tippy-content {
background-color: ${themeVars.color.menu};
.ui.attached.header {
background-color: ${themeVars.color.body};
}
}
}
// 差异对比中文件路径行右侧的三个点菜单
&[data-theme="menu"] {
.tippy-content {
padding: 0.5rem;
.item {
border-radius: ${otherThemeVars.border.radius};
&:hover {
background-color: ${themeVars.github.control.transparent.bgColor.hover};
}
}
}
}
}
`;