Chris A
Posts: 0
Joined: Tue Feb 11, 2014 2:25 pm

How to add external CSS resource?

Adding codehttp://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css/code to the User-defined Resources in the App settings will result in this:

code<script type="text/javascript" src="http:&#47;&#47;netdna&#46;bootstrapcdn&#46;com/font-awesome/4&#46;0&#46;3/css/font-awesome&#46;css"></script>/code

So it won't work... I know I can copy to a new CSS file, but it doesn't seem very convenient.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

How to add external CSS resource?

You could create new CSS file see below doc:
http://docs.appery.io/documentation/w...

Chris A
Posts: 0
Joined: Tue Feb 11, 2014 2:25 pm

How to add external CSS resource?

Hi igor,

as I said, I know I can copy to a new file, but it isn't convenient. For example, if you want to use font-awesome you'll have to modify the src links to complete the urls etc... So every time there is an update you'll have to hack into the file, risking errors.

It would be a better feature if your system could recognize external css files and add them to the correctly.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to add external CSS resource?

Hello!
You have to use new CSS and change all relative paths, or add in project resources (images, fonts) so that they are available on relative addresses in created CSS. It is the only way.

Chris A
Posts: 0
Joined: Tue Feb 11, 2014 2:25 pm

How to add external CSS resource?

So I guess it's also not possible to link to external fonts? As you surely know, importing via CSS blocks parallel downloading slowing down load times.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to add external CSS resource?

Hello!
[quote:]link to external fonts[/quote]why do you need links to external fonts? Upload necessary fonts in project, it speeds us app.
You need to refer to external resources only if you use external API which changes constantly (for example Google maps API). If you need css, font, image or some plugin (in JS file) it's better to upload it to project.

Chris A
Posts: 0
Joined: Tue Feb 11, 2014 2:25 pm

How to add external CSS resource?

Upload it in the media manager?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

How to add external CSS resource?

Create new - CSS

Image Image

Return to “Issues”