From b65396421c6384df4d9d8c39164e856363b7d785 Mon Sep 17 00:00:00 2001 From: strsv Date: Sat, 7 Nov 2026 04:56:57 +0300 Subject: [PATCH] feat: group library filters into accordions Split the sidebar into status, genres/tags and metrics collapsible groups. --- web/static/index.html | 149 +++++++++++++++++++++++------------------- web/static/styles.css | 24 +++++++ 2 files changed, 106 insertions(+), 67 deletions(-) diff --git a/web/static/index.html b/web/static/index.html index dbf75e5..28a9394 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -89,79 +89,94 @@ try { - +
+ Статус и прохождение +
+ - + -
- Жанры -
- любой -
-
-
+ + + -
- Теги -
- любой -
-
-
- - - - - - - -
- Часы -
- - +
-
-
- Год -
- - +
+ +
+ Жанры и теги +
+
+ Жанры +
+ любой +
+
+
+ +
+ Теги +
+ любой +
+
+
- -
- Отзывы, % -
- - +
+ +
+ Метрики +
+
+ Часы +
+ + +
+
+
+ Год +
+ + +
+
+
+ Отзывы, % +
+ + +
+
- +
diff --git a/web/static/styles.css b/web/static/styles.css index 3a3f5d2..211ce77 100644 --- a/web/static/styles.css +++ b/web/static/styles.css @@ -275,6 +275,30 @@ body.drawer-open { overflow: hidden; } .field { display: flex; flex-direction: column; gap: 6px; } .field span { font-size: 12px; color: var(--muted); } +.filter-group { + padding: 0 10px; + border: 1px solid var(--border); + border-radius: 12px; + background: rgba(255, 255, 255, .015); +} +.filter-group summary { + display: flex; + align-items: center; + justify-content: space-between; + padding: 9px 0; + cursor: pointer; + font-size: 11.5px; + font-weight: 650; + letter-spacing: .05em; + text-transform: uppercase; + color: var(--muted); + list-style: none; +} +.filter-group summary::-webkit-details-marker { display: none; } +.filter-group summary::after { content: "+"; font-size: 14px; color: var(--muted); } +.filter-group[open] summary::after { content: "−"; } +.filter-group-body { display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; } + select, input[type="search"], input[type="number"], textarea { width: 100%; border: 1px solid var(--border);