/home/altere25/.trash/wp-to-sanity-migration.2
Edit: /home/altere25/.trash/wp-to-sanity-migration.2/assets\css\admin.css (12113B)
/**
* Altered Digital Migration — admin styles
*
* Palette:
* --ad-bg: #0f172a (slate-900)
* --ad-primary: #4f46e5 (indigo-600)
* --ad-accent: #06b6d4 (cyan-500)
* --ad-success: #10b981 (emerald-500)
* --ad-warning: #f59e0b (amber-500)
* --ad-danger: #ef4444 (red-500)
* --ad-muted: #64748b (slate-500)
*
* @package AlteredDigitalMigration
*/
:root {
--ad-bg: #0f172a;
--ad-primary: #4f46e5;
--ad-accent: #06b6d4;
--ad-success: #10b981;
--ad-warning: #f59e0b;
--ad-danger: #ef4444;
--ad-muted: #64748b;
}
/* Meta Box */
.ad-meta-box,
.wp-to-sanity-meta-box {
padding: 10px;
}
.ad-meta-box .status-badge,
.wp-to-sanity-meta-box .status-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-weight: 500;
font-size: 13px;
background: var(--ad-muted);
color: #fff;
}
.ad-meta-box .status-badge.success,
.wp-to-sanity-meta-box .status-badge.success {
background: #d1fae5;
color: #065f46;
}
.ad-meta-box .status-badge.error,
.ad-meta-box .status-badge.failed,
.wp-to-sanity-meta-box .status-badge.error,
.wp-to-sanity-meta-box .status-badge.failed {
background: #fee2e2;
color: #991b1b;
}
.ad-meta-box .status-badge.pending,
.wp-to-sanity-meta-box .status-badge.pending {
background: #fef3c7;
color: #92400e;
}
.ad-meta-box .error-message {
color: var(--ad-danger);
font-size: 12px;
margin-top: 6px;
}
/* Top-level menu icon color (dashicons-migrate inherits) */
#adminmenu .toplevel_page_wp-to-sanity .wp-menu-image:before {
color: var(--ad-accent);
}
/* Progress dashboard */
.ad-progress-summary {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
margin: 16px 0;
}
.ad-stat-card {
background: #fff;
border: 1px solid #e2e8f0;
border-left: 4px solid var(--ad-primary);
border-radius: 6px;
padding: 14px 16px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.ad-stat-card .ad-stat-num {
font-size: 24px;
font-weight: 600;
color: var(--ad-bg);
line-height: 1.1;
}
.ad-stat-card .ad-stat-label {
font-size: 12px;
color: var(--ad-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
margin-top: 4px;
}
.ad-progress-bar-wrap {
display: flex;
align-items: center;
gap: 10px;
margin: 16px 0 24px;
}
.ad-progress-bar,
.ad-progress-bar-wrap .ad-progress-bar {
flex: 1;
height: 14px;
background: #e2e8f0;
border-radius: 8px;
overflow: hidden;
}
.ad-progress-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, var(--ad-primary), var(--ad-accent));
transition: width 400ms ease;
}
.ad-progress-pct {
font-weight: 600;
color: var(--ad-primary);
min-width: 44px;
text-align: right;
}
/* Onboarding wizard */
.ad-onboarding {
max-width: 760px;
}
.ad-wizard-steps {
list-style: none;
padding: 0;
margin: 16px 0 24px;
display: flex;
gap: 8px;
counter-reset: step;
}
.ad-wizard-steps li {
flex: 1;
padding: 8px 10px;
background: #f1f5f9;
border-radius: 6px;
text-align: center;
font-size: 12px;
color: var(--ad-muted);
}
.ad-wizard-steps li.active {
background: var(--ad-primary);
color: #fff;
}
.ad-wizard-panel {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 20px 24px;
margin-bottom: 16px;
}
.ad-wizard-panel h2 {
margin-top: 0;
color: var(--ad-bg);
}
.ad-wizard-panel form label {
display: block;
margin-bottom: 12px;
font-weight: 500;
}
.ad-wizard-panel form input[type="email"],
.ad-wizard-panel form input[type="password"],
.ad-wizard-panel form input[type="text"] {
display: block;
margin-top: 4px;
width: 100%;
max-width: 360px;
}
.ad-wizard-status {
margin-top: 12px;
padding: 8px 12px;
background: #fee2e2;
color: #991b1b;
border-radius: 4px;
}
.ad-wizard-link {
margin-left: 12px;
}
.ad-coming-soon {
color: var(--ad-muted);
font-style: italic;
margin-top: 12px;
}
/* Log table (rebrand only — uses WP widefat styles) */
.wp-to-sanity-log-table .status-badge {
display: inline-block;
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
background: var(--ad-muted);
color: #fff;
}
.wp-to-sanity-log-table .status-badge.success { background: var(--ad-success); }
.wp-to-sanity-log-table .status-badge.failed { background: var(--ad-danger); }
.wp-to-sanity-log-table .status-badge.pending { background: var(--ad-warning); color: #1f2937; }
/* Settings — section spacing */
.ad-settings-section h2,
#wp-to-sanity-settings h2 {
color: var(--ad-primary);
}
/* Claude Connect (Phase D5) */
.ad-claude-connect { max-width: 760px; }
.ad-claude-connect .ad-cc-intro { font-size: 14px; color: #475569; margin-bottom: 18px; }
.ad-cc-step { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 18px 22px; margin-bottom: 16px; }
.ad-cc-step h2 { margin-top: 0; color: var(--ad-primary); font-size: 16px; }
.ad-cc-label { display: block; font-weight: 600; margin: 10px 0 6px; }
.ad-cc-token-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ad-cc-actions { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.ad-cc-snippet {
background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 6px;
overflow: auto; font-family: Menlo, Consolas, monospace; font-size: 12.5px;
line-height: 1.5; max-height: 320px; white-space: pre;
}
.ad-cc-copy-msg, .ad-cc-revoke-msg { font-size: 12px; min-height: 16px; }
.ad-cc-copy-msg.ad-cc-ok, .ad-cc-revoke-msg.ad-cc-ok { color: var(--ad-success); font-weight: 600; }
.ad-cc-copy-msg.ad-cc-err, .ad-cc-revoke-msg.ad-cc-err { color: var(--ad-danger); font-weight: 600; }
.ad-cc-revoke-row { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e2e8f0; }
.ad-cc-prompt-list { list-style: disc; padding-left: 22px; }
.ad-cc-prompt-list li { margin: 6px 0; }
.ad-cc-prompt-list code {
background: #f1f5f9; padding: 2px 6px; border-radius: 4px;
font-size: 12.5px; color: #0f172a;
}
.ad-cc-loading-text { color: var(--ad-muted); }
.ad-cc-hidden { display: none; }
/* ── Schema Preview (Phase D3) ─────────────────────────────────────────── */
.ad-schema-preview { max-width: 1100px; }
.ad-schema-actions { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
.ad-schema-status { font-size: 13px; min-height: 18px; }
.ad-schema-status.ad-err { color: var(--ad-danger); font-weight: 600; }
.ad-schema-rationale {
background: #eff6ff; border-left: 4px solid #3b82f6; padding: 10px 14px;
margin: 12px 0; font-size: 13px; color: #1e3a8a;
}
.ad-schema-files { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.ad-schema-file { border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.ad-schema-file-head {
display: flex; justify-content: space-between; align-items: center;
padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.ad-schema-filename { font-family: Menlo, Consolas, monospace; }
.ad-schema-file-actions { display: flex; gap: 6px; }
.ad-schema-code {
margin: 0; padding: 14px 16px; background: #0f172a; color: #e2e8f0;
font-family: Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55;
overflow: auto; max-height: 480px; white-space: pre;
}
.ad-hidden { display: none; }
/* ── Unified Wizard (10-step) ───────────────────────────────────────────── */
.ad-wizard-wrap {
max-width: 900px;
}
.ad-wizard-steps-10 {
list-style: none;
padding: 0;
margin: 16px 0 24px;
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.ad-wizard-steps-10 li {
flex: 1 1 auto;
min-width: 80px;
padding: 6px 8px;
background: #f1f5f9;
border-radius: 6px;
text-align: center;
font-size: 11px;
color: var(--ad-muted);
position: relative;
}
.ad-wizard-steps-10 li.active {
background: var(--ad-primary);
color: #fff;
}
.ad-wizard-steps-10 li.completed {
background: #d1fae5;
color: #065f46;
}
.ad-wizard-steps-10 li.completed::after {
content: ' \2713';
font-weight: 600;
}
/* ── Connect Sanity form grid ───────────────────────────────────────────── */
.ad-form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
margin-top: 12px;
}
.ad-form-grid label {
display: block;
font-weight: 600;
}
.ad-form-grid input[type="text"],
.ad-form-grid input[type="password"] {
display: block;
margin-top: 4px;
width: 100%;
}
.ad-form-full {
grid-column: 1 / -1;
}
/* ── Content settings grid ──────────────────────────────────────────────── */
.ad-settings-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
margin: 16px 0;
}
.ad-checkbox-group {
border: 1px solid #e2e8f0;
border-radius: 6px;
padding: 14px 18px;
background: #f8fafc;
}
.ad-checkbox-group legend {
font-weight: 600;
margin-bottom: 8px;
color: var(--ad-bg);
}
.ad-checkbox-group label {
display: block;
margin: 4px 0;
}
.ad-toggle-group {
display: flex;
gap: 24px;
margin: 12px 0 20px;
}
.ad-toggle-group label {
font-weight: 500;
}
/* ── Tab interface (Next Steps) ─────────────────────────────────────────── */
.ad-tabs {
display: flex;
gap: 0;
margin-bottom: 16px;
border-bottom: 2px solid #e2e8f0;
}
.ad-tab {
background: none;
border: none;
border-bottom: 3px solid transparent;
padding: 10px 18px;
font-size: 13px;
font-weight: 600;
color: var(--ad-muted);
cursor: pointer;
}
.ad-tab.active {
color: var(--ad-primary);
border-bottom-color: var(--ad-primary);
}
.ad-tab-content {
padding: 4px 0;
}
.ad-tab-content[hidden] {
display: none;
}
/* ── Status dashboard action grid ───────────────────────────────────────── */
.ad-action-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 12px;
margin-top: 20px;
}
.ad-action-grid .button {
display: flex;
align-items: center;
gap: 6px;
justify-content: flex-start;
padding: 10px 14px;
text-align: left;
}
.ad-action-grid .dashicons {
font-size: 18px;
width: 18px;
height: 18px;
color: var(--ad-primary);
}
/* ── Log pagination controls ───────────────────────────────────────────── */
.ad-log-controls {
display: flex;
gap: 10px;
align-items: center;
margin: 12px 0;
}
.ad-log-pagination {
margin-top: 12px;
display: flex;
align-items: center;
gap: 10px;
}
.ad-log-page-info {
font-size: 13px;
color: var(--ad-muted);
}
/* ── QA checklist (approve step) ────────────────────────────────────────── */
.ad-qa-checklist {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
margin: 16px 0;
}
/* ── Inline notices in wizard panels ───────────────────────────────────── */
.ad-wizard-panel .notice.inline {
margin: 8px 0;
}
.ad-save-status,
.ad-migration-status,
.ad-approve-status {
font-size: 13px;
min-height: 18px;
margin-left: 8px;
}
.ad-wizard-panel h3 {
color: var(--ad-bg);
}