feat: add a column table layout
CI / test (push) Successful in 2m9s

This commit is contained in:
strsv committed 2026-11-06 19:03:59 +03:00
1 parent 1bd4ca8c53
commit a6db306847
7 files changed
+193 -30

No files matched your search

+67
View File
@@ -477,6 +477,66 @@ html[data-theme="light"] .select-box {
.card-status { margin-top: 6px; }
.grid.list-view .select-box { right: 6px; bottom: 6px; width: 24px; height: 24px; }
.grid.table-view { display: block; }
.game-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.game-table th {
text-align: left;
padding: 8px 10px;
border-bottom: 1px solid var(--border);
color: var(--muted);
font-size: 11px;
text-transform: uppercase;
letter-spacing: .06em;
font-weight: 600;
white-space: nowrap;
}
.game-table td {
padding: 6px 10px;
border-bottom: 1px solid var(--border);
vertical-align: middle;
}
.game-table tbody tr { cursor: pointer; }
.game-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.game-table tbody tr.selected { background: rgba(243, 180, 92, .08); }
.game-table tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.game-table .t-select { width: 30px; padding-right: 0; }
.game-table .t-select input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.game-table .t-name { min-width: 210px; }
.game-table .t-title { font-weight: 600; vertical-align: middle; }
.game-table .t-name .status-chip { margin-left: 8px; vertical-align: middle; }
.game-table .t-genres { color: var(--muted); font-size: 11.5px; }
.game-table .t-fav { color: var(--accent); width: 26px; text-align: center; }
.game-table .t-year, .game-table .t-duration { white-space: nowrap; }
.game-table td:nth-child(5) { white-space: nowrap; }
.cover-inline {
display: inline-block;
position: relative;
width: 34px;
aspect-ratio: 2 / 3;
margin-right: 10px;
vertical-align: middle;
border-radius: 5px;
overflow: hidden;
background: linear-gradient(145deg, #1b2436, #0d121b);
}
.cover-inline img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-inline .fallback {
display: none;
position: absolute;
inset: 0;
place-items: center;
padding: 2px;
text-align: center;
font-size: 9px;
font-weight: 700;
color: rgba(255, 255, 255, .82);
background: linear-gradient(145deg, rgba(243, 180, 92, .25), rgba(94, 234, 212, .12));
}
.cover-inline.noimg .fallback { display: grid; }
html[data-theme="light"] .cover-inline { background: #e9e2d5; }
html[data-theme="light"] .cover-inline .fallback { color: rgba(23, 32, 51, .72); }
html[data-theme="light"] .game-table tbody tr:hover { background: rgba(23, 32, 51, .035); }
.card {
display: flex;
flex-direction: column;
@@ -969,4 +1029,11 @@ html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c9c0ad; }
.toolbar input { flex: 1 1 150px; }
.toolbar select { flex: 1 1 140px; min-width: 140px; }
.stat { padding: 4px 9px; font-size: 12px; }
.game-table { font-size: 12px; }
.game-table th, .game-table td { padding: 6px 7px; }
.game-table .t-year,
.game-table .t-genres,
.game-table .t-duration { display: none; }
.game-table .t-name { min-width: 0; }
.cover-inline { width: 28px; margin-right: 7px; }
}