feat(ui): New sidebar & search UI (#831)
This commit is contained in:
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
* Document defaults.
|
||||
*
|
||||
* This file owns browser-level app defaults: root sizing, body canvas,
|
||||
* baseline typography, links, scrollbars, and user preference handling.
|
||||
* Page structure belongs in page.scss; component styling belongs with the
|
||||
* component.
|
||||
*/
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
font-family: var(--font-family), "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
|
||||
font-size: var(--font-size-root);
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: var(--app-background);
|
||||
color: var(--text-color);
|
||||
font-family: var(--font-family), serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin: 1.5rem 0 1rem;
|
||||
color: var(--high-contrast-text-color);
|
||||
font-family: inherit;
|
||||
font-weight: 500;
|
||||
line-height: 1.2;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 1rem;
|
||||
color: var(--text-color);
|
||||
line-height: 1.5;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
p.p-secondary {
|
||||
color: var(--text-secondary-color);
|
||||
}
|
||||
|
||||
mark {
|
||||
padding: 0.25rem 0.4rem;
|
||||
border-radius: var(--radius-lg);
|
||||
background: #fff8e1;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 1rem 0;
|
||||
padding: 0 2rem;
|
||||
border-left: 4px solid #90a4ae;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 1rem 0;
|
||||
border-top: solid var(--border-color);
|
||||
border-width: 1px 0 0;
|
||||
}
|
||||
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: rgb(128 128 128 / 50%) rgb(0 0 0 / 10%);
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
border-radius: 10px;
|
||||
background: rgb(0 0 0 / 10%);
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
border-radius: 10px;
|
||||
background: rgb(128 128 128 / 50%);
|
||||
|
||||
&:hover {
|
||||
background: rgb(128 128 128 / 70%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
scroll-behavior: auto !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
@use "../layout/styles/layout/layout";
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Native CDK overlay hooks.
|
||||
*
|
||||
* CDK overlay panes/backdrops are attached outside component style scopes, so
|
||||
* shared overlay classes that are not PrimeNG-specific live here.
|
||||
*/
|
||||
|
||||
.command-palette-backdrop {
|
||||
background: rgb(0 0 0 / 50%);
|
||||
}
|
||||
|
||||
.command-palette-panel {
|
||||
display: flex;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
@media (width <= 991px) {
|
||||
.cdk-overlay-backdrop.command-palette-backdrop {
|
||||
top: 3.5rem;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Native route page contract.
|
||||
*
|
||||
* Use these classes when a routed page owns its page canvas and scroll area.
|
||||
* Keep them structural: background, padding, flow, and responsive rhythm.
|
||||
* Controls, cards, tables, and PrimeNG component styling belong elsewhere.
|
||||
*/
|
||||
|
||||
.app-page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--page-content-gap);
|
||||
min-height: 100%;
|
||||
padding: var(--page-gutter-block) var(--page-gutter-inline);
|
||||
overflow: auto;
|
||||
background-color: var(--page-background);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.app-page-flush {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.app-page-header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: var(--page-header-gap);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.app-page-title {
|
||||
margin: 0;
|
||||
color: var(--high-contrast-text-color);
|
||||
}
|
||||
|
||||
.app-page-description {
|
||||
max-width: 72ch;
|
||||
margin: 0;
|
||||
color: var(--text-color-secondary);
|
||||
}
|
||||
|
||||
.app-page-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--page-content-gap);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@media (width <= 768px) {
|
||||
.app-page {
|
||||
--page-gutter-block: var(--space-4);
|
||||
--page-gutter-inline: var(--space-4);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,250 @@
|
||||
/*
|
||||
* PrimeNG compatibility layer.
|
||||
*
|
||||
* Put only global PrimeNG adjustments here: rules that target Prime overlays,
|
||||
* document-level Prime output, or shared helper classes used across unrelated
|
||||
* components. Prime tweaks that belong to one component, dialog, or Sass mixin
|
||||
* should stay with that component or mixin until that surface is migrated.
|
||||
*
|
||||
* Native app/page/layout CSS should use app-owned tokens from tokens.css.
|
||||
* PrimeNG components can continue to use Prime's --p-* tokens.
|
||||
*/
|
||||
|
||||
.p-dialog {
|
||||
--card-background: var(--surface-content);
|
||||
|
||||
@media (width <= 768px) {
|
||||
width: 95vw !important;
|
||||
max-width: 95vw !important;
|
||||
max-height: 95dvh !important;
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-xs.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.dialog-sm.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 550px;
|
||||
}
|
||||
|
||||
.dialog-md.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.dialog-lg.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
.dialog-xl.p-dialog {
|
||||
width: 95vw;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
.dialog-full.p-dialog {
|
||||
width: 95vw;
|
||||
max-width: 95vw;
|
||||
height: 95dvh;
|
||||
max-height: 95dvh;
|
||||
|
||||
.p-dialog-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-minimal.p-dialog {
|
||||
border: none;
|
||||
|
||||
.p-dialog-content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.dynamic-dialog-minimal.p-dialog {
|
||||
border: none;
|
||||
|
||||
.p-dialog-content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-maximal.p-dialog {
|
||||
width: 95vw;
|
||||
max-width: 1200px;
|
||||
height: 95dvh;
|
||||
max-height: 95dvh;
|
||||
}
|
||||
|
||||
.dialog-medium.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 900px;
|
||||
height: 90dvh;
|
||||
max-height: 90dvh;
|
||||
}
|
||||
|
||||
.p-confirmdialog {
|
||||
width: 90vw;
|
||||
max-width: 500px;
|
||||
|
||||
.p-confirmdialog-message {
|
||||
overflow-wrap: break-word;
|
||||
white-space: pre-line;
|
||||
}
|
||||
}
|
||||
|
||||
.p-toast {
|
||||
top: 4rem !important;
|
||||
}
|
||||
|
||||
.p-inputchips,
|
||||
.p-inputchips .p-inputchips-input,
|
||||
.p-inputchips input.p-inputtext {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.footer-menu .p-tieredmenu-submenu {
|
||||
top: auto !important;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.chart-info-tooltip.p-tooltip {
|
||||
--p-tooltip-max-width: 25rem;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.sidebar-flyout-popover.p-popover,
|
||||
.sidebar-more-menu.p-menu,
|
||||
.sidebar-user-menu.p-menu {
|
||||
position: fixed !important;
|
||||
top: auto !important;
|
||||
bottom: var(--sidebar-popover-bottom, 0.75rem) !important;
|
||||
left: var(--sidebar-popover-left, calc(var(--sidebar-width, 225px) + 0.5rem)) !important;
|
||||
margin: 0 !important;
|
||||
transform: none !important;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-footer-popover.p-popover,
|
||||
.sidebar-footer-popover.p-menu {
|
||||
left: var(--sidebar-popover-left, calc(var(--sidebar-width, 225px) + 0.5rem)) !important;
|
||||
}
|
||||
|
||||
@media (width <= 991px) {
|
||||
.sidebar-flyout-popover.p-popover {
|
||||
max-width: calc(100vw - 1rem) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-user-menu.p-menu {
|
||||
min-width: 220px;
|
||||
|
||||
.sidebar-user-menu-header,
|
||||
.sidebar-user-menu-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.sidebar-user-menu-header {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.sidebar-user-menu-footer {
|
||||
justify-content: space-between;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-top: 1px solid var(--border-color);
|
||||
color: var(--text-color-secondary);
|
||||
font-size: var(--text-xs);
|
||||
}
|
||||
|
||||
.sidebar-user-avatar {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
width: 1.75rem;
|
||||
height: 1.75rem;
|
||||
border-radius: var(--radius-pill);
|
||||
background-color: color-mix(in srgb, var(--primary-color) 18%, transparent);
|
||||
color: var(--primary-color);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.sidebar-user-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.sidebar-user-name {
|
||||
overflow: hidden;
|
||||
color: var(--text-color);
|
||||
font-size: var(--text-base);
|
||||
font-weight: 500;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sidebar-user-handle {
|
||||
overflow: hidden;
|
||||
color: var(--text-color-secondary);
|
||||
font-size: var(--text-xs);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sidebar-user-update {
|
||||
color: var(--primary-color);
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
@@ -1,32 +1,35 @@
|
||||
/*
|
||||
* App-owned design tokens.
|
||||
*
|
||||
* Keep this file to CSS variables that define app-level color,
|
||||
* spacing, type, radius, focus, shadow, and motion decisions. Do not add
|
||||
* selectors, component rules, or PrimeNG overrides here.
|
||||
*
|
||||
* These values are the static defaults. AppConfigService updates the
|
||||
* palette-backed primary and surface tokens at runtime when the saved theme
|
||||
* configuration is applied.
|
||||
*/
|
||||
|
||||
:root {
|
||||
/* Primary */
|
||||
--primary-color: #4ade80;
|
||||
--primary-color-rgb: 74, 222, 128;
|
||||
--primary-contrast-color: #1a1e21;
|
||||
--primary-hover-color: #86efac;
|
||||
--primary-text-color: #4ade80;
|
||||
--primary-text-color-dark: #14532d;
|
||||
/*
|
||||
* Palette tokens
|
||||
*
|
||||
* Raw shade scales from the selected theme palettes. Prefer semantic tokens
|
||||
* below for ordinary app styling; use shade tokens when a design needs a
|
||||
* specific step in the palette, such as a gradient or tonal variant.
|
||||
*/
|
||||
--primary-50: #fff7ed;
|
||||
--primary-100: #ffedd5;
|
||||
--primary-200: #fed7aa;
|
||||
--primary-300: #fdba74;
|
||||
--primary-400: #fb923c;
|
||||
--primary-500: #f97316;
|
||||
--primary-600: #ea580c;
|
||||
--primary-700: #c2410c;
|
||||
--primary-800: #9a3412;
|
||||
--primary-900: #7c2d12;
|
||||
--primary-950: #431407;
|
||||
|
||||
/* Text */
|
||||
--text-color: #ffffff;
|
||||
--text-color-secondary: #b4bcc7;
|
||||
--text-secondary-color: #919ca9;
|
||||
--text-muted-color: #919ca9;
|
||||
--high-contrast-text-color: #ffffff;
|
||||
|
||||
/* Surfaces */
|
||||
--ground-background: #0d1012;
|
||||
--overlay-background: #1a1e21;
|
||||
--card-background: #1a1e21;
|
||||
--content-background: #1a1e21;
|
||||
--code-background: #1a1e21;
|
||||
|
||||
/* Borders */
|
||||
--border-color: #464f56;
|
||||
--content-border-color: #464f56;
|
||||
--card-border: 1px solid transparent;
|
||||
|
||||
/* Surface scale */
|
||||
--surface-0: #ffffff;
|
||||
--surface-50: #f4f6f8;
|
||||
--surface-100: #e6e9ed;
|
||||
@@ -40,14 +43,116 @@
|
||||
--surface-900: #1a1e21;
|
||||
--surface-950: #0d1012;
|
||||
|
||||
/*
|
||||
* Semantic tokens
|
||||
*
|
||||
* App-level decisions derived from the palette scales. New native app,
|
||||
* layout, and page styles should use these by default.
|
||||
*/
|
||||
--primary-color: var(--primary-400);
|
||||
--primary-color-rgb: 249, 115, 22;
|
||||
--primary-contrast-color: #1a1e21;
|
||||
--primary-hover-color: var(--primary-300);
|
||||
--primary-text-color: var(--primary-400);
|
||||
--primary-text-color-dark: var(--primary-900);
|
||||
|
||||
/* Text */
|
||||
--text-color: #ffffff;
|
||||
--text-color-secondary: #b4bcc7;
|
||||
--text-secondary-color: #919ca9;
|
||||
--text-muted-color: #919ca9;
|
||||
--high-contrast-text-color: #ffffff;
|
||||
|
||||
/* App surfaces */
|
||||
--app-background: #0d1012;
|
||||
--page-background: color-mix(in srgb, var(--surface-900) 82%, var(--surface-950));
|
||||
--surface-content: #1a1e21;
|
||||
--surface-card: color-mix(in srgb, var(--surface-900) 62%, var(--surface-800));
|
||||
--surface-toolbar: color-mix(in srgb, var(--app-background) 70%, var(--surface-content));
|
||||
--surface-overlay: #1a1e21;
|
||||
|
||||
/* Borders */
|
||||
--border-subtle: #34393e;
|
||||
--border-strong: #464f56;
|
||||
|
||||
/* Interaction */
|
||||
--surface-hover: color-mix(in srgb, var(--surface-400) 12%, transparent);
|
||||
--surface-border: var(--surface-700);
|
||||
--state-hover: color-mix(in srgb, var(--surface-400) 12%, transparent);
|
||||
--state-active: color-mix(in srgb, var(--primary-color) 8%, transparent);
|
||||
|
||||
/* Focus */
|
||||
--focus-ring-offset: 2px;
|
||||
--focus-ring: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 40%, transparent);
|
||||
|
||||
/* Typography */
|
||||
--font-size-root: 14px;
|
||||
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
|
||||
/* Type scale */
|
||||
--text-xs: 0.75rem;
|
||||
--text-sm: 0.875rem;
|
||||
--text-base: 1rem;
|
||||
--text-lg: 1.125rem;
|
||||
--text-xl: 1.5rem;
|
||||
|
||||
/* Spacing scale (4px base) */
|
||||
--space-1: 0.25rem;
|
||||
--space-2: 0.5rem;
|
||||
--space-3: 0.75rem;
|
||||
--space-4: 1rem;
|
||||
--space-5: 1.25rem;
|
||||
--space-6: 1.5rem;
|
||||
|
||||
/* Radius scale */
|
||||
--radius-sm: 4px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
--radius-pill: 999px;
|
||||
|
||||
/* Motion */
|
||||
--transition-fast: 0.15s ease;
|
||||
--transition-base: 0.2s ease;
|
||||
|
||||
/* Shadows */
|
||||
--shadow-sm: 0 2px 4px rgb(0 0 0 / 25%);
|
||||
--shadow-overlay: 0 30px 80px -20px rgb(0 0 0 / 70%), 0 10px 30px -10px rgb(0 0 0 / 50%);
|
||||
|
||||
/* Native page shell */
|
||||
--page-gutter-block: var(--space-5);
|
||||
--page-gutter-inline: var(--space-5);
|
||||
--page-header-gap: var(--space-4);
|
||||
--page-content-gap: var(--space-4);
|
||||
|
||||
/*
|
||||
* Compatibility aliases
|
||||
*
|
||||
* Existing app styles still use these names. Prefer the canonical semantic
|
||||
* tokens above for new native layout and page CSS.
|
||||
*/
|
||||
--ground-background: var(--app-background);
|
||||
--overlay-background: var(--surface-overlay);
|
||||
--card-background: var(--surface-card);
|
||||
--content-background: var(--surface-content);
|
||||
--code-background: var(--surface-content);
|
||||
--border-color: var(--border-subtle);
|
||||
--content-border-color: var(--border-subtle);
|
||||
--card-border: 1px solid transparent;
|
||||
--surface-hover: var(--state-hover);
|
||||
--surface-border: var(--border-subtle);
|
||||
|
||||
/* Book format colors */
|
||||
--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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Small global utilities.
|
||||
*
|
||||
* Keep this file limited to generic helpers that are safe anywhere in the app.
|
||||
* Prefer component styles for feature-specific layout or presentation.
|
||||
*/
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.gradient-divider {
|
||||
flex-shrink: 0;
|
||||
height: 1px;
|
||||
min-height: 1px;
|
||||
margin: 0.25rem 0;
|
||||
background: linear-gradient(90deg, transparent, var(--border-color), transparent);
|
||||
}
|
||||
|
||||
.chart-info-icon {
|
||||
color: rgb(255 255 255 / 35%);
|
||||
font-size: 0.9rem;
|
||||
cursor: help;
|
||||
transition: color var(--transition-base);
|
||||
|
||||
&: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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user