feat(ui): redesign postcards list with tabs, row layout, country dropdown filter
This commit is contained in:
@@ -136,6 +136,23 @@ code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-si
|
||||
.detail-meta dt { font-weight: 600; font-size: .85rem; color: var(--text-muted); }
|
||||
.detail-meta dd { font-size: .95rem; }
|
||||
|
||||
/* Tabs */
|
||||
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1rem; }
|
||||
.tab { padding: .5rem 1.25rem; border: none; background: none; cursor: pointer; font-size: .9rem; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
|
||||
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
|
||||
.tab:hover { color: var(--primary); }
|
||||
|
||||
/* Postcard row */
|
||||
.postcard-row { display: flex; align-items: center; gap: 1rem; padding: .75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg); margin-bottom: .5rem; text-decoration: none; color: var(--text); transition: box-shadow .15s; }
|
||||
.postcard-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); text-decoration: none; }
|
||||
.postcard-row-img { flex-shrink: 0; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
|
||||
.postcard-row-img img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.postcard-row-img .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg); font-size: 1.2rem; }
|
||||
.postcard-row-info { flex: 1; display: flex; align-items: center; gap: .75rem; min-width: 0; font-size: .9rem; }
|
||||
.postcard-row-info strong { white-space: nowrap; }
|
||||
.postcard-row-info span { white-space: nowrap; color: var(--text-muted); }
|
||||
.postcard-row-action { flex-shrink: 0; }
|
||||
|
||||
/* Filter */
|
||||
.filter-bar { margin-bottom: 1.25rem; }
|
||||
|
||||
@@ -146,4 +163,5 @@ code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-si
|
||||
@media (max-width: 640px) {
|
||||
.detail-grid { grid-template-columns: 1fr; }
|
||||
.card-grid { grid-template-columns: 1fr; }
|
||||
.postcard-row-info { flex-wrap: wrap; gap: .35rem; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user