[theme-reviewers] Importing CSS within style.css
Edward Caissie
edward.caissie at gmail.com
Tue Dec 18 16:37:43 UTC 2012
Just my two cents, but I'm still of the opinion these fonts should simply
be included (with the appropriate credit) in the theme package ... which
can even sort out a completely closed intranet installation. (*grin*)
Edward Caissie
aka Cais.
On Tue, Dec 18, 2012 at 10:24 AM, Michael Fields <michael at mfields.org>wrote:
>
> There is nothing inherently wrong with using @import, as far as I know.
>
>
> There is one thing that comes to mind. Lets say the following code is used
> in style.css:
>
> @import url(http://fonts.googleapis.com/css?family=Oswald);
>
> This is OK so long as is_ssl() does not return true. In case that it does
> Chrome will generate a "Insecure Content Loaded" type error message in the
> console.
>
> One solution is a protocol-relative url like:
>
> @import url(://fonts.googleapis.com/css?family=Oswald<http://fonts.googleapis.com/css?family=Oswald>
> );
>
> I do not believe that there is support for this in IE6 and IE7/8 will
> download the file twice.
> See: http://paulirish.com/2010/the-protocol-relative-url/
>
> IMHO, the best method is to enqueue.
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20121218/4231cf18/attachment.htm>
More information about the theme-reviewers
mailing list