From 972ef7593ede242c0555414cfaffded397993cac Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 1 Nov 2016 22:59:08 +0800 Subject: webui: fonts.css: Avoid space in font-family name; Some cleanup --- fg21sim/webui/static/css/fonts.css | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'fg21sim/webui') diff --git a/fg21sim/webui/static/css/fonts.css b/fg21sim/webui/static/css/fonts.css index e01f1a7..3a11207 100644 --- a/fg21sim/webui/static/css/fonts.css +++ b/fg21sim/webui/static/css/fonts.css @@ -11,28 +11,29 @@ /** - * Source Sans Pro: Regular + Semibold + * Source Sans Pro + * (Regular + Semibold) */ @font-face { - font-family: 'Source Sans Pro'; + font-family: 'SourceSansPro'; src: url('../fonts/SourceSansPro-Regular.ttf.woff') format('woff'); font-weight: normal; font-style: normal; } @font-face { - font-family: 'Source Sans Pro'; + font-family: 'SourceSansPro'; src: url('../fonts/SourceSansPro-It.ttf.woff') format('woff'); font-weight: normal; font-style: italic; } @font-face { - font-family: 'Source Sans Pro'; + font-family: 'SourceSansPro'; src: url('../fonts/SourceSansPro-Semibold.ttf.woff') format('woff'); font-weight: bold; font-style: normal; } @font-face { - font-family: 'Source Sans Pro'; + font-family: 'SourceSansPro'; src: url('../fonts/SourceSansPro-SemiboldIt.ttf.woff') format('woff'); font-weight: bold; font-style: italic; @@ -41,11 +42,11 @@ /** * Source Code Pro + * (Regular only) */ @font-face { - font-family: 'Source Code Pro'; - src: local('Source Code Pro'), - url('../fonts/SourceCodePro-Regular.ttf.woff') format('woff'); + font-family: 'SourceCodePro'; + src: url('../fonts/SourceCodePro-Regular.ttf.woff') format('woff'); font-weight: normal; font-style: normal; } @@ -55,9 +56,9 @@ * Set font styles */ body { - font-family: 'Source Sans Pro', 'Helvetica', 'Arial', sans-serif; + font-family: 'SourceSansPro', sans-serif; } pre { - font-family: 'Source Code Pro', 'DejaVu Sans Mono', monospace; + font-family: 'SourceCodePro', monospace; } -- cgit v1.2.2