feat(ui): ReplyPier 品牌、中文界面与前端构建产物
替换品牌文案与图标,补齐窄屏布局和加载失败提示,确认主要旅程可操作。
This commit is contained in:
1 parent
2adf288cd2
commit
ba91abc4b2
77 files changed
+2916
No files matched your search
@@ -0,0 +1,381 @@
|
||||
/* Buttons */
|
||||
.btn {
|
||||
font-family: var(--font-sans);
|
||||
font-size: var(--text-base);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
padding: var(--space-sm) var(--space-lg);
|
||||
border-radius: var(--radius-md);
|
||||
transition: background-color var(--transition-fast), box-shadow var(--transition-fast),
|
||||
transform var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
|
||||
cursor: pointer;
|
||||
border: 1px solid transparent;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-sm);
|
||||
line-height: 1.4;
|
||||
background: var(--accent-solid);
|
||||
color: #0B0C10;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
opacity: 0.88;
|
||||
}
|
||||
|
||||
.btn:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.btn:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: var(--ring-focus);
|
||||
}
|
||||
|
||||
.btn:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent-solid);
|
||||
color: #0B0C10;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
opacity: 0.88;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: var(--o06);
|
||||
color: var(--text);
|
||||
border: 1px solid var(--o14);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: var(--o10);
|
||||
border-color: var(--o20);
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
background: transparent;
|
||||
color: var(--text3);
|
||||
border: 1px solid var(--o12);
|
||||
}
|
||||
|
||||
.btn-ghost:hover {
|
||||
background: var(--o06);
|
||||
color: var(--text);
|
||||
border-color: var(--o20);
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: transparent;
|
||||
color: var(--c-coral);
|
||||
border: 1px solid rgba(255,138,115,.3);
|
||||
}
|
||||
|
||||
.btn-danger:hover {
|
||||
background: rgba(255,138,115,.08);
|
||||
border-color: rgba(255,138,115,.5);
|
||||
}
|
||||
|
||||
/* Loading state */
|
||||
.btn.loading {
|
||||
position: relative;
|
||||
color: transparent !important;
|
||||
}
|
||||
|
||||
.btn.loading::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin: -8px 0 0 -8px;
|
||||
border: 2px solid rgba(11,12,16,.4);
|
||||
border-right-color: #0B0C10;
|
||||
border-radius: 50%;
|
||||
animation: button-loading-spinner 0.75s linear infinite;
|
||||
}
|
||||
|
||||
/* Forms */
|
||||
.form-group {
|
||||
margin-bottom: var(--space-lg);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
display: block;
|
||||
margin-bottom: 9px;
|
||||
font-weight: var(--font-weight-medium);
|
||||
color: var(--text3);
|
||||
font-size: 13.5px;
|
||||
}
|
||||
|
||||
.form-input {
|
||||
width: 100%;
|
||||
padding: 14px 16px;
|
||||
font-family: var(--font-sans);
|
||||
font-size: var(--text-base);
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--o12);
|
||||
border-radius: 12px;
|
||||
color: var(--text);
|
||||
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
||||
}
|
||||
|
||||
.form-input::placeholder {
|
||||
color: var(--faint);
|
||||
}
|
||||
|
||||
.form-input:hover {
|
||||
border-color: var(--o20);
|
||||
}
|
||||
|
||||
.form-input:focus,
|
||||
.form-input:focus-visible {
|
||||
border-color: var(--accent-ink);
|
||||
box-shadow: var(--ring-focus);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.form-input:disabled {
|
||||
background: var(--o04);
|
||||
color: var(--muted);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.form-input.error,
|
||||
.form-input[aria-invalid='true'] {
|
||||
border-color: var(--error-color);
|
||||
}
|
||||
|
||||
.form-input.error:focus,
|
||||
.form-input[aria-invalid='true']:focus {
|
||||
box-shadow: 0 0 0 3px var(--error-bg);
|
||||
}
|
||||
|
||||
/* Cards */
|
||||
.card {
|
||||
background: var(--surface);
|
||||
border-radius: 18px;
|
||||
border: 1px solid var(--o08);
|
||||
padding: var(--space-xl);
|
||||
width: 100%;
|
||||
max-width: 480px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.card-full {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/* Stepper */
|
||||
.progress-steps {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-2xl);
|
||||
margin-bottom: var(--space-2xl);
|
||||
}
|
||||
|
||||
.progress-step {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
gap: var(--space-md);
|
||||
width: 140px;
|
||||
}
|
||||
|
||||
.step-indicator {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: var(--radius-full);
|
||||
background: var(--o05);
|
||||
border: 2px solid var(--o14);
|
||||
color: var(--muted);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-family: var(--font-display);
|
||||
transition: background-color var(--transition-normal), border-color var(--transition-normal),
|
||||
color var(--transition-normal);
|
||||
}
|
||||
|
||||
.step-indicator.active {
|
||||
background: rgba(201,242,78,.1);
|
||||
border-color: var(--accent-ink);
|
||||
color: var(--accent-ink);
|
||||
}
|
||||
|
||||
.step-indicator.completed {
|
||||
background: var(--accent-solid);
|
||||
border-color: var(--accent-ink);
|
||||
color: #0B0C10;
|
||||
}
|
||||
|
||||
.step-details h3 {
|
||||
font-size: var(--text-base);
|
||||
font-family: var(--font-display);
|
||||
margin-bottom: var(--space-xs);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.step-details p {
|
||||
font-size: var(--text-sm);
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.progress-steps {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-lg);
|
||||
}
|
||||
|
||||
.progress-step {
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.step-details {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modal buttons.
|
||||
Global rather than scoped because BaseModal takes its actions through a
|
||||
slot, and slot content is styled by the parent — three modals were each
|
||||
carrying a byte-identical private copy of these rules.
|
||||
Distinct from .btn above, which is the app's louder primary action: these
|
||||
are the quieter Cancel/Confirm pair a dialog footer wants. */
|
||||
.modal-btn {
|
||||
padding: 9px 16px;
|
||||
border-radius: var(--radius-btn, 8px);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
border: 1px solid var(--border-color);
|
||||
background: var(--background-soft);
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.modal-btn-primary {
|
||||
background: var(--accent-solid);
|
||||
color: var(--on-accent-solid);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.modal-btn-danger {
|
||||
background: var(--c-danger, var(--danger));
|
||||
color: var(--on-accent-solid);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.modal-btn:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* Native checkboxes/radios follow the design accent instead of the browser
|
||||
default (blue), so form controls match the theme app-wide. */
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
accent-color: var(--accent-ink);
|
||||
}
|
||||
|
||||
/* Nav section heading — shared by the desktop sidebar and the mobile More
|
||||
sheet so the two menus can't drift apart visually. */
|
||||
.nav-section-heading {
|
||||
color: var(--faint);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
font-weight: var(--font-weight-medium);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
/* ── Responsive table → cards ────────────────────────────────────────────
|
||||
Desktop keeps its own grid template; below 768px each row becomes a card:
|
||||
the primary cell and a trailing badge share line 1, and the remaining
|
||||
values wrap onto line 2 carrying their own labels (the table header is
|
||||
hidden, so each value has to name itself).
|
||||
|
||||
Markup: .rcards-head on the header row, .rcards-row on each row,
|
||||
.rcards-primary / .rcards-badge on the line-1 cells, and .rcards-meta
|
||||
wrapping a .rcards-label + .rcards-value pair on every other cell.
|
||||
|
||||
The consuming component must scope its desktop grid to
|
||||
@media (min-width: 769px) — a scoped SFC rule carries a [data-v-*]
|
||||
attribute and would otherwise outrank these global classes. */
|
||||
.rcards-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.rcards-head {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rcards-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px 12px;
|
||||
}
|
||||
|
||||
/* Zero-height full-width break: pushes the meta cells to their own line
|
||||
without assuming how wide the badge renders */
|
||||
.rcards-row::after {
|
||||
content: '';
|
||||
order: 3;
|
||||
flex: 1 0 100%;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.rcards-primary {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.rcards-badge {
|
||||
flex: 0 0 auto;
|
||||
margin-left: auto;
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.rcards-meta {
|
||||
order: 4;
|
||||
flex: 0 1 auto;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 4px;
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.rcards-label {
|
||||
display: inline;
|
||||
font-size: 10.5px;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--faint);
|
||||
}
|
||||
|
||||
/* text-overflow needs its own block box — it does nothing on a flex item */
|
||||
.rcards-value {
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user