Unfortunately, I usually build out a global style ...
# tornadofx
c
Unfortunately, I usually build out a global style sheet. Have you seen scoped CSS in web frameworks @Ruckus? Is that what you're thinking of ?
r
No, I just want a different Stylesheet for the popup scenes than I do for the root project. I thought it wouldn't be a problem since they are different windows, but apparently I was mistaken. I can fix it with appropriately nested selectors, but I was going for separation of concerns.
c
I noticed that some frameworks are using scoped CSS. The one I looked at with Vue.js was using name mangling but from the developer's perspective, it looked good. It was an attempt to stop bleeding styles into the global rules. For TornadoFX, this would mean associating a Stylesheet object with a View with a "scoped" flag. This would create addClass() statements with the name mangling prepended.
seems hackish, but you wouldn't have to worry about a global conflict with XYZ888AVCDEF00010123001401_mydialog-background
r
Yeah, Angular does something similar.