'Can I make external styles outside of blazor CSS isolation?
I have a website with Header, Main, Footer styles divided into blocks, etc. and it looks something like this:
In Style, I import all this and link it to html (and I use preprocessor)
@import "Core.css"
@import "Header/Header.css"
@import "Main/Main.css"
@import "Footer/Footer.css"
@import "etc and so on"
So I decided to move my site to Blazor and use the separation of styles into blocks on it, it turned out something like this:
It just turned out that all styles are in a static folder, and imports are in isolation of MainLayout.style.
And if connect styles in a static index, then imports in isolation will not be needed.
And now my questions:
- Is it possible to do this and does it correspond to the Blazor Style Guide?
- If I can't do this, then how is it better to do this?
- If I can do this, then how is it better to do this?
- If I make a MainLayout into a preprocessor that will output css, will it be better than the above options?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


