aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static/css/fonts.css
blob: 658eac962b87fbbcec64f50804878742695f2475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/**
 * Copyright (c) 2016 Weitian LI <liweitianux@live.com>
 * 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
 * (Regular + Semibold)
 */
@font-face {
    font-family: 'SourceSansPro';
    src: url('../fonts/SourceSansPro-Regular.ttf.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'SourceSansPro';
    src: url('../fonts/SourceSansPro-It.ttf.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'SourceSansPro';
    src: url('../fonts/SourceSansPro-Semibold.ttf.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'SourceSansPro';
    src: url('../fonts/SourceSansPro-SemiboldIt.ttf.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}


/**
 * Source Code Pro
 * (Regular only)
 */
@font-face {
    font-family: 'SourceCodePro';
    src: url('../fonts/SourceCodePro-Regular.ttf.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


/**
 * Set font styles
 */
body {
    font-family: 'SourceSansPro', sans-serif;
}

pre, .code {
    font-family: 'SourceCodePro', monospace;
}