浏览代码

Fix Lato webfont to load properly by using the <link> tag instead of CSS @import

Markus Ochel 12 年之前
父节点
当前提交
ffeb59f4e0
共有 3 个文件被更改,包括 2 次插入2 次删除
  1. 0 2
      admin/static/css/common.styl
  2. 1 0
      admin/templates/base.html
  3. 1 0
      site/templates/base.html

+ 0 - 2
admin/static/css/common.styl

@@ -1,7 +1,5 @@
 /* Common CSS that is imported into Admin and Site */
 
-@import url('http://fonts.googleapis.com/css?family=Lato:300,400,700')
-
 // apply a natural box layout model to all elements
 *
   border-box()

+ 1 - 0
admin/templates/base.html

@@ -11,6 +11,7 @@
   <link rel="shortcut icon" href="{{baseURL}}/static/img/favicon.ico">
   <!-- <link rel="apple-touch-icon-precomposed" href="{{baseURL}}/static/img/apple-touch-icon-precomposed.png"> -->
 
+  <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Lato:300,400,700' type='text/css'>
   <link rel="stylesheet" href="{{baseURL}}/static/css/index.css" type="text/css" media="screen" charset="utf-8">
 
   <script src="{{baseURL}}/modules.js"></script>

+ 1 - 0
site/templates/base.html

@@ -31,6 +31,7 @@
   {{/if}}
   <!-- <link rel="apple-touch-icon-precomposed" href="{{baseURL}}/static/img/apple-touch-icon-precomposed.png"> -->
 
+  <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Lato:300,400,700' type='text/css'>
   <link rel="stylesheet" href="{{baseURL}}/static/css/index.css" type="text/css" media="all" charset="utf-8">
   {{#if site.theme}}
   <link rel="stylesheet" href="{{baseURL}}/static/css/themes/{{site.theme}}.css" type="text/css" media="all" charset="utf-8">