Build: Correctly transform structure CSS references in the demos

Closes gh-7778
Fixes gh-7771