Useful CSS Stuff

The browser devtools are your friend.
Its easy to find elements and from there you can craft selectors.
You can edit css in the devtools too to see if everything is working before copying the working code to perspective.

Adding in perspective classes given through the designer requires you to add:
"psc-" in front of the class name.
And if the class is in a folder the path "/" should become "\/"
example : .psc-Folder\/NewStyle

There are also some relativly new css selectors like :has() which are very powerful. Many sources who say its not possible in css, dont known about :has yet. :has() - CSS: Cascading Style Sheets | MDN

Also note not all css stuff works in the designer, but does show up correctly in browsers. That is because the designer is behind in chromium version. (And maybe the workstation app too i dont know)

7 Likes