修复 CSS Module spin 动画::global(spin) 改为本地 @keyframes spin
PostCSS 将 :global(spin) 解析为伪元素 :: 导致 Vercel 构建失败。 改用在每个 CSS Module 中定义本地 @keyframes spin。
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
border: 2px solid rgba(34, 211, 238, 0.18);
|
||||
border-top-color: #22d3ee;
|
||||
border-radius: 999px;
|
||||
animation: :global(spin) 0.8s linear infinite;
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
.root :global(.future-v2-sync-strip) {
|
||||
@@ -1789,3 +1789,5 @@ html.light .root :global(.future-v2-refresh-lock strong) {
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
Reference in New Issue
Block a user