* fix(dashboard): improve performance with OnPush change detection * fix(dashboard): refactor book card component for improved readability and performance * fix(tests): mock matchMedia for improved test compatibility * fix(tests): matchMedia mock for better CI compatibility and support * fix(dashboard): add clearAll method to BookBrowserScrollService and update tests * fix(dashboard): improve performance with content visibility and refactor styles * fix(dashboard): improve scroll performance with estimated total height and refactor layout * fix(tests): add mock for getCurrentUser in userService for improved test coverage * fix(dashboard): implement infinite scroll for book loading and scroll restoration * fix(tests): fix lint error * fix(tests): mock ResizeObserver and IntersectionObserver * fix(tests): mock ResizeObserver and IntersectionObserver (again) * fix(dashboard): improve accessibility and performance by updating aria attributes and optimizing animations * fix(dashboard): improve submenu accessibility and optimize virtual scroller performance * fix(dashboard): clean up imports and improve component structure * fix(dashboard): correct mobile check in author browser component * fix(dashboard): add OnDestroy lifecycle hook to BookBrowserComponent
154 lines
3.1 KiB
SCSS
154 lines
3.1 KiB
SCSS
@use "sass:meta";
|
|
@import "primeicons/primeicons.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: 12px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-track {
|
|
background: rgb(0 0 0 / 10%);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background: rgb(128 128 128 / 50%);
|
|
border-radius: 10px;
|
|
|
|
&:hover {
|
|
background: rgb(128 128 128 / 70%);
|
|
}
|
|
}
|
|
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgb(128 128 128 / 50%) rgb(0 0 0 / 10%);
|
|
}
|
|
|
|
.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%);
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|