mirror of
https://github.com/avecms/AVE.cms.git
synced 2026-08-01 08:45:44 +00:00
239 lines
18 KiB
CSS
239 lines
18 KiB
CSS
:root {
|
||
color-scheme: light;
|
||
--bg: #f3f6fb;
|
||
--surface: #ffffff;
|
||
--line: #dce3ee;
|
||
--text: #172033;
|
||
--muted: #637089;
|
||
--blue: #2563eb;
|
||
--blue-soft: #eaf1ff;
|
||
--green: #12945f;
|
||
--green-soft: #e8f8f0;
|
||
--red: #d63f4f;
|
||
--red-soft: #fff0f2;
|
||
--amber: #b66a0b;
|
||
--amber-soft: #fff5df;
|
||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||
font-synthesis: none;
|
||
letter-spacing: 0;
|
||
}
|
||
* { box-sizing: border-box; }
|
||
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
|
||
button, input, textarea { font: inherit; letter-spacing: 0; }
|
||
code { padding: 1px 4px; border-radius: 4px; background: #eef2f8; color: #36435a; font-size: .9em; overflow-wrap: anywhere; }
|
||
.installer-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
|
||
.installer-header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 48px; }
|
||
.installer-header img { display: block; object-fit: contain; object-position: left center; }
|
||
.installer-header-actions { display: flex; align-items: center; gap: 18px; }
|
||
.installer-version { color: var(--muted); font-weight: 700; }
|
||
.installer-version span { margin-left: 6px; color: #8b96aa; font-weight: 500; }
|
||
.installer-language { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
|
||
.installer-language a { display: grid; min-width: 34px; height: 30px; place-items: center; border-radius: 4px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 800; }
|
||
.installer-language a:hover { background: #f1f5f9; color: var(--text); }
|
||
.installer-language a.is-active { background: var(--blue); color: #fff; }
|
||
.installer-intro { max-width: 760px; margin-bottom: 28px; }
|
||
.installer-eyebrow { margin: 0 0 6px; color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
|
||
h1, h2, p { margin-top: 0; }
|
||
h1, h2 { text-wrap: balance; }
|
||
p { text-wrap: pretty; }
|
||
h1 { margin-bottom: 12px; font-size: 44px; line-height: 1.1; letter-spacing: 0; }
|
||
h2 { margin-bottom: 4px; font-size: 20px; line-height: 1.25; letter-spacing: 0; }
|
||
.installer-intro > p:last-child, .installer-section-head p, .installer-complete p { color: var(--muted); }
|
||
.installer-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px rgba(28, 44, 74, .06); }
|
||
.installer-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; gap: 20px; }
|
||
.installer-layout[hidden], .installer-intro[hidden] { display: none; }
|
||
.installer-main { padding: 28px; }
|
||
.installer-aside { position: sticky; top: 20px; padding: 24px; }
|
||
.installer-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
|
||
.installer-section-head > span { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-weight: 800; }
|
||
.installer-section-head p { margin-bottom: 0; font-size: 14px; }
|
||
.installer-divider { height: 1px; margin: 28px 0; background: var(--line); }
|
||
.requirements-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
|
||
.requirement-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; min-height: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; }
|
||
.requirement-row small { grid-column: 2; color: var(--muted); }
|
||
.requirement-mark { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 900; }
|
||
.is-ok .requirement-mark { background: var(--green-soft); color: var(--green); }
|
||
.is-error .requirement-mark { background: var(--red-soft); color: var(--red); }
|
||
.is-warning .requirement-mark { background: var(--amber-soft); color: var(--amber); }
|
||
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
|
||
.form-grid label { display: block; min-width: 0; }
|
||
.form-grid label > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
|
||
.form-grid label > small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
|
||
.form-span-2 { grid-column: 1 / -1; }
|
||
input, textarea { width: 100%; border: 1px solid #cbd5e3; border-radius: 6px; outline: none; background: #fff; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
|
||
input { height: 42px; padding: 0 12px; }
|
||
textarea { min-height: 190px; padding: 11px 12px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.5; }
|
||
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
|
||
.installer-repository-options { display: grid; gap: 10px; }
|
||
.installer-repository-option { position: relative; display: grid; grid-template-columns: 18px 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
|
||
.installer-repository-option:hover { border-color: #b7c7df; background: #fbfdff; }
|
||
.installer-repository-option.is-selected { border-color: #8baff4; background: #f6f9ff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .08); }
|
||
.installer-repository-option.is-disabled { opacity: .58; cursor: not-allowed; }
|
||
.installer-repository-option > input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--blue); box-shadow: none; }
|
||
.installer-repository-copy { min-width: 0; }
|
||
.installer-repository-option b, .installer-repository-option small { display: block; }
|
||
.installer-repository-option b { font-size: 14px; }
|
||
.installer-repository-option small { margin-top: 3px; color: var(--muted); font-size: 12px; }
|
||
.installer-repository-badge { align-self: start; padding: 4px 7px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 10px; font-style: normal; font-weight: 800; line-height: 1.35; text-transform: uppercase; white-space: nowrap; }
|
||
.installer-repository-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 900; }
|
||
.installer-repository-error { color: var(--red) !important; }
|
||
.installer-repository-profile { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; }
|
||
.installer-repository-profile[hidden] { display: none; }
|
||
.installer-repository-profile label > span, .installer-repository-profile label > small { display: block; }
|
||
.installer-repository-profile label > span { margin-bottom: 7px; font-size: 13px; font-weight: 700; }
|
||
.installer-repository-profile label > small { margin-top: 6px; color: var(--muted); font-size: 12px; }
|
||
.installer-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 30px -28px -28px; padding: 20px 28px; border-top: 1px solid var(--line); background: #f9fbfe; border-radius: 0 0 8px 8px; }
|
||
.installer-footer b, .installer-footer span { display: block; }
|
||
.installer-footer span { color: var(--muted); font-size: 13px; }
|
||
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-weight: 750; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
|
||
.button:hover { transform: translateY(-1px); }
|
||
.button:active { transform: scale(.96); }
|
||
.button-primary { background: var(--blue); color: #fff; }
|
||
.button-primary:hover { background: #1d54cc; }
|
||
.button-primary:disabled { background: #a8b3c5; cursor: not-allowed; transform: none; }
|
||
.button-secondary { border-color: var(--line); background: #fff; color: var(--text); }
|
||
.button-secondary:hover { border-color: #b7c2d2; background: #f8fafc; }
|
||
.installer-checklist { display: grid; gap: 13px; margin: 22px 0 26px; padding: 0; list-style: none; }
|
||
.installer-checklist li { display: flex; align-items: center; gap: 10px; }
|
||
.installer-checklist span { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 900; }
|
||
.installer-note { padding: 15px; border-left: 3px solid var(--blue); background: #f5f8ff; }
|
||
.installer-note p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
|
||
.installer-alert { display: flex; flex-direction: column; gap: 3px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid; border-radius: 6px; }
|
||
.installer-alert-error { border-color: #f1a9b2; background: var(--red-soft); color: #9f2433; }
|
||
.installer-alert-info { border-color: #b8cef8; background: var(--blue-soft); color: #174ca9; }
|
||
.installer-alert span { font-size: 13px; }
|
||
.installer-danger-option { margin-top: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfe; overflow: hidden; transition: border-color .15s ease, background-color .15s ease; }
|
||
.installer-danger-option.is-active { border-color: #e28a95; background: var(--red-soft); }
|
||
.installer-danger-toggle { display: grid; grid-template-columns: 18px 34px minmax(0, 1fr); align-items: center; gap: 11px; padding: 15px 16px; cursor: pointer; }
|
||
.installer-danger-toggle input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--red); box-shadow: none; }
|
||
.installer-danger-toggle input:focus { box-shadow: 0 0 0 3px rgba(214, 63, 79, .14); }
|
||
.installer-danger-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; background: #eef2f7; color: var(--muted); font-weight: 900; }
|
||
.installer-danger-option.is-active .installer-danger-mark { background: #ffdbe0; color: #a12635; }
|
||
.installer-danger-toggle b, .installer-danger-toggle small { display: block; }
|
||
.installer-danger-toggle b { color: var(--text); font-size: 14px; }
|
||
.installer-danger-toggle small { margin-top: 2px; color: var(--muted); font-size: 12px; }
|
||
.installer-danger-confirm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .8fr); gap: 16px; padding: 16px; border-top: 1px solid #efb5bc; background: #fff8f9; }
|
||
.installer-danger-confirm[hidden] { display: none; }
|
||
.installer-danger-confirm > label > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
|
||
.installer-danger-confirm input { border-color: #de8d98; }
|
||
.installer-danger-confirm input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(214, 63, 79, .12); }
|
||
.installer-danger-warning { padding: 11px 13px; border-left: 3px solid var(--red); background: #fff; }
|
||
.installer-danger-warning b { color: #9f2433; }
|
||
.installer-danger-warning p { margin: 3px 0 0; color: #78505a; font-size: 12px; }
|
||
.installer-progress { max-width: 1040px; margin: 54px auto 0; padding: 30px; }
|
||
.installer-progress[hidden] { display: none; }
|
||
.installer-shell.is-installing .installer-intro,
|
||
.installer-shell.is-installing > .installer-alert,
|
||
.installer-shell.is-installing .installer-layout { display: none; }
|
||
.installer-progress-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; }
|
||
.installer-progress-head p { margin-bottom: 0; color: var(--muted); }
|
||
.installer-progress-head .installer-eyebrow { margin-bottom: 3px; color: var(--blue); }
|
||
.installer-progress-head > strong { color: var(--blue); font-size: 22px; }
|
||
.installer-progress-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 8px; background: var(--blue-soft); }
|
||
.installer-progress-icon i { width: 22px; height: 22px; border: 3px solid #aac2f7; border-top-color: var(--blue); border-radius: 50%; animation: installer-spin .8s linear infinite; }
|
||
.installer-progress-track { height: 8px; margin: 26px 0; overflow: hidden; border-radius: 4px; background: #e8edf5; }
|
||
.installer-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .28s ease; }
|
||
.installer-progress-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
|
||
.installer-progress-steps > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
|
||
.installer-progress-steps > div > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 6px; background: #eef2f7; font-size: 12px; font-weight: 800; }
|
||
.installer-progress-steps b, .installer-progress-steps small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.installer-progress-steps b { color: var(--text); font-size: 13px; }
|
||
.installer-progress-steps small { font-size: 11px; }
|
||
.installer-progress-steps > .is-active { border-color: #a9c2f7; background: #f7f9ff; }
|
||
.installer-progress-steps > .is-active > span { background: var(--blue); color: #fff; }
|
||
.installer-progress-steps > .is-done { border-color: #b9e4cf; background: #f5fcf8; }
|
||
.installer-progress-steps > .is-done > span { background: var(--green); color: #fff; }
|
||
.installer-progress-steps > .is-done > span::before { content: "✓"; }
|
||
.installer-progress-steps > .is-done > span { font-size: 0; }
|
||
.installer-progress-steps > .is-done > span::before { font-size: 13px; }
|
||
.installer-progress-error { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 16px; border: 1px solid #f1a9b2; border-radius: 6px; background: var(--red-soft); color: #9f2433; }
|
||
.installer-progress-error[hidden] { display: none; }
|
||
.installer-progress-error span { flex: 1; min-width: 0; }
|
||
.installer-progress.is-error .installer-progress-icon { background: var(--red-soft); }
|
||
.installer-progress.is-error .installer-progress-icon i { border: 0; animation: none; }
|
||
.installer-progress.is-error .installer-progress-icon i::before { content: "×"; display: grid; width: 22px; height: 22px; place-items: center; color: var(--red); font-size: 28px; font-style: normal; font-weight: 800; }
|
||
@keyframes installer-spin { to { transform: rotate(360deg); } }
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.installer-progress-icon i { animation: none; }
|
||
.installer-progress-track span { transition: none; }
|
||
}
|
||
.installer-complete { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; max-width: 760px; margin: 80px auto 0; padding: 34px; }
|
||
.installer-state-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 30px; font-weight: 900; }
|
||
.installer-complete h1 { font-size: 32px; }
|
||
.installer-complete-repository { margin: -3px 0 0; padding: 10px 12px; border-radius: 6px; background: var(--blue-soft); color: #174ca9 !important; font-size: 13px; }
|
||
.installer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
|
||
.installer-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
|
||
.installer-summary span { padding: 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); text-align: center; font-size: 12px; }
|
||
.installer-summary b { display: block; color: var(--text); font-size: 22px; }
|
||
@media (max-width: 820px) {
|
||
.installer-header { margin-bottom: 32px; }
|
||
.installer-layout { grid-template-columns: 1fr; }
|
||
.installer-aside { position: static; order: -1; }
|
||
.requirements-list { grid-template-columns: 1fr; }
|
||
.installer-danger-confirm { grid-template-columns: 1fr; }
|
||
.installer-repository-option { grid-template-columns: 18px 38px minmax(0, 1fr); }
|
||
.installer-repository-badge { grid-column: 3; justify-self: start; }
|
||
.installer-progress-steps { grid-template-columns: 1fr 1fr; }
|
||
}
|
||
@media (max-width: 560px) {
|
||
.installer-shell { width: min(100% - 20px, 1180px); padding-top: 16px; }
|
||
.installer-header { margin-bottom: 24px; }
|
||
.installer-version { display: none; }
|
||
.installer-header-actions { margin-left: auto; }
|
||
h1 { font-size: 32px; }
|
||
.installer-main, .installer-aside { padding: 20px; }
|
||
.form-grid { grid-template-columns: 1fr; }
|
||
.form-span-2 { grid-column: auto; }
|
||
.installer-danger-toggle { grid-template-columns: 18px minmax(0, 1fr); }
|
||
.installer-danger-mark { display: none; }
|
||
.installer-footer { align-items: stretch; flex-direction: column; margin: 26px -20px -20px; padding: 18px 20px; }
|
||
.installer-complete { grid-template-columns: 1fr; margin-top: 30px; padding: 24px; }
|
||
.installer-summary { grid-template-columns: repeat(2, 1fr); }
|
||
.installer-repository-option { grid-template-columns: 18px 34px minmax(0, 1fr); gap: 10px; padding: 13px 12px; }
|
||
.installer-repository-icon { width: 34px; height: 34px; font-size: 10px; }
|
||
.installer-progress { margin-top: 28px; padding: 20px; }
|
||
.installer-progress-head { grid-template-columns: 42px minmax(0, 1fr); }
|
||
.installer-progress-head > strong { grid-column: 2; font-size: 16px; }
|
||
.installer-progress-icon { width: 42px; height: 42px; }
|
||
.installer-progress-steps { grid-template-columns: 1fr; }
|
||
.installer-progress-error { align-items: stretch; flex-direction: column; }
|
||
}
|
||
.installer-wordmark {
|
||
font-size: 24px;
|
||
letter-spacing: 0;
|
||
}
|
||
|
||
.installer-package {
|
||
display: grid;
|
||
grid-template-columns: 56px minmax(0, 1fr);
|
||
gap: 20px;
|
||
align-items: start;
|
||
padding: 28px;
|
||
}
|
||
|
||
.installer-package-icon {
|
||
display: grid;
|
||
place-items: center;
|
||
width: 56px;
|
||
height: 56px;
|
||
border-radius: 8px;
|
||
background: #eaf2ff;
|
||
color: #2563eb;
|
||
font-size: 30px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.installer-package-body { min-width: 0; }
|
||
.installer-package-status { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; color: #64748b; font-size: 13px; }
|
||
.installer-package-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.installer-package-status strong { color: #0f172a; }
|
||
.installer-package.is-complete .installer-package-icon { background: #dcfce7; color: #15803d; }
|
||
.installer-package.is-error .installer-package-icon { background: #fee2e2; color: #b91c1c; }
|
||
.installer-error { display: grid; gap: 8px; margin-top: 18px; padding: 14px; border-radius: 8px; background: #fef2f2; color: #991b1b; }
|
||
.installer-error[hidden] { display: none; }
|
||
.installer-error .button { width: max-content; margin-top: 4px; }
|
||
|
||
@media (max-width: 640px) {
|
||
.installer-package { grid-template-columns: 1fr; padding: 20px; }
|
||
}
|