refactor: 清理未使用参数、移除死代码、聚焦电商核心模块
主要变更概述: ================ 1. 清理未使用的函数参数 (TypeScript noUnusedParameters) ------------------------------------------------------ - AppShell.tsx: 移除未使用的 backendHealth prop 及 ServerConnectionHealth 导入 - canvasUtils.ts: 移除 resolveWorkflowVideoModel 的 workflowModel 参数 - canvasWorkflowDeserialize.ts: 同步更新调用方 - CanvasPage.tsx: 移除 resolveWorkflowVideoModel 未使用导入 - HomePage.tsx: 移除 onOpenTokenMonitor、onOpenImageTool 未使用 props - ToolboxSection.tsx: 移除 onOpenImageTool 未使用 prop 及 WebImageWorkbenchTool 类型导入 - ScriptTokensPage.tsx: 移除 formatReportMarkdown 的 script 参数,更新 2 处调用 - TokenUsagePage.tsx: 移除 onOpenImageTool、onSelectView 未使用 props - WorkbenchPage.tsx: 移除 renderComposerToolbar 的 showStop 参数,更新 2 处调用 2. 移除未使用的模块和死代码 -------------------------- 删除以下未在电商模块中使用的功能模块: - 画布模块 (canvas/): CanvasPage, canvasUtils, canvasWorkflow* 等 - 主页模块 (home/): HomePage, ToolboxSection, WelcomeSplash 等 - 工作台模块 (workbench/): WorkbenchPage, ConversationSidebar 等 - 社区模块 (community/, community-review/) - 数字人模块 (digital-human/) - 图片工作台 (image-workbench/) - 其他独立工具页: agent, assets, beta-applications, character-mix, compliance, dialog-generator, more, profile, provider-health, report, resolution-upscale, script-tokens, settings, size-template, subtitle-removal, watermark-removal 3. 移除未使用的公共组件 ---------------------- - AnimatedPanel, BeforeAfterCompare, BetaApplicationModal - CookieConsentBanner, DropZone, EmptyState, NotFoundPage - NotificationCenter, OnboardingTour, OptimizedImage - PageTransition, RechargeModal, ShellIcon, Skeleton - StudioToolLayout, TaskStatusBar, WorkspacePageShell 4. 移除未使用的 API 客户端 -------------------------- - betaApplicationClient, communityClient, conversationClient - draftClient, modelCapabilitiesClient, notificationClient - projectTaskClient, providerHealthClient, publicConfigClient - referenceUploadService, reportClient, scriptEvalClient - uploadWithProgress 5. 移除未使用的工具函数和 hooks ------------------------------- - utils/: imageModelVisibility, mentionTrigger, modelOptions, ossImageOptimize, toolPageUtils - hooks/: useGenerationStatus, useScrollEntrance - scripts/: 所有分析脚本 (check-governance, dynamic-analysis 等) 6. 移除未使用的样式文件 ---------------------- 删除与已移除模块对应的 CSS 文件,保留电商模块专用样式 7. 新增电商模块功能文件 ---------------------- + src/api/generationRecordClient.ts (生成记录客户端) + src/features/ecommerce/ecommerceGenerationPersistence.ts (生成持久化) 验证: - TypeScript 编译 (tsc --noEmit --noUnusedParameters) 零错误通过 - 所有保留文件的功能完整性未受影响
This commit is contained in:
@@ -1,471 +0,0 @@
|
||||
/* ── Beta Application Modal ── */
|
||||
/* Word-document style: paper-white panel, larger serif-ish typography, clear form fields */
|
||||
|
||||
.beta-application-modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1000;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.beta-application-modal__backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border: 0;
|
||||
background: rgba(0, 0, 0, 0.58);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* ── Panel: paper-like document ── */
|
||||
.beta-application-modal__panel {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: min(800px, 94vw);
|
||||
max-height: 90vh;
|
||||
overflow: hidden;
|
||||
border: 1px solid #d9d5cf;
|
||||
border-radius: 4px;
|
||||
background: #faf8f4;
|
||||
color: #1e1e1e;
|
||||
box-shadow:
|
||||
0 2px 0 #e8e4dc,
|
||||
0 4px 0 #d9d5cf,
|
||||
0 8px 32px rgba(0, 0, 0, 0.2),
|
||||
0 24px 80px rgba(0, 0, 0, 0.12);
|
||||
font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
/* ── Header ── */
|
||||
.beta-modal-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 28px 36px 20px;
|
||||
border-bottom: 2px solid #1e1e1e;
|
||||
flex-shrink: 0;
|
||||
background: #f5f1ea;
|
||||
}
|
||||
|
||||
.beta-modal-header__left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.beta-modal-header__icon {
|
||||
font-size: 28px;
|
||||
color: #166534;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.beta-modal-header h2 {
|
||||
margin: 0;
|
||||
font-size: 22px;
|
||||
font-weight: 900;
|
||||
color: #1e1e1e;
|
||||
letter-spacing: 1px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.beta-modal-header__subtitle {
|
||||
margin: 2px 0 0;
|
||||
font-size: 13px;
|
||||
color: #6b7280;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.beta-modal-header__subtitle strong {
|
||||
color: #166534;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.beta-modal-header__close {
|
||||
display: grid;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
place-items: center;
|
||||
border: 1px solid #d5cfc4;
|
||||
border-radius: 4px;
|
||||
background: #f5f1ea;
|
||||
color: #8c8276;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
flex-shrink: 0;
|
||||
transition: background 120ms ease, color 120ms ease;
|
||||
}
|
||||
|
||||
.beta-modal-header__close:hover {
|
||||
background: #ede6da;
|
||||
color: #1e1e1e;
|
||||
}
|
||||
|
||||
.beta-modal-header__close:disabled,
|
||||
.beta-modal-footer__btn:disabled {
|
||||
opacity: 0.58;
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
/* ── Scrollable body ── */
|
||||
.beta-modal-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 32px 40px;
|
||||
background: #faf8f4;
|
||||
}
|
||||
|
||||
/* ── Document sections ── */
|
||||
.beta-doc-section {
|
||||
margin-bottom: 28px;
|
||||
padding-bottom: 28px;
|
||||
border-bottom: 1px dashed #d9d2c5;
|
||||
}
|
||||
|
||||
.beta-doc-section:last-of-type {
|
||||
border-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.beta-doc-section__title {
|
||||
margin: 0 0 18px;
|
||||
font-size: 16px;
|
||||
font-weight: 900;
|
||||
color: #1e1e1e;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.beta-required {
|
||||
color: #dc2626;
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.beta-doc-section__desc {
|
||||
margin: 0 0 12px;
|
||||
font-size: 14px;
|
||||
color: #4b5563;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
/* ── Single-column grid for form fields ── */
|
||||
.beta-doc-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.beta-doc-grid--two {
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
/* ── Text field (Word underline style) ── */
|
||||
.beta-text-field {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.beta-text-field__label {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: #1e1e1e;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.beta-text-field__label::after {
|
||||
content: ":";
|
||||
}
|
||||
|
||||
.beta-text-field__input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #c5beb2;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
padding: 2px 0;
|
||||
font-size: 14px;
|
||||
font-family: inherit;
|
||||
color: #1e1e1e;
|
||||
line-height: 1.8;
|
||||
transition: border-color 140ms ease;
|
||||
}
|
||||
|
||||
.beta-text-field__input::placeholder {
|
||||
color: #c4c4c4;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.beta-text-field__input:focus {
|
||||
border-bottom-color: #166534;
|
||||
border-bottom-width: 2px;
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
|
||||
.beta-text-field__input[readonly] {
|
||||
color: #6b7280;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* ── Form group (spans full row when needed) ── */
|
||||
.beta-form-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.beta-form-group--full {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.beta-form-group__label {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: #1e1e1e;
|
||||
}
|
||||
|
||||
.beta-form-group__label::after {
|
||||
content: ":";
|
||||
}
|
||||
|
||||
/* ── Radio group ── */
|
||||
.beta-radio-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px 14px;
|
||||
}
|
||||
|
||||
.beta-radio {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: #374151;
|
||||
padding: 3px 0;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.beta-radio input[type="radio"] {
|
||||
appearance: none;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: 2px solid #b8b0a4;
|
||||
border-radius: 50%;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
transition: border-color 120ms ease, background 120ms ease;
|
||||
}
|
||||
|
||||
.beta-radio input[type="radio"]:checked {
|
||||
border-color: #166534;
|
||||
background: #166534;
|
||||
box-shadow: inset 0 0 0 3px #ffffff;
|
||||
}
|
||||
|
||||
.beta-radio:hover input[type="radio"] {
|
||||
border-color: #166534;
|
||||
}
|
||||
|
||||
.beta-radio span {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* ── Checkbox group ── */
|
||||
.beta-checkbox-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px 14px;
|
||||
}
|
||||
|
||||
.beta-checkbox {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: #374151;
|
||||
padding: 3px 0;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.beta-checkbox input[type="checkbox"] {
|
||||
appearance: none;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: 2px solid #b8b0a4;
|
||||
border-radius: 3px;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
transition: border-color 120ms ease, background 120ms ease;
|
||||
}
|
||||
|
||||
.beta-checkbox input[type="checkbox"]:checked {
|
||||
border-color: #166534;
|
||||
background: #166534;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
|
||||
background-size: 10px;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.beta-checkbox:hover input[type="checkbox"] {
|
||||
border-color: #166534;
|
||||
}
|
||||
|
||||
.beta-checkbox span {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* ── Textarea ── */
|
||||
.beta-textarea {
|
||||
width: 100%;
|
||||
min-height: 140px;
|
||||
resize: vertical;
|
||||
border: 1px solid #c5beb2;
|
||||
border-radius: 4px;
|
||||
outline: none;
|
||||
background: #ffffff;
|
||||
padding: 12px 14px;
|
||||
font-size: 14px;
|
||||
font-family: inherit;
|
||||
color: #1e1e1e;
|
||||
line-height: 1.8;
|
||||
transition: border-color 140ms ease;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.beta-textarea::placeholder {
|
||||
color: #c4c4c4;
|
||||
}
|
||||
|
||||
.beta-textarea:focus {
|
||||
border-color: #166534;
|
||||
box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.1);
|
||||
}
|
||||
|
||||
/* ── Rules list ── */
|
||||
.beta-rules-list {
|
||||
margin: 0 0 18px;
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
.beta-rules-list li {
|
||||
font-size: 14px;
|
||||
color: #374151;
|
||||
line-height: 1.9;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.beta-rules-list li strong {
|
||||
color: #166534;
|
||||
}
|
||||
|
||||
/* ── Agreement checkbox row ── */
|
||||
.beta-agree-row {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
margin-bottom: 18px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: #166534;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.beta-agree-row input[type="checkbox"] {
|
||||
appearance: none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: 2px solid #b8b0a4;
|
||||
border-radius: 3px;
|
||||
margin-top: 2px;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
transition: border-color 120ms ease, background 120ms ease;
|
||||
}
|
||||
|
||||
.beta-agree-row input[type="checkbox"]:checked {
|
||||
border-color: #166534;
|
||||
background: #166534;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
|
||||
background-size: 12px;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
/* ── Footer ── */
|
||||
.beta-modal-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
padding: 16px 36px 20px;
|
||||
border-top: 1px solid #e0dbd2;
|
||||
flex-shrink: 0;
|
||||
background: #f5f1ea;
|
||||
}
|
||||
|
||||
.beta-modal-footer__message {
|
||||
flex: 1;
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.beta-modal-footer__message--success {
|
||||
color: #166534;
|
||||
}
|
||||
|
||||
.beta-modal-footer__message--error {
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.beta-modal-footer__btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 40px;
|
||||
padding: 0 24px;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: opacity 120ms ease, transform 120ms ease;
|
||||
}
|
||||
|
||||
.beta-modal-footer__btn:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
|
||||
.beta-modal-footer__btn--secondary {
|
||||
background: #e8e3d9;
|
||||
color: #5c5348;
|
||||
}
|
||||
|
||||
.beta-modal-footer__btn--secondary:hover {
|
||||
background: #dbd4c7;
|
||||
}
|
||||
|
||||
.beta-modal-footer__btn--primary {
|
||||
background: #166534;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.beta-modal-footer__btn--primary:hover {
|
||||
background: #14532d;
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
.dropzone {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
padding: 28px 16px;
|
||||
border: 2px dashed var(--border-weak, #333);
|
||||
border-radius: var(--radius-lg, 14px);
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s ease, background-color 0.2s ease;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dropzone:hover {
|
||||
border-color: var(--accent, #0d9488);
|
||||
background: color-mix(in srgb, var(--accent, #0d9488) 5%, transparent);
|
||||
}
|
||||
|
||||
.dropzone--active {
|
||||
border-color: var(--accent, #0d9488);
|
||||
background: color-mix(in srgb, var(--accent, #0d9488) 10%, transparent);
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.dropzone__label {
|
||||
font-size: 14px;
|
||||
color: var(--text-primary, #e5e5e5);
|
||||
}
|
||||
|
||||
.dropzone__hint {
|
||||
font-size: 12px;
|
||||
color: var(--text-tertiary, #888);
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
.empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
padding: 48px 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.empty-state__illustration {
|
||||
color: var(--fg-soft, #888);
|
||||
margin-bottom: 8px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.empty-state__title {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: var(--fg-body, #e0e0e0);
|
||||
}
|
||||
|
||||
.empty-state__desc {
|
||||
font-size: 13px;
|
||||
color: var(--fg-soft, #888);
|
||||
max-width: 280px;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.empty-state__action {
|
||||
margin-top: 8px;
|
||||
padding: 8px 20px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
background: var(--accent, #0d9488);
|
||||
color: #fff;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, transform 0.1s;
|
||||
}
|
||||
|
||||
.empty-state__action:hover {
|
||||
background: var(--accent-hover, #0f766e);
|
||||
}
|
||||
|
||||
.empty-state__action:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
@@ -1,317 +0,0 @@
|
||||
/* ─── Onboarding Tour ──────────────────────────────────────── */
|
||||
|
||||
.onboarding-root {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 10000;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
transition: opacity 0.35s ease;
|
||||
font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
}
|
||||
|
||||
.onboarding-root.is-visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* ─── Overlay ──────────────────────────────────────────────── */
|
||||
|
||||
.onboarding-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.64);
|
||||
pointer-events: auto;
|
||||
transition: clip-path 0.32s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
will-change: clip-path;
|
||||
}
|
||||
|
||||
/* During interactive steps, let clicks pass through to dropdowns etc. */
|
||||
.onboarding-overlay--passive {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Tooltip also lets clicks through during interactive steps, except for buttons */
|
||||
.onboarding-tooltip--passive {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.onboarding-tooltip--passive .onboarding-tooltip__btn {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
/* ─── Spotlight ring ───────────────────────────────────────── */
|
||||
|
||||
.onboarding-spotlight {
|
||||
position: fixed;
|
||||
z-index: 10001;
|
||||
border-radius: 10px;
|
||||
border: 2px solid rgba(0, 255, 136, 0.5);
|
||||
box-shadow:
|
||||
0 0 22px rgba(0, 255, 136, 0.18),
|
||||
0 0 50px rgba(0, 255, 136, 0.06),
|
||||
inset 0 0 0 1px rgba(0, 255, 136, 0.05);
|
||||
pointer-events: none;
|
||||
transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1),
|
||||
top 0.32s cubic-bezier(0.4, 0, 0.2, 1),
|
||||
width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
|
||||
height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.onboarding-spotlight__pulse {
|
||||
position: absolute;
|
||||
inset: -4px;
|
||||
border-radius: 14px;
|
||||
border: 1px solid rgba(0, 255, 136, 0.3);
|
||||
animation: ob-pulse 2.4s ease-out infinite;
|
||||
}
|
||||
|
||||
.onboarding-spotlight__pulse--delay {
|
||||
animation-delay: 1.2s;
|
||||
}
|
||||
|
||||
@keyframes ob-pulse {
|
||||
0% { transform: scale(1); opacity: 0.6; }
|
||||
100% { transform: scale(1.08); opacity: 0; }
|
||||
}
|
||||
|
||||
/* ─── Connector SVG ────────────────────────────────────────── */
|
||||
|
||||
.onboarding-connector {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 10002;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.onboarding-connector__path {
|
||||
animation: ob-dash 1.6s linear infinite;
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
|
||||
@keyframes ob-dash {
|
||||
to { stroke-dashoffset: -24; }
|
||||
}
|
||||
|
||||
.onboarding-connector__dot {
|
||||
animation: ob-dot-pulse 1.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes ob-dot-pulse {
|
||||
0%, 100% { r: 4; opacity: 0.7; }
|
||||
50% { r: 7; opacity: 1; }
|
||||
}
|
||||
|
||||
/* ─── Tooltip card ─────────────────────────────────────────── */
|
||||
|
||||
.onboarding-tooltip {
|
||||
position: fixed;
|
||||
z-index: 10003;
|
||||
width: min(92vw, 360px);
|
||||
padding: 20px 22px 18px;
|
||||
border-radius: 16px;
|
||||
background: var(--bg-elevated, #1e1e1e);
|
||||
border: 1px solid var(--border-subtle, #333);
|
||||
box-shadow:
|
||||
0 12px 40px rgba(0, 0, 0, 0.5),
|
||||
0 0 0 1px rgba(255, 255, 255, 0.03) inset,
|
||||
0 0 60px rgba(0, 255, 136, 0.04);
|
||||
pointer-events: auto;
|
||||
transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1),
|
||||
top 0.32s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.onboarding-tooltip--pop {
|
||||
animation: ob-pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
}
|
||||
|
||||
@keyframes ob-pop-in {
|
||||
from { opacity: 0; transform: scale(0.92) translateY(6px); }
|
||||
to { opacity: 1; transform: scale(1) translateY(0); }
|
||||
}
|
||||
|
||||
/* Tooltip arrow — CSS triangle pointing toward target */
|
||||
.onboarding-tooltip__arrow {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
display: none; /* replaced by SVG connector; fallback for simple cases */
|
||||
}
|
||||
|
||||
/* ─── Tooltip head ─────────────────────────────────────────── */
|
||||
|
||||
.onboarding-tooltip__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.onboarding-tooltip__phase-badge {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
padding: 2px 10px;
|
||||
border-radius: 999px;
|
||||
background: rgba(var(--accent-rgb, 0, 255, 136), 0.12);
|
||||
color: var(--accent, #00ff88);
|
||||
}
|
||||
|
||||
.onboarding-tooltip__counter {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--fg-muted, #777);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* ─── Tooltip body ─────────────────────────────────────────── */
|
||||
|
||||
.onboarding-tooltip__title {
|
||||
display: block;
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
color: var(--fg-body, #e5e5e5);
|
||||
margin-bottom: 6px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.onboarding-tooltip__desc {
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
color: var(--fg-muted, #999);
|
||||
margin: 0 0 4px;
|
||||
}
|
||||
|
||||
.onboarding-tooltip__action-hint {
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
color: var(--accent, #00ff88);
|
||||
margin: 8px 0 4px;
|
||||
font-weight: 600;
|
||||
animation: ob-hint-blink 1.8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes ob-hint-blink {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
}
|
||||
|
||||
/* ─── Tooltip actions ──────────────────────────────────────── */
|
||||
|
||||
.onboarding-tooltip__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.onboarding-tooltip__btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 7px 16px;
|
||||
border-radius: 8px;
|
||||
border: none;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s ease, opacity 0.15s ease, transform 0.12s ease;
|
||||
font-family: inherit;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.onboarding-tooltip__btn:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
|
||||
.onboarding-tooltip__btn--primary {
|
||||
background: var(--accent, #00ff88);
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.onboarding-tooltip__btn--primary:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.onboarding-tooltip__btn--ghost {
|
||||
background: transparent;
|
||||
color: var(--fg-muted, #888);
|
||||
border: 1px solid var(--border-subtle, #444);
|
||||
}
|
||||
|
||||
.onboarding-tooltip__btn--ghost:hover {
|
||||
color: var(--fg-body, #e5e5e5);
|
||||
border-color: var(--fg-muted, #888);
|
||||
}
|
||||
|
||||
.onboarding-tooltip__wait-hint {
|
||||
font-size: 11px;
|
||||
color: var(--fg-muted, #777);
|
||||
font-style: italic;
|
||||
animation: ob-hint-blink 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* ─── Progress bar (bottom-right) ──────────────────────────── */
|
||||
|
||||
.onboarding-progress {
|
||||
position: fixed;
|
||||
z-index: 10002;
|
||||
bottom: 24px;
|
||||
right: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 40px;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.onboarding-progress__phase {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.onboarding-progress__dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--border-subtle, #444);
|
||||
transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
.onboarding-progress__dot.is-active {
|
||||
background: var(--accent, #00ff88);
|
||||
transform: scale(1.4);
|
||||
box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
|
||||
}
|
||||
|
||||
.onboarding-progress__dot.is-done {
|
||||
background: rgba(var(--accent-rgb, 0, 255, 136), 0.5);
|
||||
}
|
||||
|
||||
.onboarding-progress__phase span {
|
||||
font-size: 10px;
|
||||
color: var(--fg-muted, #666);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.onboarding-progress__phase .is-active + span,
|
||||
.onboarding-progress__phase .is-done + span {
|
||||
color: var(--fg-body, #ccc);
|
||||
}
|
||||
|
||||
/* ─── Responsive ───────────────────────────────────────────── */
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.onboarding-tooltip {
|
||||
width: calc(100vw - 20px);
|
||||
left: 10px !important;
|
||||
}
|
||||
|
||||
.onboarding-progress {
|
||||
gap: 20px;
|
||||
}
|
||||
}
|
||||
@@ -1,501 +0,0 @@
|
||||
/* === Recharge Modal === */
|
||||
.recharge-modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1200;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.recharge-modal__backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border: 0;
|
||||
background: rgb(0 0 0 / 72%);
|
||||
cursor: pointer;
|
||||
backdrop-filter: blur(5px);
|
||||
}
|
||||
|
||||
@keyframes rechargeModalIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(12px) scale(0.98);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
.recharge-modal__panel {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
gap: 20px;
|
||||
width: min(1300px, 100%);
|
||||
max-height: calc(100vh - 32px);
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border-subtle, rgb(255 255 255 / 10%));
|
||||
border-radius: 20px;
|
||||
background: var(--bg-surface, #171a1f);
|
||||
color: var(--fg-body, #edf2f7);
|
||||
padding: 28px;
|
||||
box-shadow: 0 28px 80px rgb(0 0 0 / 44%);
|
||||
animation: rechargeModalIn 180ms ease both;
|
||||
scrollbar-color: rgba(var(--accent-rgb), 0.36) transparent;
|
||||
}
|
||||
|
||||
.recharge-modal__header {
|
||||
position: relative;
|
||||
display: block;
|
||||
padding: 0 168px 18px;
|
||||
border-bottom: 1px solid var(--border-weak, rgb(255 255 255 / 7%));
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.recharge-modal__header > div {
|
||||
max-width: 720px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.recharge-modal__eyebrow {
|
||||
color: var(--accent, #34d399);
|
||||
font-size: 12px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.recharge-modal__header h2 {
|
||||
margin: 4px 0 6px;
|
||||
font-size: 22px;
|
||||
font-weight: 900;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.recharge-modal__header p {
|
||||
margin: 0;
|
||||
color: var(--fg-muted, #9ba7b7);
|
||||
font-size: 13px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.recharge-modal__balance {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 48px;
|
||||
border: 1px solid rgba(var(--accent-rgb), 0.28);
|
||||
border-radius: 999px;
|
||||
background: rgba(var(--accent-rgb), 0.1);
|
||||
color: var(--fg-body, #edf2f7);
|
||||
padding: 8px 12px;
|
||||
font-size: 12px;
|
||||
font-weight: 850;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.recharge-modal__close {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 9px;
|
||||
background: transparent;
|
||||
color: var(--fg-muted, #9ba7b7);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
background 0.15s,
|
||||
border-color 0.15s,
|
||||
color 0.15s;
|
||||
}
|
||||
|
||||
.recharge-modal__close:hover {
|
||||
border-color: var(--border-subtle, rgb(255 255 255 / 10%));
|
||||
background: var(--bg-hover, rgb(255 255 255 / 7%));
|
||||
color: var(--fg-body, #edf2f7);
|
||||
}
|
||||
|
||||
.recharge-modal__promo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
border: 1px solid rgba(var(--accent-rgb), 0.24);
|
||||
border-radius: 14px;
|
||||
background:
|
||||
linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.06)),
|
||||
var(--bg-elevated, #20242b);
|
||||
color: var(--fg-muted, #9ba7b7);
|
||||
padding: 12px 16px;
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.recharge-modal__promo strong {
|
||||
color: var(--accent, #34d399);
|
||||
font-weight: 950;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.recharge-modal__audience-tabs {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
border: 1px solid var(--border-subtle, rgb(255 255 255 / 10%));
|
||||
border-radius: 12px;
|
||||
background: var(--bg-inset, rgb(0 0 0 / 18%));
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
.recharge-modal__audience-tabs button {
|
||||
min-height: 38px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 9px;
|
||||
background: transparent;
|
||||
color: var(--fg-muted, #9ba7b7);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.recharge-modal__audience-tabs button:hover {
|
||||
border-color: var(--border-subtle, rgb(255 255 255 / 10%));
|
||||
background: var(--bg-hover, rgb(255 255 255 / 7%));
|
||||
color: var(--fg-body, #edf2f7);
|
||||
}
|
||||
|
||||
.recharge-modal__audience-tabs button.is-active {
|
||||
border-color: rgba(var(--accent-rgb), 0.48);
|
||||
background: rgba(var(--accent-rgb), 0.16);
|
||||
color: var(--accent, #34d399);
|
||||
}
|
||||
|
||||
.recharge-modal__grid {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.recharge-modal__grid[data-audience="personal"] {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.recharge-modal__grid[data-audience="enterprise"] {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.recharge-modal__card {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
min-height: 390px;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
border: 1px solid var(--border-subtle, rgb(255 255 255 / 10%));
|
||||
border-radius: 14px;
|
||||
background: var(--bg-elevated, #20242b);
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.recharge-modal__card.is-selected {
|
||||
border-color: rgba(var(--accent-rgb), 0.55);
|
||||
box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.16);
|
||||
}
|
||||
|
||||
.recharge-modal__badge {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
border-radius: 999px;
|
||||
background: var(--accent, #34d399);
|
||||
color: #07110d;
|
||||
padding: 4px 9px;
|
||||
font-size: 11px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.recharge-modal__card-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding-right: 84px;
|
||||
}
|
||||
|
||||
.recharge-modal__card-icon {
|
||||
display: grid;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
min-width: 42px;
|
||||
place-items: center;
|
||||
border-radius: 12px;
|
||||
background: rgba(var(--accent-rgb), 0.12);
|
||||
color: var(--accent, #34d399);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.recharge-modal__card h3 {
|
||||
margin: 0;
|
||||
font-size: 17px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.recharge-modal__card-head span:not(.recharge-modal__card-icon) {
|
||||
color: var(--fg-muted, #9ba7b7);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.recharge-modal__price strong {
|
||||
color: var(--fg-body, #edf2f7);
|
||||
font-size: 25px;
|
||||
font-weight: 950;
|
||||
}
|
||||
|
||||
.recharge-modal__period {
|
||||
width: fit-content;
|
||||
border: 1px solid rgba(var(--accent-rgb), 0.26);
|
||||
border-radius: 999px;
|
||||
background: rgba(var(--accent-rgb), 0.1);
|
||||
color: var(--accent, #34d399);
|
||||
padding: 4px 9px;
|
||||
font-size: 12px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.recharge-modal__grant {
|
||||
margin: 0;
|
||||
border-radius: 10px;
|
||||
background: var(--bg-inset, rgb(0 0 0 / 18%));
|
||||
color: var(--fg-muted, #9ba7b7);
|
||||
padding: 10px 12px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.recharge-modal__diff-label {
|
||||
width: fit-content;
|
||||
color: var(--fg-body, #edf2f7);
|
||||
font-size: 12px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.recharge-modal__features {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
height: 92px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-right: 6px;
|
||||
overflow-y: auto;
|
||||
list-style: none;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-width: none;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
.recharge-modal__features::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.recharge-modal__features li {
|
||||
display: grid;
|
||||
grid-template-columns: 14px minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
color: var(--fg-muted, #9ba7b7);
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.recharge-modal__features .anticon {
|
||||
margin-top: 2px;
|
||||
color: var(--accent, #34d399);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.recharge-modal__buy {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: auto;
|
||||
min-height: 38px;
|
||||
border: 0;
|
||||
border-radius: 10px;
|
||||
background: var(--accent, #34d399);
|
||||
color: #07110d;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.recharge-modal__buy.is-selected {
|
||||
box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.2), 0 10px 24px rgba(var(--accent-rgb), 0.18);
|
||||
}
|
||||
|
||||
.recharge-modal__buy:hover {
|
||||
filter: brightness(1.05);
|
||||
}
|
||||
|
||||
.recharge-modal__rules {
|
||||
border: 1px solid var(--border-subtle, rgb(255 255 255 / 10%));
|
||||
border-radius: 14px;
|
||||
background: var(--bg-elevated, #20242b);
|
||||
padding: 16px 18px;
|
||||
}
|
||||
|
||||
.recharge-modal__rules h3 {
|
||||
margin: 0 0 10px;
|
||||
font-size: 15px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.recharge-modal__rules ol {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
padding-left: 20px;
|
||||
color: var(--fg-muted, #9ba7b7);
|
||||
font-size: 12px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.recharge-modal__checkout {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
border: 1px solid rgba(var(--accent-rgb), 0.26);
|
||||
border-radius: 14px;
|
||||
background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.05));
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.recharge-modal__checkout-eyebrow {
|
||||
color: var(--accent, #34d399);
|
||||
font-size: 12px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.recharge-modal__checkout h3,
|
||||
.recharge-modal__checkout p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.recharge-modal__checkout h3 {
|
||||
margin-top: 4px;
|
||||
color: var(--fg-body, #edf2f7);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.recharge-modal__checkout p {
|
||||
color: var(--fg-muted, #9ba7b7);
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.recharge-modal__payment-methods {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.recharge-modal__payment-methods button {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
min-height: 68px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--border-subtle, rgb(255 255 255 / 10%));
|
||||
border-radius: 12px;
|
||||
background: var(--bg-inset, rgb(0 0 0 / 18%));
|
||||
color: var(--fg-body, #edf2f7);
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.recharge-modal__payment-methods button.is-active {
|
||||
border-color: rgba(var(--accent-rgb), 0.56);
|
||||
background: rgba(var(--accent-rgb), 0.14);
|
||||
}
|
||||
|
||||
.recharge-modal__payment-methods span {
|
||||
color: var(--fg-muted, #9ba7b7);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.recharge-modal__pay {
|
||||
min-height: 42px;
|
||||
border: 0;
|
||||
border-radius: 12px;
|
||||
background: var(--accent, #34d399);
|
||||
color: #07110d;
|
||||
cursor: pointer;
|
||||
font-weight: 950;
|
||||
}
|
||||
|
||||
.recharge-modal__pay:disabled {
|
||||
cursor: wait;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.recharge-modal__order {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--border-subtle, rgb(255 255 255 / 10%));
|
||||
border-radius: 12px;
|
||||
background: var(--bg-inset, rgb(0 0 0 / 18%));
|
||||
color: var(--fg-muted, #9ba7b7);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.recharge-modal__order strong,
|
||||
.recharge-modal__order a {
|
||||
color: var(--accent, #34d399);
|
||||
}
|
||||
|
||||
.recharge-modal__order img {
|
||||
width: 160px;
|
||||
max-width: 100%;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.recharge-modal__grid[data-audience="personal"],
|
||||
.recharge-modal__grid[data-audience="enterprise"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.recharge-modal__payment-methods {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.recharge-modal {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.recharge-modal__panel {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.recharge-modal__header {
|
||||
padding: 0 40px 16px;
|
||||
}
|
||||
|
||||
.recharge-modal__balance {
|
||||
position: static;
|
||||
display: inline-flex;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.recharge-modal__promo {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
Vendored
-56
@@ -1,56 +0,0 @@
|
||||
@keyframes skeleton-shimmer {
|
||||
0% { background-position: 120% 0; }
|
||||
100% { background-position: -120% 0; }
|
||||
}
|
||||
|
||||
.skeleton-shimmer {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(255, 255, 255, 0.04),
|
||||
rgba(255, 255, 255, 0.1),
|
||||
rgba(255, 255, 255, 0.04)
|
||||
);
|
||||
background-size: 220% 100%;
|
||||
animation: skeleton-shimmer 1.2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.skeleton-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
border-radius: var(--radius-lg, 14px);
|
||||
background: var(--bg-elevated, #222);
|
||||
}
|
||||
|
||||
.skeleton-card__thumb {
|
||||
width: 100%;
|
||||
aspect-ratio: 4 / 3;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.skeleton-card__body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.skeleton-card__title {
|
||||
width: 60%;
|
||||
height: 14px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.skeleton-card__desc {
|
||||
width: 85%;
|
||||
height: 12px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.skeleton-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
||||
gap: 16px;
|
||||
padding: 16px;
|
||||
}
|
||||
Reference in New Issue
Block a user