* refactor(layout): decouple shell from PrimeNG * fix(frontend): review fixes for layout decoupling - Rewrite layout service spec to match new API surface - Remove dead ToastModule import from AppLayoutComponent - Add missing type="button" to profile and logout buttons - Add missing i18n keys to all non-English locales * chore(frontend): Layout shell consistency * chore(frontend): shell and routing improvements * chore(frontend): remove stray shimmer effect * chore(frontend): code cleanup * chore(ui): Fix navitem types consistency * chore(frontend): simplify layout structure + imports * chore(frontend): remove empty files * chore(frontend): Menu component cleanup * chore(frontend): remove nav translation layer * chore(frontend): revert stray artwork change * chore(frontend): revert author animation tweak * chore(frontend): review fixes * fix(frontend): restore topbar template after rebase conflict
632 lines
12 KiB
SCSS
632 lines
12 KiB
SCSS
.library-stats-container {
|
|
max-width: 2500px;
|
|
margin: 0 auto;
|
|
background: transparent;
|
|
height: calc(100dvh - 6.25rem);
|
|
overflow-y: auto;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.header-card {
|
|
background: var(--card-background);
|
|
border-radius: 8px;
|
|
padding: 25px;
|
|
margin-bottom: 30px;
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid var(--p-content-border-color);
|
|
box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
|
|
overflow: visible;
|
|
}
|
|
|
|
.filter-section {
|
|
display: flex;
|
|
justify-content: center;
|
|
|
|
.library-filter {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
|
|
.select-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
width: auto;
|
|
}
|
|
|
|
.dropdown-row {
|
|
display: flex;
|
|
width: 100%;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
label {
|
|
color: var(--text-color, #fff);
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
font-size: 1.15rem;
|
|
}
|
|
|
|
.library-totals {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
margin-top: 8px;
|
|
font-size: 0.95rem;
|
|
color: var(--text-secondary-color);
|
|
flex-wrap: wrap;
|
|
|
|
.total-item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: rgb(255 255 255 / 2%);
|
|
padding: 6px 10px;
|
|
border-radius: 6px;
|
|
border: 1px solid rgb(255 255 255 / 4%);
|
|
}
|
|
|
|
.pi {
|
|
font-size: 1.35rem;
|
|
color: var(--primary-color, #80bdff);
|
|
}
|
|
|
|
.total-label {
|
|
color: var(--text-secondary-color);
|
|
font-size: 0.9rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.total-value {
|
|
color: var(--text-color, #fff);
|
|
font-weight: 600;
|
|
margin-left: 4px;
|
|
font-size: 1.35rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.config-modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgb(0 0 0 / 70%);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.config-modal {
|
|
background: var(--card-background, rgb(30 30 30 / 95%));
|
|
border-radius: 12px;
|
|
box-shadow: 0 20px 40px rgb(0 0 0 / 40%);
|
|
border: 1px solid rgb(255 255 255 / 15%);
|
|
width: 100%;
|
|
max-width: 800px;
|
|
max-height: 80vh;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.config-modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 25px;
|
|
border-bottom: 1px solid rgb(255 255 255 / 10%);
|
|
background: var(--ground-background, rgb(40 40 40 / 80%));
|
|
|
|
h3 {
|
|
color: var(--text-color, #fff);
|
|
font-weight: 500;
|
|
font-size: 1.2rem;
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
|
|
.pi {
|
|
color: var(--primary-color, #80bdff);
|
|
font-size: 1.1rem;
|
|
}
|
|
}
|
|
|
|
.close-btn {
|
|
background: transparent;
|
|
border: 1px solid rgb(255 255 255 / 20%);
|
|
color: var(--text-color, #fff);
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
|
|
&:hover {
|
|
background: rgb(255 255 255 / 10%);
|
|
border-color: rgb(255 255 255 / 30%);
|
|
}
|
|
|
|
.pi {
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.config-modal-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 20px 25px;
|
|
border-bottom: 1px solid rgb(255 255 255 / 10%);
|
|
background: var(--ground-background, rgb(35 35 35 / 60%));
|
|
|
|
.config-action-btn {
|
|
background: rgb(255 255 255 / 10%);
|
|
border: 1px solid rgb(255 255 255 / 20%);
|
|
color: var(--text-color, #fff);
|
|
padding: 10px 16px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
font-weight: 500;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 1;
|
|
justify-content: center;
|
|
|
|
&:hover {
|
|
background: rgb(255 255 255 / 15%);
|
|
border-color: rgb(255 255 255 / 30%);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
&.enable-all {
|
|
background: rgb(34 197 94 / 20%);
|
|
border-color: rgb(34 197 94 / 40%);
|
|
color: #22c55e;
|
|
|
|
&:hover {
|
|
background: rgb(34 197 94 / 30%);
|
|
border-color: rgb(34 197 94 / 60%);
|
|
}
|
|
}
|
|
|
|
&.disable-all {
|
|
background: rgb(239 68 68 / 20%);
|
|
border-color: rgb(239 68 68 / 40%);
|
|
color: #ef4444;
|
|
|
|
&:hover {
|
|
background: rgb(239 68 68 / 30%);
|
|
border-color: rgb(239 68 68 / 60%);
|
|
}
|
|
}
|
|
|
|
&.reset-order {
|
|
background: rgb(251 191 36 / 20%);
|
|
border-color: rgb(251 191 36 / 40%);
|
|
color: #fbbf24;
|
|
|
|
&:hover {
|
|
background: rgb(251 191 36 / 30%);
|
|
border-color: rgb(251 191 36 / 60%);
|
|
}
|
|
}
|
|
|
|
.pi {
|
|
font-size: 0.85rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.config-modal-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 20px 25px;
|
|
|
|
.config-categories {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 25px;
|
|
|
|
.config-category {
|
|
h4 {
|
|
color: var(--text-color, #fff);
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin: 0 0 15px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 2px solid var(--primary-color, #80bdff);
|
|
display: flex;
|
|
align-items: center;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.chart-toggles {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.chart-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
transition: background-color 0.2s ease;
|
|
|
|
&:hover {
|
|
background: rgb(255 255 255 / 5%);
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
accent-color: var(--primary-color, #80bdff);
|
|
cursor: pointer;
|
|
}
|
|
|
|
label {
|
|
color: var(--text-secondary-color);
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: color 0.2s ease;
|
|
flex: 1;
|
|
|
|
&:hover {
|
|
color: var(--text-color, #fff);
|
|
}
|
|
}
|
|
|
|
input[type="checkbox"]:checked + label {
|
|
color: var(--text-color, #fff);
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.charts-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
position: relative;
|
|
}
|
|
|
|
.chart-container {
|
|
position: relative;
|
|
|
|
&.cdk-drag {
|
|
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
}
|
|
|
|
&.cdk-drag-animating {
|
|
transition: transform 300ms cubic-bezier(0, 0, 0.2, 1);
|
|
}
|
|
|
|
&.cdk-drag-disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
&.cdk-drag-preview {
|
|
box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
|
|
backdrop-filter: blur(15px);
|
|
border: 2px solid var(--primary-color, #80bdff);
|
|
border-radius: 8px;
|
|
transform: rotate(2deg);
|
|
}
|
|
|
|
&.cdk-drag-placeholder {
|
|
opacity: 0.3;
|
|
border: 2px dashed var(--primary-color, #80bdff);
|
|
background: transparent !important;
|
|
}
|
|
}
|
|
|
|
.cdk-drop-list-dragging .chart-container:not(.cdk-drag-placeholder) {
|
|
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
}
|
|
|
|
.drag-handle {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
z-index: 10;
|
|
background: rgb(0 0 0 / 60%);
|
|
border: 1px solid rgb(255 255 255 / 20%);
|
|
border-radius: 4px;
|
|
padding: 6px;
|
|
cursor: default;
|
|
opacity: 0;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
|
|
&:hover {
|
|
background: rgb(0 0 0 / 80%);
|
|
border-color: var(--primary-color, #80bdff);
|
|
}
|
|
|
|
&:active {
|
|
background: rgb(0 0 0 / 90%);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.pi {
|
|
color: var(--text-color, #fff);
|
|
font-size: 0.8rem;
|
|
cursor: grab;
|
|
|
|
&:hover {
|
|
cursor: grab;
|
|
}
|
|
|
|
&:active {
|
|
cursor: grabbing;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chart-container:hover .drag-handle {
|
|
opacity: 1;
|
|
}
|
|
|
|
.chart-section {
|
|
background: var(--card-background);
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid var(--p-content-border-color);
|
|
transition: all 0.3s ease;
|
|
|
|
&:hover {
|
|
border-color: rgb(255 255 255 / 20%);
|
|
box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
|
|
}
|
|
|
|
&.small {
|
|
grid-column: span 1;
|
|
padding: 12px;
|
|
}
|
|
|
|
&.medium {
|
|
grid-column: span 1;
|
|
padding: 15px;
|
|
}
|
|
|
|
&.large {
|
|
grid-column: span 2;
|
|
padding: 18px;
|
|
}
|
|
|
|
&.xlarge {
|
|
grid-column: 1 / -1;
|
|
padding: 20px;
|
|
}
|
|
|
|
&.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
}
|
|
|
|
.loading-message,
|
|
.no-data-message {
|
|
text-align: center;
|
|
padding: 50px;
|
|
color: var(--text-secondary-color);
|
|
font-size: 16px;
|
|
}
|
|
|
|
.loading-message {
|
|
font-style: italic;
|
|
}
|
|
|
|
.no-data-message {
|
|
color: var(--text-color-secondary, #999);
|
|
|
|
small {
|
|
display: block;
|
|
margin-top: 8px;
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
@media (width <= 1600px) {
|
|
.charts-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
|
.chart-section.small {
|
|
grid-column: span 1;
|
|
}
|
|
|
|
.chart-section.medium {
|
|
grid-column: span 1;
|
|
}
|
|
|
|
.chart-section.large {
|
|
grid-column: span 2;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (width <= 1200px) {
|
|
.charts-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
.chart-section.small,
|
|
.chart-section.medium {
|
|
grid-column: span 1;
|
|
}
|
|
|
|
.chart-section.large {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.chart-section.xlarge,
|
|
.chart-section.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (width <= 768px) {
|
|
.library-stats-container {
|
|
padding: 15px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.header-card {
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.filter-section {
|
|
.library-filter {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 8px;
|
|
|
|
.select-row {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
label {
|
|
text-align: center;
|
|
}
|
|
|
|
.library-totals {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
.config-modal {
|
|
max-width: 95%;
|
|
max-height: 85vh;
|
|
margin: 10px;
|
|
|
|
.config-modal-header {
|
|
padding: 15px 20px;
|
|
|
|
h3 {
|
|
font-size: 1.1rem;
|
|
}
|
|
}
|
|
|
|
.config-modal-actions {
|
|
padding: 15px 20px;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
|
|
.config-action-btn {
|
|
flex: none;
|
|
}
|
|
}
|
|
|
|
.config-modal-content {
|
|
padding: 15px 20px;
|
|
|
|
.config-categories {
|
|
grid-template-columns: 1fr;
|
|
gap: 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.charts-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 15px;
|
|
|
|
.chart-container {
|
|
&.small,
|
|
&.medium,
|
|
&.large,
|
|
&.xlarge,
|
|
&.full-width {
|
|
grid-column: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.drag-handle {
|
|
opacity: 1;
|
|
top: 4px;
|
|
right: 4px;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: rgb(0 0 0 / 70%);
|
|
|
|
.pi {
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
.chart-section {
|
|
padding: 12px;
|
|
}
|
|
}
|
|
|
|
@media (width <= 480px) {
|
|
.header-card {
|
|
padding: 15px;
|
|
}
|
|
|
|
.charts-grid {
|
|
gap: 12px;
|
|
}
|
|
|
|
.config-modal-overlay {
|
|
padding: 10px;
|
|
}
|
|
|
|
.config-modal {
|
|
max-width: 100%;
|
|
max-height: 90vh;
|
|
|
|
.config-modal-header {
|
|
padding: 12px 15px;
|
|
|
|
h3 {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
.config-modal-actions {
|
|
padding: 12px 15px;
|
|
}
|
|
|
|
.config-modal-content {
|
|
padding: 12px 15px;
|
|
}
|
|
}
|
|
|
|
.drag-handle {
|
|
width: 36px;
|
|
height: 36px;
|
|
|
|
.pi {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
}
|