chanan / BlazorStrap

Bootstrap 4 Components for Blazor Framework
https://blazorstrap.io
The Unlicense
919 stars 157 forks source link

Need to be able to use this fully offline #398

Closed dbowser closed 3 years ago

dbowser commented 4 years ago

We are trying to run our app fully offline in a secure intranet. The BlazorStrap dll is having issues that I think are coming from the following: link.href = "https://stackpath.bootstrapcdn.com/bootstrap/" + version + "/css/bootstrap.min.css"; link.href = "https://stackpath.bootstrapcdn.com/bootswatch/" + version + "/" + theme + "/bootstrap.min.css"; We need a way to use a local copy for fully offline operation.

Thanks

chanan commented 4 years ago

Are you calling SetBootstrapCss ?

dbowser commented 4 years ago

Yes. Should I not have been?

chanan commented 4 years ago

setBootStrapCss will use a cdn to set the CSS and allows you to switch themes.

Remove the call and set your own CSS in the head of the index.html

An improvement might be to allow you to store 1 or more CSS themed files and use them in conjunction with setBootStrapCss - but that only matters if you want to allow your end user to switch themes, so unless that is your use case, it is not needed. However, if you want to submit a PR...

dbowser commented 4 years ago

OK, thank you. I will try to get that working. I am still trying to get my arms around all the aspects of CSS and how they interrelate.

jbomhold3 commented 3 years ago

Is this issue safe to close?

dbowser commented 3 years ago

Yes thanks. I was able to get it to use all local css.