Replace Google Fonts with locally served fonts

This commit is contained in:
Leon Feng
2015-09-17 01:08:17 +08:00
parent 08699fdac6
commit 6e53b8701d
14 changed files with 24 additions and 6 deletions

19
public/css/fonts.css Normal file
View File

@ -0,0 +1,19 @@
@font-face {
font-family: "Lato";
src: url(/fonts/Lato-Regular.ttf) format("truetype");
}
@font-face {
font-family: "Lato Light";
src: url(/fonts/Lato-Light.ttf) format("truetype");
}
@font-face {
font-family: "Ubuntu";
src: url(/fonts/Ubuntu-Regular.ttf) format("truetype");
}
@font-face {
font-family: "Ubuntu Mono";
src: url(/fonts/UbuntuMono-Regular.ttf) format("truetype");
}

0
public/fonts/Lato-Light.ttf Executable file → Normal file
View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

0
public/fonts/ionicons.eot Executable file → Normal file
View File

0
public/fonts/ionicons.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 326 KiB

After

Width:  |  Height:  |  Size: 326 KiB

0
public/fonts/ionicons.ttf Executable file → Normal file
View File

0
public/fonts/ionicons.woff Executable file → Normal file
View File

View File

@ -11,7 +11,7 @@ block content
link(rel='stylesheet', href='/js/lib/codemirror/lib/codemirror.css')
link(rel='stylesheet', href='/js/lib/codemirror/addon/lint/lint.css')
link(rel='stylesheet', href='/js/lib/codemirror/theme/monokai.css')
link(rel="stylesheet", href="//fonts.googleapis.com/css?family=Ubuntu+Mono")
link(rel='stylesheet', href='/css/fonts.css')
script(type='text/javascript', src='/js/lib/codemirror/mode/javascript/javascript.js')
script(type='text/javascript', src='/js/lib/jailed/jailed.js')
@ -167,4 +167,3 @@ block content
if (!MDNlinks.length) {
$('#MDN-links').addClass('collapse');
}

View File

@ -11,7 +11,7 @@ block content
link(rel='stylesheet', href='/js/lib/codemirror/lib/codemirror.css')
link(rel='stylesheet', href='/js/lib/codemirror/addon/lint/lint.css')
link(rel='stylesheet', href='/js/lib/codemirror/theme/monokai.css')
link(rel="stylesheet", href="http://fonts.googleapis.com/css?family=Ubuntu+Mono")
link(rel='stylesheet', href='/css/fonts.css')
script(src='/js/lib/codemirror/mode/javascript/javascript.js')
script(src='/js/lib/jailed/jailed.js')
script(src='/js/lib/codemirror/mode/xml/xml.js')

View File

@ -10,7 +10,7 @@ block content
link(rel='stylesheet', href='/js/lib/codemirror/lib/codemirror.css')
link(rel='stylesheet', href='/js/lib/codemirror/addon/lint/lint.css')
link(rel='stylesheet', href='/js/lib/codemirror/theme/monokai.css')
link(rel="stylesheet", href="//fonts.googleapis.com/css?family=Ubuntu+Mono")
link(rel='stylesheet', href='/css/fonts.css')
script(type='text/javascript', src='/js/lib/codemirror/mode/javascript/javascript.js')
script(type='text/javascript', src='/js/lib/jailed/jailed.js')
.row(ng-controller="pairedWithController")

View File

@ -1,6 +1,6 @@
script(src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js")
script(src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/js/bootstrap.min.js")
link(rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Lato:400|Inconsolata")
link(rel='stylesheet' type='text/css' href='/css/fonts.css')
link(rel='stylesheet', href='/bower_components/font-awesome/css/font-awesome.min.css')
link(rel='stylesheet', href=rev('/css', 'main.css'))
link(rel='stylesheet', href='/css/Vimeo.css')

View File

@ -1,4 +1,4 @@
link(rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Lato:400|Inconsolata")
link(rel="stylesheet" type="text/css" href="/css/fonts.css")
link(rel="stylesheet" type="text/css" href="/bower_components/cal-heatmap/cal-heatmap.css")
link(rel='stylesheet', href='/bower_components/font-awesome/css/font-awesome.min.css')
link(rel='stylesheet', href='/bower_components/lightbox2/dist/css/lightbox.css')