ciao!
io ho questo scss che messo dentro home.component.scss:
funziona, ma io avrei necessità di metterlo a livello globale.codice::host ::ng-deep { .p-datatable-responsive-demo .p-datatable-tbody > tr > td .p-column-title { display: none; } } @media screen and (max-width: 40rem) { :host ::ng-deep { .p-datatable { &.p-datatable-responsive-demo { .p-datatable-thead > tr > th, .p-datatable-tfoot > tr > td { display: none !important; } .p-datatable-tbody > tr > td { text-align: left; display: block; width: 100%; float: left; clear: left; border: 0 none; .p-column-title { padding: .4rem; min-width: 30%; display: inline-block; margin: -.4em 1em -.4em -.4rem; font-weight: bold; } &:last-child { border-bottom: 1px solid var(--surface-d); } } } } } }
nel senso che questo snippet mi serve anche in altri componenti.
però se lo metto in app.code.component.scss non funziona.
dove dovrei metterlo??