Bootswatch themes in Oqtane.Themes.OqtaneTheme

Theme is set in Oqtane.Client\Themes\OqtaneTheme\Default.razor
```
    protected override async Task OnParametersSetAsync()
    {
    // go to https://www.bootstrapcdn.com/bootswatch/ and take your favorite theme
    //<link href="https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/cyborg/bootstrap.min.css" rel="stylesheet" integrity="sha384-l7xaoY0cJM4h9xh1RfazbgJVUZvdtyLWPueWNtLAphf/UbBgOVzqbOTogxPwYLHM" crossorigin="anonymous">
        await LoadBootstrapTheme("https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/cyborg/bootstrap.min.css","sha384-l7xaoY0cJM4h9xh1RfazbgJVUZvdtyLWPueWNtLAphf/UbBgOVzqbOTogxPwYLHM");
        await IncludeCSS("Theme.css");
    }
```
This commit is contained in:
Pavel Vesely
2020-05-07 12:17:07 +02:00
parent 979680f46d
commit e78a5e090d
4 changed files with 14 additions and 10830 deletions

View File

@ -70,7 +70,7 @@ window.interop = {
link.integrity = integrity;
}
if (crossorigin !== "") {
link.crossorigin = crossorigin;
link.crossOrigin = crossorigin;
}
document.head.appendChild(link);
}
@ -87,7 +87,7 @@ window.interop = {
if (integrity !== "" && link.integrity !== integrity) {
link.setAttribute('integrity', integrity);
}
if (crossorigin !== "" && link.crossorigin !== crossorigin) {
if (crossorigin !== "" && link.crossOrigin !== crossorigin) {
link.setAttribute('crossorigin', crossorigin);
}
}