修复 CSS Module spin 动画::global(spin) 改为本地 @keyframes spin
PostCSS 将 :global(spin) 解析为伪元素 :: 导致 Vercel 构建失败。 改用在每个 CSS Module 中定义本地 @keyframes spin。
This commit is contained in:
@@ -358,7 +358,7 @@
|
||||
}
|
||||
|
||||
.spin {
|
||||
animation: :global(spin) 0.9s linear infinite;
|
||||
animation: spin 0.9s linear infinite;
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
@@ -483,3 +483,5 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
@@ -544,7 +544,7 @@
|
||||
border: 2px solid rgba(34, 211, 238, 0.1);
|
||||
border-top-color: var(--accent-cyan);
|
||||
border-radius: 50%;
|
||||
animation: :global(spin) 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
||||
animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
||||
box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
|
||||
}
|
||||
|
||||
@@ -836,3 +836,5 @@
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
}
|
||||
|
||||
.root :global(.future-refresh-btn.spinning svg) {
|
||||
animation: :global(spin) 1s linear infinite;
|
||||
animation: spin 1s linear infinite;
|
||||
color: var(--accent-cyan);
|
||||
}
|
||||
|
||||
@@ -295,3 +295,5 @@
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
color: var(--accent-cyan);
|
||||
}
|
||||
.root :global(.refresh-btn.spinning) {
|
||||
animation: :global(spin) 1s linear infinite;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
.root :global(.locale-switch) {
|
||||
@@ -817,3 +817,5 @@
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
border-radius: 999px;
|
||||
border: 2px solid rgba(34, 211, 238, 0.22);
|
||||
border-top-color: rgba(34, 211, 238, 0.92);
|
||||
animation: :global(spin) 0.8s linear infinite;
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
.root :global(.panel-meta) {
|
||||
@@ -1058,3 +1058,5 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
@@ -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); } }
|
||||
|
||||
@@ -648,7 +648,7 @@
|
||||
}
|
||||
|
||||
.root :global(.scan-ai-city-icon-button .spin) {
|
||||
animation: :global(spin) 1s linear infinite;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
.root :global(.scan-ai-city-collapse) {
|
||||
@@ -1289,3 +1289,5 @@
|
||||
font-weight: 600;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
}
|
||||
|
||||
.root :global(.scan-status-chip .spin) {
|
||||
animation: :global(spin) 1s linear infinite;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
.root :global(.scan-table-shell) {
|
||||
@@ -518,3 +518,5 @@
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
@@ -280,5 +280,7 @@
|
||||
}
|
||||
|
||||
.root :global(.scan-ghost-button .spin) {
|
||||
animation: :global(spin) 1s linear infinite;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
Reference in New Issue
Block a user