From 0dde57ee654a88a6a8970b84cd3a6218b16df4d4 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 1 Nov 2016 15:17:30 +0800 Subject: webui: Add fonts.css (Source Sans Pro & Source Code Pro) --- fg21sim/webui/static/css/fonts.css | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 fg21sim/webui/static/css/fonts.css (limited to 'fg21sim/webui/static') diff --git a/fg21sim/webui/static/css/fonts.css b/fg21sim/webui/static/css/fonts.css new file mode 100644 index 0000000..8c7815a --- /dev/null +++ b/fg21sim/webui/static/css/fonts.css @@ -0,0 +1,63 @@ +/** + * Copyright (c) 2016 Weitian LI + * MIT license + * + * Font styles for the Web UI of "fg21sim" + * + * Credits: + * [1] https://www.smashingmagazine.com/2013/02/setting-weights-and-styles-at-font-face-declaration/ + * [2] https://stackoverflow.com/a/28339483/4856091 + */ + + +/** + * Source Sans Pro + */ +@font-face { + font-family: 'Source Sans Pro'; + src: url('../fonts/SourceSansPro-Regular.ttf.woff') format('woff'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'Source Sans Pro'; + src: url('../fonts/SourceSansPro-Bold.ttf.woff') format('woff'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'Source Sans Pro'; + src: url('../fonts/SourceSansPro-It.ttf.woff') format('woff'); + font-weight: normal; + font-style: italic; +} +@font-face { + font-family: 'Source Sans Pro'; + src: url('../fonts/SourceSansPro-BoldIt.ttf.woff') format('woff'); + font-weight: bold; + font-style: italic; +} + + +/** + * Source Code Pro + */ +@font-face { + font-family: 'Source Code Pro'; + src: local('Source Code Pro'), + url('../fonts/SourceCodePro-Regular.ttf.woff') format('woff'); + font-weight: normal; + font-style: normal; +} + + +/** + * Set font styles + */ +body { + font-family: 'Source Sans Pro', 'Helvetica', 'Arial', sans-serif; +} + +pre { + font-family: 'Source Code Pro', 'DejaVu Sans Mono', monospace; +} -- cgit v1.2.2