Is it possible to have a custom CSS for a page in dashboard.
If yes how can we achieve that.
CSS stylesheets are added at the Dashboard/App level.
The only other way I can think of is to use New-UDHelmet to add a stylesheet using the style tag, however, this depends on what you are trying to achieve.
What challenge are you looking to overcome? Are you looking to separate your stylesheets or, are you looking to override certain classes/ID’s?
I am trying to override a style for header in a specific page only
You could use UDHelmet to do this. Here’s an example using the dashboard content but you could do the same within a page.
New-UDApp -Title 'PowerShell Universal' -Content {
New-UDHelmet -Tag 'style' -Content "
header {
background-color: black !important;
color: white !important;
}
"
}
Adam Driscoll
PowerShell Expert and Software Architect at Devolutions