新增我的订单功能及页面优化
This commit is contained in:
@@ -84,9 +84,34 @@ svg { display: block; flex-shrink: 0; }
|
||||
.attachment-unavailable { display: block; max-width: 260px; padding: 12px; border: 1px dashed var(--border); border-radius: 8px; background: var(--surface-soft); color: var(--secondary); font-size: 12px; line-height: 1.6; }
|
||||
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
||||
.empty-caption { color: var(--muted); font-size: 12px; line-height: 1.8; }
|
||||
.app-modal-overlay {
|
||||
position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
|
||||
overflow-y: auto; padding: 20px; background: rgba(18, 33, 56, .42);
|
||||
}
|
||||
.app-modal {
|
||||
width: min(420px, 100%); max-height: min(80dvh, 680px); overflow-y: auto;
|
||||
padding: 22px; border: 1px solid var(--border); border-radius: 14px;
|
||||
background: var(--surface); color: var(--text); box-shadow: var(--shadow);
|
||||
}
|
||||
.app-modal-title { margin: 0; font-size: 18px; line-height: 1.4; }
|
||||
.app-modal-message { margin-top: 9px; color: var(--secondary); font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.app-modal-input { display: block; width: 100%; min-height: 44px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; line-height: 1.6; }
|
||||
textarea.app-modal-input { min-height: 112px; resize: vertical; }
|
||||
.app-modal-input:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
|
||||
.app-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
|
||||
.app-modal-actions button { min-width: 80px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--secondary); cursor: pointer; }
|
||||
.app-modal-actions .app-modal-confirm { border-color: var(--brand); background: var(--brand); color: #fff; }
|
||||
.app-modal-actions button:hover { background: var(--surface-hover); color: var(--text); }
|
||||
.app-modal-actions .app-modal-confirm:hover { background: var(--brand-hover); color: #fff; }
|
||||
.app-modal-actions button:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
|
||||
::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
::-webkit-scrollbar-thumb { background: #b7c3d5; border-radius: 10px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
|
||||
}
|
||||
@media (max-width: 520px) {
|
||||
.app-modal-overlay { align-items: end; padding: 16px; }
|
||||
.app-modal { width: 100%; max-height: min(85dvh, 680px); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 14px 14px 10px 10px; }
|
||||
.app-modal-actions button { flex: 1; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user