T-012: Bibliothek komplett — Cover-Raster, Suche (Titel/Autor/Sprecher), Sortierung (5 Optionen), Status-Chips (lokal/fertig), Fortschrittsbalken

This commit is contained in:
2026-11-06 19:40:47 +01:00
parent 7b63719e41
commit 5ef2eb0145
5 changed files with 245 additions and 46 deletions

View File

@ -6,6 +6,7 @@
--fg-muted: #9aa0a8;
--accent: #c2762f;
--error: #d4645c;
--ok: #6fa06b;
--border: #2a2e36;
}
@ -30,6 +31,7 @@ h1 {
font-size: 1.4rem;
font-weight: 600;
margin: 0;
white-space: nowrap;
}
.muted {
@ -37,19 +39,40 @@ h1 {
line-height: 1.5;
}
.small {
font-size: 0.86rem;
}
.bar {
display: flex;
align-items: center;
gap: 1rem;
gap: 0.7rem;
padding: 0.8rem 1.2rem;
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
background: var(--bg);
z-index: 1;
}
.bar .muted {
white-space: nowrap;
}
.input,
.bar input,
.bar select {
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.4rem 0.7rem;
background: var(--bg-card);
color: var(--fg);
font-size: 0.92rem;
}
.bar input.search {
flex: 1;
min-width: 12rem;
}
button {
@ -59,6 +82,8 @@ button {
background: var(--bg-card);
color: var(--fg);
cursor: pointer;
font-size: 0.92rem;
white-space: nowrap;
}
button:hover:enabled {
@ -81,29 +106,6 @@ button.ghost {
background: transparent;
}
table {
width: calc(100% - 2.4rem);
margin: 1rem 1.2rem;
border-collapse: collapse;
}
th,
td {
border-bottom: 1px solid var(--border);
padding: 0.4rem 0.6rem;
text-align: left;
}
th.num,
td.num {
text-align: right;
}
.footnote {
margin: 0.6rem 1.2rem 2rem;
font-size: 0.85rem;
}
.info {
color: #7fa9d4;
}
@ -111,3 +113,107 @@ td.num {
.error {
color: var(--error);
}
/* Bibliotheksraster */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
gap: 1rem;
padding: 1rem 1.2rem 2rem;
}
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.cover {
aspect-ratio: 1 / 1;
width: 100%;
background: linear-gradient(160deg, #262a31, #1b1e24);
position: relative;
}
.cover img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.meta {
padding: 0.55rem 0.65rem 0.7rem;
display: flex;
flex-direction: column;
gap: 0.3rem;
flex: 1;
}
.meta .t {
font-size: 0.92rem;
font-weight: 600;
line-height: 1.25;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.chips {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
margin-top: auto;
padding-top: 0.25rem;
}
.chip {
font-size: 0.72rem;
padding: 0.1rem 0.45rem;
border: 1px solid var(--border);
border-radius: 99px;
color: var(--fg-muted);
}
.chip.ok {
color: var(--ok);
border-color: var(--ok);
}
.chip.done {
color: var(--accent);
border-color: var(--accent);
}
.progress {
height: 3px;
border-radius: 2px;
background: var(--border);
overflow: hidden;
}
.progress .fill {
height: 100%;
background: var(--accent);
}
.statespace {
display: flex;
flex-direction: column;
gap: 0.8rem;
align-items: flex-start;
padding: 2.4rem 1.2rem;
}
code {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.05rem 0.3rem;
}