af97173eed
LoginClient 双布局 logo 从 CloudSun 图标+文字改为 /logo.png 图片。 ScanTerminalState 样式精简,LoadingSignal 调整,落地页细节优化。 Tested: tsc --noEmit 通过, npm run build 通过
292 lines
5.8 KiB
CSS
292 lines
5.8 KiB
CSS
/* Scan terminal empty, loading, error, and skeleton signal states. */
|
|
|
|
/* ── Empty state ── */
|
|
.root :global(.scan-empty-state) {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 48px 32px;
|
|
text-align: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.root :global(.scan-empty-icon) {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 14px;
|
|
background: rgba(77, 163, 255, 0.1);
|
|
border: 1px solid rgba(77, 163, 255, 0.16);
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--color-accent-secondary);
|
|
font-size: 20px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.root :global(.scan-empty-title) {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
color: #e8f2ff;
|
|
}
|
|
|
|
.root :global(.scan-empty-copy) {
|
|
max-width: 360px;
|
|
font-size: 14px;
|
|
color: #8fa4c3;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* ── Error state ── */
|
|
.root :global(.scan-error-state) {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 48px 32px;
|
|
text-align: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.root :global(.scan-error-icon) {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 14px;
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
display: grid;
|
|
place-items: center;
|
|
color: #FCA5A5;
|
|
font-size: 20px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.root :global(.scan-error-title) {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
color: #e8f2ff;
|
|
}
|
|
|
|
.root :global(.scan-error-copy) {
|
|
max-width: 360px;
|
|
font-size: 14px;
|
|
color: #8fa4c3;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.root :global(.scan-retry-button) {
|
|
margin-top: 8px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 40px;
|
|
padding: 10px 16px;
|
|
border: 1px solid rgba(77, 163, 255, 0.3);
|
|
border-radius: 12px;
|
|
background: rgba(77, 163, 255, 0.12);
|
|
color: #9ecbff;
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.root :global(.scan-retry-button:hover) {
|
|
background: rgba(77, 163, 255, 0.18);
|
|
border-color: rgba(111, 183, 255, 0.48);
|
|
}
|
|
|
|
.root :global(.scan-loading-state) {
|
|
flex: 1;
|
|
min-height: 520px;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 48px 32px;
|
|
text-align: center;
|
|
}
|
|
|
|
.root :global(.scan-loading-signal) {
|
|
position: relative;
|
|
width: min(100%, 420px);
|
|
display: grid;
|
|
justify-items: center;
|
|
gap: 16px;
|
|
padding: 28px 30px;
|
|
background: transparent;
|
|
}
|
|
|
|
.root :global(.scan-loading-signal.compact) {
|
|
width: min(100%, 340px);
|
|
gap: 12px;
|
|
padding: 18px 20px;
|
|
}
|
|
|
|
.root :global(.scan-loading-spinner-wrapper) {
|
|
position: relative;
|
|
width: 90px;
|
|
height: 90px;
|
|
display: grid;
|
|
place-items: center;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.root :global(.scan-loading-spinner-ring) {
|
|
position: absolute;
|
|
inset: 0;
|
|
border: 1.5px solid transparent;
|
|
border-top-color: var(--color-text-primary);
|
|
border-right-color: var(--color-text-primary);
|
|
border-radius: 50%;
|
|
animation: scan-loading-spin 1s linear infinite;
|
|
}
|
|
|
|
.root :global(.scan-loading-spinner-logo) {
|
|
width: 44px;
|
|
height: 44px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.root :global(.scan-loading-copy-block) {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: grid;
|
|
gap: 7px;
|
|
justify-items: center;
|
|
}
|
|
|
|
.root :global(.scan-loading-copy-block strong) {
|
|
color: var(--color-text-primary);
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.root :global(.scan-loading-copy-block span) {
|
|
max-width: 320px;
|
|
color: var(--color-text-secondary);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
@keyframes scan-loading-spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* ── Welcome onboarding overlay ── */
|
|
.root :global(.scan-welcome-overlay) {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(2, 6, 23, 0.72);
|
|
backdrop-filter: blur(4px);
|
|
animation: fadeIn 0.25s ease;
|
|
padding: 24px;
|
|
}
|
|
|
|
.root :global(.scan-welcome-card) {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
padding: 32px 28px 24px;
|
|
border: 1px solid rgba(77, 163, 255, 0.22);
|
|
border-radius: 24px;
|
|
background: linear-gradient(160deg, rgba(17, 26, 46, 0.98), rgba(11, 18, 32, 0.98));
|
|
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
|
|
text-align: center;
|
|
animation: fadeUpIn 0.3s ease;
|
|
}
|
|
|
|
.root :global(.scan-welcome-steps) {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.root :global(.scan-welcome-dot) {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 999px;
|
|
background: rgba(77, 163, 255, 0.2);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.root :global(.scan-welcome-dot.active) {
|
|
width: 24px;
|
|
background: var(--color-accent-primary);
|
|
}
|
|
|
|
.root :global(.scan-welcome-dot.done) {
|
|
background: rgba(77, 163, 255, 0.5);
|
|
}
|
|
|
|
.root :global(.scan-welcome-icon-wrap) {
|
|
width: 64px;
|
|
height: 64px;
|
|
margin: 0 auto 16px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 18px;
|
|
background: rgba(77, 163, 255, 0.12);
|
|
border: 1px solid rgba(77, 163, 255, 0.18);
|
|
}
|
|
|
|
.root :global(.scan-welcome-icon) {
|
|
color: var(--color-accent-secondary);
|
|
}
|
|
|
|
.root :global(.scan-welcome-title) {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
color: var(--color-text-primary);
|
|
margin: 0 0 8px;
|
|
}
|
|
|
|
.root :global(.scan-welcome-desc) {
|
|
font-size: 14px;
|
|
color: var(--color-text-secondary);
|
|
line-height: 1.6;
|
|
margin: 0 0 24px;
|
|
}
|
|
|
|
.root :global(.scan-welcome-actions) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.root :global(.scan-welcome-skip) {
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--color-text-muted);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
padding: 8px 12px;
|
|
border-radius: 8px;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.root :global(.scan-welcome-skip:hover) {
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes fadeUpIn {
|
|
from { opacity: 0; transform: translateY(12px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|