I'm working with a copy of Geometrix, and when I try to include Google fonts using the @import method, they only show when viewing the page in Debug Mode: page.html?debugClientLibs=true
I presume this is because when a page is normally viewed, AEM is trying to parse the @import statement and include the remote CSS from Google into a compiled CSS file.
What's the best way to go about getting 3rd party CSS included at the Designs level since @import won't work?
Solved! Go to Solution.
Hi Anthony,
I tried quickly to reproduce your problem and couldn't. If you want to provide more specific steps to reproduce, that might help.
I do, however, have a guess... the CSS specification requires that @import be at the top of your stylesheet before everything else (except @charset). So... when AEM is concatenating your CSS files, maybe the @import is ending up in the middle and the browser is ignoring it?
Again, just a guess. But I've been bitten by that in the past.
Justin
Put the CSS into a cq:ClientLibraryFolder node. For example:
[img]clientlibs.png[/img]
Notice the CSS file here. You can then reference the cq:ClientLibraryFolder from your CQ web page.
Views
Replies
Total Likes
Hi Anthony,
I tried quickly to reproduce your problem and couldn't. If you want to provide more specific steps to reproduce, that might help.
I do, however, have a guess... the CSS specification requires that @import be at the top of your stylesheet before everything else (except @charset). So... when AEM is concatenating your CSS files, maybe the @import is ending up in the middle and the browser is ignoring it?
Again, just a guess. But I've been bitten by that in the past.
Justin
The point is I can't put the CSS there. The CSS is hosted on Google's CDN and normally included using @import.
I can use their Javascript include method, but that's not as ideal.
Not sure if this is related but,
If you are using clientLib with @import in CQ5.5 make sure that you do http://helpx.adobe.com/cq/kb/upgrade-yui-compressor.html.
Yogesh
Steps to reproduce.
Register
Hi Anthony,
I followed your steps but I couldn't reproduce. The font family was Roboto with and without the debugClientLibs param in the url. I don't know what to suggest however (sorry)
scott
Views
Replies
Total Likes
Views
Like
Replies