@use "../layout/styles/layout/variables"; /* * 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-create-menu.p-menu { min-width: 12rem; } @media #{variables.$mobile-shell-media-query} { .p-menu { --p-menu-list-padding: var(--space-2) 0; --p-menu-item-padding: var(--space-3) var(--space-4); --p-menu-item-gap: var(--space-3); } .p-tieredmenu { --p-tieredmenu-list-padding: var(--space-2) 0; --p-tieredmenu-item-padding: var(--space-3) var(--space-4); --p-tieredmenu-item-gap: var(--space-3); } .sidebar-entity-menu.p-menu { .p-menu-submenu-label { display: none; } } }