feat(ui): New sidebar & search UI (#831)
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
<path d="M115.158 134.615H51.8291V142.306H115.158C117.279 142.306 118.996 140.585 118.996 138.461C118.996 136.336 117.279 134.615 115.158 134.615Z" fill="url(#paint1_linear_2_61)"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_2_61" x1="59.5" y1="0" x2="59.5" y2="142.306" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0%" style="stop-color: var(--p-primary-300, #fdba74)"/>
|
||||
<stop offset="100%" style="stop-color: var(--p-primary-500, #f97316)"/>
|
||||
<stop offset="0%" style="stop-color: var(--primary-300, #fdba74)"/>
|
||||
<stop offset="100%" style="stop-color: var(--primary-500, #f97316)"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_2_61" x1="59.5" y1="0" x2="59.5" y2="142.306" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0%" style="stop-color: var(--p-primary-300, #fdba74)"/>
|
||||
<stop offset="100%" style="stop-color: var(--p-primary-500, #f97316)"/>
|
||||
<stop offset="0%" style="stop-color: var(--primary-300, #fdba74)"/>
|
||||
<stop offset="100%" style="stop-color: var(--primary-500, #f97316)"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -1,131 +0,0 @@
|
||||
@use 'layout/layout.scss';
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Dialog Base Styles
|
||||
// =============================================================================
|
||||
|
||||
.p-dialog {
|
||||
@media (width <= 768px) {
|
||||
width: 95vw !important;
|
||||
max-width: 95vw !important;
|
||||
max-height: 95dvh !important;
|
||||
}
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Dialog Size Classes
|
||||
// Use these to control dialog dimensions. Sizes are designed for common use cases.
|
||||
// =============================================================================
|
||||
|
||||
// Extra Small - confirmations, simple alerts (~400px)
|
||||
.dialog-xs.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
// Small - simple forms, pickers (~550px)
|
||||
.dialog-sm.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 550px;
|
||||
}
|
||||
|
||||
// Medium - standard dialogs (~700px)
|
||||
.dialog-md.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
// Large - complex forms, lists (~900px)
|
||||
.dialog-lg.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
// Extra Large - data-heavy views (~1200px)
|
||||
.dialog-xl.p-dialog {
|
||||
width: 95vw;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
// Full - viewport filling dialogs
|
||||
.dialog-full.p-dialog {
|
||||
width: 95vw;
|
||||
max-width: 95vw;
|
||||
height: 95dvh;
|
||||
max-height: 95dvh;
|
||||
|
||||
.p-dialog-content {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Dialog Style Modifiers
|
||||
// Composable with size classes (e.g., 'dialog-lg dialog-minimal')
|
||||
// =============================================================================
|
||||
|
||||
// Minimal - removes padding for custom headers/content
|
||||
.dialog-minimal.p-dialog {
|
||||
border: none;
|
||||
|
||||
.p-dialog-content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Legacy Aliases (for backward compatibility)
|
||||
// =============================================================================
|
||||
|
||||
// @deprecated Use 'dialog-minimal' instead
|
||||
.dynamic-dialog-minimal.p-dialog {
|
||||
border: none;
|
||||
|
||||
.p-dialog-content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// @deprecated Use 'dialog-xl' or 'dialog-full' instead
|
||||
.dialog-maximal.p-dialog {
|
||||
width: 95vw;
|
||||
max-width: 1200px;
|
||||
height: 95dvh;
|
||||
max-height: 95dvh;
|
||||
}
|
||||
|
||||
// @deprecated Use 'dialog-lg' instead
|
||||
.dialog-medium.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 900px;
|
||||
height: 90dvh;
|
||||
max-height: 90dvh;
|
||||
}
|
||||
|
||||
.gradient-divider {
|
||||
min-height: 1px;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, var(--border-color), transparent);
|
||||
margin: 0.25rem 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Confirmation Dialog Styles
|
||||
// =============================================================================
|
||||
|
||||
.p-confirmdialog {
|
||||
max-width: 500px;
|
||||
width: 90vw;
|
||||
|
||||
.p-confirmdialog-message {
|
||||
white-space: pre-line;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,20 @@
|
||||
@use "variables";
|
||||
|
||||
.layout-main-container {
|
||||
.layout-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100dvh;
|
||||
justify-content: space-between;
|
||||
padding: 5rem 1.1rem 1.1rem 3.6rem;
|
||||
transition: margin-left variables.$transition-duration;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
width: -webkit-fill-available;
|
||||
grid-area: main;
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
height: 100dvh;
|
||||
overflow: hidden;
|
||||
background-color: var(--page-background);
|
||||
}
|
||||
|
||||
.layout-main {
|
||||
.layout-main > router-outlet + * {
|
||||
display: block;
|
||||
flex: 1 1 auto;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@@ -1,40 +1,12 @@
|
||||
@use "variables";
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
font-size: variables.$scale;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-family), serif;
|
||||
color: var(--text-color);
|
||||
background-color: var(--ground-background);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100%;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.layout-wrapper {
|
||||
display: grid;
|
||||
grid-template: "sidebar main" minmax(0, 1fr) / var(--sidebar-width, 225px) minmax(0, 1fr);
|
||||
height: 100dvh;
|
||||
min-height: 100dvh;
|
||||
overflow: hidden;
|
||||
scroll-behavior: smooth;
|
||||
background-color: var(--ground-background);
|
||||
}
|
||||
|
||||
p {
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
p.p-secondary {
|
||||
color: var(--text-secondary-color);
|
||||
background-color: var(--app-background);
|
||||
transition: grid-template-columns variables.$transition-duration;
|
||||
}
|
||||
|
||||
@@ -1,21 +1,230 @@
|
||||
@use "mixins";
|
||||
@use "variables";
|
||||
|
||||
:root {
|
||||
--sidebar-collapsed-width: 61px;
|
||||
--sidebar-collapsed-shell-padding-inline: var(--space-4);
|
||||
--sidebar-collapsed-row-padding-inline: var(--space-2);
|
||||
}
|
||||
|
||||
.layout-sidebar {
|
||||
position: fixed;
|
||||
--sidebar-shell-padding-inline-start: var(--space-4);
|
||||
--sidebar-shell-padding-inline-end: var(--space-3);
|
||||
--sidebar-header-padding-block: var(--space-4);
|
||||
--sidebar-header-padding-inline-start: var(--space-2);
|
||||
--sidebar-header-padding-inline-end: var(--space-1);
|
||||
--sidebar-header-gap-after: var(--space-2);
|
||||
--sidebar-row-min-height: 2.25rem;
|
||||
--sidebar-row-padding-block: var(--space-2);
|
||||
--sidebar-row-padding-inline-start: var(--space-2);
|
||||
--sidebar-row-padding-inline-end: var(--space-1);
|
||||
--sidebar-row-gap: var(--space-2);
|
||||
--sidebar-row-radius: var(--radius-md);
|
||||
--sidebar-row-icon-size: 18px;
|
||||
--sidebar-row-label-offset: var(--space-1);
|
||||
--sidebar-group-gap: var(--space-3);
|
||||
--sidebar-section-spacing-before: var(--space-3);
|
||||
--sidebar-section-spacing-after: var(--space-1);
|
||||
--sidebar-section-min-height: 1.25rem;
|
||||
--sidebar-section-inline-start: var(--space-2);
|
||||
--sidebar-section-inline-end: var(--space-3);
|
||||
--sidebar-section-font-size: var(--text-xs);
|
||||
--sidebar-section-font-weight: 500;
|
||||
--sidebar-focus-ring: inset 0 0 0 1px color-mix(in srgb, var(--primary-color) 50%, transparent);
|
||||
|
||||
position: relative;
|
||||
grid-area: sidebar;
|
||||
width: var(--sidebar-width, 225px);
|
||||
height: calc(100dvh - 6.1rem);
|
||||
height: 100dvh;
|
||||
z-index: 999;
|
||||
overflow-y: auto;
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
top: 5rem;
|
||||
left: 1.1rem;
|
||||
transition: transform variables.$transition-duration, left variables.$transition-duration;
|
||||
background-color: var(--card-background);
|
||||
border: 1px solid var(--content-border-color);
|
||||
border-radius: variables.$border-radius;
|
||||
padding: 0.5rem 0.8rem 0.5rem 1.35rem;
|
||||
box-shadow: 0 3px 5px rgb(0 0 0 / 2%), 0 0 2px rgb(0 0 0 / 5%), 0 1px 4px rgb(0 0 0 / 8%);
|
||||
transition: transform var(--transition-base),
|
||||
width var(--transition-base);
|
||||
background-color: var(--app-background);
|
||||
border-right: 1px solid var(--border-color);
|
||||
padding: var(--space-3) var(--sidebar-shell-padding-inline-end) var(--space-3) var(--sidebar-shell-padding-inline-start);
|
||||
}
|
||||
|
||||
.layout-sidebar-resize-handle {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 8px;
|
||||
height: 100%;
|
||||
z-index: 1000;
|
||||
cursor: col-resize;
|
||||
}
|
||||
|
||||
.layout-wrapper.layout-sidebar-hidden .layout-sidebar-resize-handle,
|
||||
.layout-wrapper.layout-collapsed .layout-sidebar-resize-handle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (width <= 991px) {
|
||||
.layout-sidebar-resize-handle {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Keep col-resize cursor during drag even when the mouse leaves the narrow
|
||||
handle, and kill grid/width transitions so the drag follows the mouse
|
||||
one-to-one instead of animating. */
|
||||
body.layout-resizing-cursor {
|
||||
cursor: col-resize !important;
|
||||
user-select: none;
|
||||
|
||||
.layout-wrapper,
|
||||
.layout-sidebar {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-section-divider {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-flyout .sidebar-flyout-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-1);
|
||||
min-width: 180px;
|
||||
|
||||
.sidebar-flyout-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-color);
|
||||
font-size: var(--text-base);
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--surface-hover);
|
||||
}
|
||||
|
||||
app-icon-display {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.layout-wrapper.layout-collapsed {
|
||||
/* Hide all text/trailing content. Icons keep their expanded padding so the
|
||||
left edge → icon spacing is identical in both states. */
|
||||
.menu-item-text,
|
||||
.book-count,
|
||||
.menu-item-chevron,
|
||||
.entity-menu-button,
|
||||
.menu-item-end-content,
|
||||
.sidebar-action-link span,
|
||||
.sidebar-user-trigger .sidebar-user-meta,
|
||||
.sidebar-search-shortcut {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Swap the full wordmark for the G-only mark. */
|
||||
.sidebar-brand-wordmark {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-brand-mark {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.sidebar-brand {
|
||||
grid-template-columns: var(--sidebar-row-icon-size);
|
||||
}
|
||||
|
||||
/* Section headings swap for thin dividers. */
|
||||
.layout-root-menuitem > .layout-menuitem-root-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-section-divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
height: var(--sidebar-section-min-height);
|
||||
min-height: var(--sidebar-section-min-height);
|
||||
margin: var(--sidebar-section-spacing-before) 0 var(--sidebar-section-spacing-after);
|
||||
}
|
||||
|
||||
.sidebar-section-divider::before {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
margin: 0 0.4rem;
|
||||
background-color: var(--border-color);
|
||||
}
|
||||
|
||||
/* Library/Shelf/Magic Shelf children always visible (no toggle heading to drive collapse). */
|
||||
.submenu-container:not(.has-flyout) {
|
||||
grid-template-rows: 1fr;
|
||||
}
|
||||
|
||||
/* Tools inline submenu replaced by flyout popover. */
|
||||
.submenu-container.has-flyout {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Collapsed mode overrides the shell and row padding tokens so the icon rail,
|
||||
brand, and row surfaces all share the same geometry. */
|
||||
.layout-sidebar {
|
||||
--sidebar-shell-padding-inline-start: var(--sidebar-collapsed-shell-padding-inline);
|
||||
--sidebar-shell-padding-inline-end: var(--sidebar-collapsed-shell-padding-inline);
|
||||
--sidebar-row-padding-inline-start: var(--sidebar-collapsed-row-padding-inline);
|
||||
--sidebar-row-padding-inline-end: var(--sidebar-collapsed-row-padding-inline);
|
||||
}
|
||||
|
||||
/* The global app scrollbar is 12px wide, which eats a huge chunk of the
|
||||
collapsed rail. Keep scrolling enabled, but hide the scrollbar chrome in
|
||||
the minimized sidebar. */
|
||||
.sidebar-nav {
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
.sidebar-nav::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
|
||||
.sidebar-footer-actions {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.sidebar-footer-action {
|
||||
justify-content: flex-start;
|
||||
padding: var(--sidebar-row-padding-block) var(--sidebar-row-padding-inline-start) var(--sidebar-row-padding-block) var(--sidebar-row-padding-inline-start);
|
||||
}
|
||||
|
||||
.sidebar-footer-bottom {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sidebar-footer-bottom .sidebar-user-trigger {
|
||||
flex: 0 0 auto;
|
||||
align-self: stretch;
|
||||
}
|
||||
|
||||
.sidebar-collapse-button {
|
||||
margin-left: 0;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.sidebar-collapse-button i {
|
||||
width: var(--sidebar-row-icon-size);
|
||||
height: var(--sidebar-row-icon-size);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,119 +233,26 @@
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.layout-menuitem-text {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.layout-root-menuitem {
|
||||
> .layout-menuitem-root-text {
|
||||
font-size: .857rem;
|
||||
text-transform: uppercase;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary-color);
|
||||
margin: .75rem 0;
|
||||
}
|
||||
|
||||
> a {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
user-select: none;
|
||||
|
||||
&.active-menuitem {
|
||||
> .layout-submenu-toggler {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li.active-menuitem {
|
||||
> a {
|
||||
.layout-submenu-toggler {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
outline: 0 none;
|
||||
color: var(--text-color);
|
||||
cursor: pointer;
|
||||
padding: 0.45rem 0.3rem 0.45rem 0.6rem;
|
||||
border-radius: variables.$border-radius;
|
||||
transition: background-color variables.$transition-duration, box-shadow variables.$transition-duration;
|
||||
|
||||
.layout-submenu-toggler {
|
||||
font-size: 75%;
|
||||
margin-left: auto;
|
||||
transition: transform variables.$transition-duration;
|
||||
}
|
||||
|
||||
&.active-route {
|
||||
font-weight: 700;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: var(--surface-hover);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
@include mixins.focused-inset;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
overflow: hidden;
|
||||
border-radius: variables.$border-radius;
|
||||
|
||||
li {
|
||||
a {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
li {
|
||||
a {
|
||||
margin-left: 2rem;
|
||||
}
|
||||
|
||||
li {
|
||||
a {
|
||||
margin-left: 2.5rem;
|
||||
}
|
||||
|
||||
li {
|
||||
a {
|
||||
margin-left: 3rem;
|
||||
}
|
||||
|
||||
li {
|
||||
a {
|
||||
margin-left: 3.5rem;
|
||||
}
|
||||
|
||||
li {
|
||||
a {
|
||||
margin-left: 4rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.layout-root-menuitem > .layout-menuitem-root-text {
|
||||
box-sizing: border-box;
|
||||
font-size: var(--sidebar-section-font-size);
|
||||
font-weight: var(--sidebar-section-font-weight);
|
||||
color: var(--text-color-secondary);
|
||||
height: var(--sidebar-section-min-height);
|
||||
min-height: var(--sidebar-section-min-height);
|
||||
margin: var(--sidebar-section-spacing-before) 0 var(--sidebar-section-spacing-after);
|
||||
padding-inline: var(--sidebar-section-inline-start) var(--sidebar-section-inline-end);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,32 +1,12 @@
|
||||
@use "variables";
|
||||
|
||||
@media screen and (width >= 1960px) {
|
||||
.layout-main {
|
||||
width: 100%;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media (width >= 992px) {
|
||||
.layout-wrapper {
|
||||
&.layout-static {
|
||||
.layout-main-container {
|
||||
padding-left: calc(var(--sidebar-width, 225px) + 30px);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
&.layout-sidebar-hidden {
|
||||
grid-template-columns: 0 minmax(0, 1fr);
|
||||
|
||||
&.layout-static-inactive {
|
||||
.layout-sidebar {
|
||||
transform: translateX(-100%);
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.layout-main-container {
|
||||
margin-left: 0;
|
||||
padding: 5rem 1.1rem 1.1rem;
|
||||
}
|
||||
.layout-sidebar {
|
||||
transform: translateX(-100%);
|
||||
pointer-events: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,21 +22,63 @@
|
||||
}
|
||||
|
||||
.layout-wrapper {
|
||||
.layout-main-container {
|
||||
padding-left: 1.1rem;
|
||||
display: block;
|
||||
|
||||
.layout-main {
|
||||
--mobile-topbar-height: 3.5rem;
|
||||
|
||||
box-sizing: border-box;
|
||||
padding-top: var(--mobile-topbar-height);
|
||||
}
|
||||
|
||||
.layout-sidebar {
|
||||
transform: translateX(-100%);
|
||||
left: 0;
|
||||
--mobile-sidebar-fade-duration: 220ms;
|
||||
--sidebar-shell-padding-inline-start: var(--space-4);
|
||||
--sidebar-shell-padding-inline-end: var(--space-4);
|
||||
--sidebar-header-padding-block: var(--space-2);
|
||||
--sidebar-header-gap-after: var(--space-3);
|
||||
--sidebar-row-min-height: 3rem;
|
||||
--sidebar-row-padding-block: var(--space-3);
|
||||
--sidebar-row-padding-inline-start: var(--space-3);
|
||||
--sidebar-row-padding-inline-end: var(--space-3);
|
||||
--sidebar-row-gap: var(--space-3);
|
||||
--sidebar-row-radius: var(--radius-lg);
|
||||
--sidebar-row-icon-size: 20px;
|
||||
--sidebar-group-gap: var(--space-4);
|
||||
--sidebar-section-spacing-before: var(--space-4);
|
||||
--sidebar-section-spacing-after: var(--space-1);
|
||||
--sidebar-section-min-height: 2rem;
|
||||
--sidebar-section-inline-start: var(--space-3);
|
||||
--sidebar-section-inline-end: var(--space-3);
|
||||
--sidebar-section-font-size: var(--text-base);
|
||||
--sidebar-section-font-weight: 600;
|
||||
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
box-sizing: border-box;
|
||||
width: min(24rem, calc(100vw - 1rem));
|
||||
max-width: 100vw;
|
||||
height: 100dvh;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
padding:
|
||||
calc(var(--space-3) + env(safe-area-inset-top))
|
||||
calc(var(--sidebar-shell-padding-inline-end) + env(safe-area-inset-right))
|
||||
calc(var(--space-3) + env(safe-area-inset-bottom))
|
||||
calc(var(--sidebar-shell-padding-inline-start) + env(safe-area-inset-left));
|
||||
box-shadow: 0 2px 8px rgb(0 0 0 / 10%), 0 24px 56px rgb(0 0 0 / 22%);
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
transform: none;
|
||||
transition:
|
||||
opacity var(--mobile-sidebar-fade-duration) ease,
|
||||
visibility 0s linear var(--mobile-sidebar-fade-duration);
|
||||
will-change: opacity;
|
||||
}
|
||||
|
||||
.layout-mask {
|
||||
display: none;
|
||||
--mobile-sidebar-fade-duration: 220ms;
|
||||
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
@@ -65,18 +87,28 @@
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
appearance: none;
|
||||
background-color: rgb(0 0 0 / 60%);
|
||||
transition:
|
||||
opacity var(--mobile-sidebar-fade-duration) ease,
|
||||
visibility 0s linear var(--mobile-sidebar-fade-duration);
|
||||
will-change: opacity;
|
||||
}
|
||||
|
||||
&.layout-mobile-active {
|
||||
.layout-sidebar {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
pointer-events: auto;
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
.layout-mask {
|
||||
display: block;
|
||||
animation: fadein variables.$transition-duration;
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transition-delay: 0s;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -84,8 +116,9 @@
|
||||
|
||||
@media (width <= 768px) {
|
||||
.layout-wrapper {
|
||||
.layout-main-container {
|
||||
padding: 4.4rem 0 0;
|
||||
.layout-sidebar {
|
||||
width: 100vw;
|
||||
border-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,239 +0,0 @@
|
||||
@use "variables";
|
||||
|
||||
.layout-topbar {
|
||||
position: fixed;
|
||||
height: 3.85rem;
|
||||
z-index: 997;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
padding: 0 1rem;
|
||||
background-color: color-mix(in srgb, var(--card-background) 25%, transparent);
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--content-border-color);
|
||||
transition: left variables.$transition-duration;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-shadow: 0 3px 5px rgb(0 0 0 / 2%), 0 0 2px rgb(0 0 0 / 5%), 0 1px 4px rgb(0 0 0 / 8%);
|
||||
|
||||
.layout-topbar-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 1.7rem;
|
||||
font-weight: 500;
|
||||
width: 265px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (width <= 991px) {
|
||||
.layout-topbar {
|
||||
.layout-topbar-logo {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.topbar-items {
|
||||
display: flex;
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
gap: 0.3rem;
|
||||
align-items: center;
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.topbar-item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
border: 1px solid var(--border-color);
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
transition: outline-color .2s, border-color .2s;
|
||||
border-radius: 6px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
outline-color: transparent;
|
||||
background-color: var(--card-background);
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
i, span {
|
||||
color: var(--text-color);
|
||||
}
|
||||
}
|
||||
|
||||
.config-item {
|
||||
background-color: var(--primary-color);
|
||||
|
||||
i {
|
||||
color: var(--primary-contrast-color);
|
||||
}
|
||||
}
|
||||
|
||||
.config-panel {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
inset-inline-end: 0;
|
||||
width: 18rem;
|
||||
padding: .75rem;
|
||||
background-color: var(--overlay-background);
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border-color);
|
||||
transform-origin: top;
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
|
||||
|
||||
&.notification-box {
|
||||
width: 30rem;
|
||||
background-color: var(--card-background);
|
||||
border: 0.25px solid var(--primary-color);
|
||||
border-radius: 4px;
|
||||
min-height: 5rem;
|
||||
}
|
||||
|
||||
.config-panel-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.config-panel-label {
|
||||
font-size: .875rem;
|
||||
color: var(--text-secondary-color);
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.config-panel-colors {
|
||||
> div {
|
||||
justify-content: flex-start;
|
||||
padding-top: .5rem;
|
||||
display: flex;
|
||||
gap: .5rem;
|
||||
flex-wrap: wrap;
|
||||
|
||||
button {
|
||||
border: none;
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
border-radius: 50%;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
outline: transparent solid 2px;
|
||||
outline-offset: 1px;
|
||||
|
||||
&.active-color {
|
||||
outline-color: var(--primary-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.config-panel-settings {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.layout-menu-button,
|
||||
.mobile-menu-trigger {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
padding: 0;
|
||||
border: 1px solid var(--border-color);
|
||||
background-color: var(--card-background);
|
||||
cursor: pointer;
|
||||
outline-color: transparent;
|
||||
transition: outline-color .2s, border-color .2s, transform .3s ease-in-out;
|
||||
|
||||
i {
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--primary-color);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.layout-menu-button {
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.mobile-menu-trigger {
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.rotate-left {
|
||||
transform: rotate(0deg);
|
||||
transition: transform 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.rotate-right {
|
||||
transform: rotate(180deg);
|
||||
transition: transform 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.half-title {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.multi-color-chart-icon {
|
||||
width: 1.3rem;
|
||||
height: 1.3rem;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
// Animation classes for pStyleClass directive (theme configurator dropdown)
|
||||
@keyframes scalein {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scaleY(0.8);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scaleY(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeout {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.animate-scalein {
|
||||
animation: scalein 0.15s ease-out forwards;
|
||||
}
|
||||
|
||||
.animate-fadeout {
|
||||
animation: fadeout 0.15s ease-out forwards;
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
@use "variables";
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin: 1.5rem 0 1rem;
|
||||
font-family: inherit;
|
||||
font-weight: 500;
|
||||
line-height: 1.2;
|
||||
color: var(--high-contrast-text-color);
|
||||
|
||||
&: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;
|
||||
}
|
||||
|
||||
mark {
|
||||
background: #FFF8E1;
|
||||
padding: .25rem .4rem;
|
||||
border-radius: variables.$border-radius;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 1rem 0;
|
||||
padding: 0 2rem;
|
||||
border-left: 4px solid #90A4AE;
|
||||
}
|
||||
|
||||
hr {
|
||||
border-top: solid var(--border-color);
|
||||
border-width: 1px 0 0;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 1rem;
|
||||
line-height: 1.5;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,6 @@
|
||||
@use '_variables';
|
||||
@use "_mixins";
|
||||
@use "_main";
|
||||
@use "_topbar";
|
||||
@use "_menu";
|
||||
@use "_content";
|
||||
@use "_responsive";
|
||||
@use "_typography";
|
||||
|
||||
@@ -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