feat(ui): New sidebar & search UI (#831)

This commit is contained in:
Alex
2026-05-04 09:46:48 +01:00
committed by GitHub
parent c9b2a5734e
commit f3138a88c5
182 changed files with 8318 additions and 4660 deletions
+7 -206
View File
@@ -1,210 +1,11 @@
@use "sass:meta";
@import "primeicons/primeicons.css";
@import "@angular/cdk/overlay-prebuilt.css";
@include meta.load-css("assets/styles/tokens.css");
@include meta.load-css("assets/styles/reset");
@include meta.load-css("assets/layout/styles/global");
html {
font-family: var(--font-family), "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}
:root {
--book-type-pdf-color: #dc2626;
--book-type-epub-color: #16a34a;
--book-type-cbx-color: #3b82f6;
--book-type-cbz-color: #06b6d4;
--book-type-cbr-color: #f97316;
--book-type-cb7-color: #8b5cf6;
--book-type-fb2-color: #ec4899;
--book-type-mobi-color: #6366f1;
--book-type-azw3-color: #14b8a6;
--book-type-audiobook-color: #eab308;
--book-type-m4b-color: #eab308;
--book-type-mp3-color: #84cc16;
--book-type-m4a-color: #f43f5e;
--book-type-opus-color: #06b6d4;
--book-type-physical-color: #8b5cf6;
// Search Context
--app-search-width-desktop: 450px;
}
* {
&::-webkit-scrollbar {
width: 8px;
height: 8px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: var(--surface-600);
border-radius: 10px;
&:hover {
background: var(--surface-500);
}
}
scrollbar-width: thin;
scrollbar-color: var(--surface-600) transparent;
}
.chart-info-tooltip.p-tooltip {
--p-tooltip-max-width: 25rem;
}
.chart-info-icon {
color: rgb(255 255 255 / 35%);
font-size: 0.9rem;
cursor: help;
transition: color 0.2s ease;
&:hover {
color: rgb(255 255 255 / 80%);
}
}
.virtual-scroller {
.virtual-content {
position: relative;
width: 100%;
}
.virtual-cell {
position: absolute;
top: 0;
left: 0;
display: flex;
justify-content: center;
box-sizing: border-box;
}
.virtual-cell > app-author-card,
.virtual-cell > app-book-card,
.virtual-cell > app-series-card {
display: block;
width: 100%;
height: 100%;
}
.virtual-scroller-item {
position: relative;
}
}
.browser-grid-options {
display: flex;
gap: 0.5rem;
}
.browser-grid-option-btn {
flex: 1;
padding: 0.25rem 0.5rem;
border: 1px solid var(--p-content-border-color);
border-radius: 6px;
background-color: var(--card-background);
color: var(--text-color);
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.15s ease;
&:hover {
border-color: var(--primary-color);
}
&.active {
background-color: var(--primary-color);
border-color: var(--primary-color);
color: var(--primary-color-text);
}
}
.p-toast {
top: 4rem !important;
}
.p-inputchips {
width: 100% !important;
}
.p-inputchips .p-inputchips-input {
width: 100% !important;
}
.p-inputchips input.p-inputtext {
width: 100% !important;
}
.footer-menu .p-tieredmenu-submenu {
top: auto !important;
bottom: 0;
}
// Global Search Results Popover (Appended to Body)
.p-popover.search-results-popover {
padding: 0;
background: var(--card-background);
border-radius: 8px;
box-shadow: 0 10px 40px -10px rgb(0 0 0 / 50%);
border: 1px solid var(--border-color);
overflow: hidden;
@media (width >= 768px) {
width: var(--app-search-width-desktop) !important; // Match the search input exactly
}
.p-popover-content {
padding: 0;
background: transparent;
border: none;
}
.search-dropdown {
width: 100%;
@media (width >= 768px) {
width: var(--app-search-width-desktop);
}
}
}
.progress-incomplete .p-progressbar-value {
background-color: #3b82f6;
}
.progress-complete .p-progressbar-value {
background-color: #22c55e;
}
.progress-incomplete-ko .p-progressbar-value {
background-color: #fbbf24;
}
.progress-complete-ko .p-progressbar-value {
background-color: #8b5cf6;
}
.progress-incomplete-kobo .p-progressbar-value {
background-color: #bf0000;
}
.progress-complete-kobo .p-progressbar-value {
background-color: #f65c9c;
}
.cover-progress-bar {
--p-progressbar-border-radius: 0 !important;
}
.custom-button-padding .p-button {
padding-block: 0.25rem !important;
}
.book-details-dialog .p-dialog-header {
padding: 1rem 1.25rem !important;
}
@include meta.load-css("assets/styles/base");
@include meta.load-css("assets/styles/page");
@include meta.load-css("assets/styles/layout");
@include meta.load-css("assets/styles/overlays");
@include meta.load-css("assets/styles/utilities");
@include meta.load-css("assets/styles/prime-compat");