This repository was archived by the owner on Sep 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexercise-1-solution.html
executable file
·91 lines (81 loc) · 2.25 KB
/
exercise-1-solution.html
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{% set exercise = 1 %}
{% set solution = true %}
{% extends "views/exercises/exercise-" + exercise + ".html" %}
{% block introduction %}
{{ super() }}
<p><strong>Solution:</strong>
Use <code>font-display: swap;</code> for text webfonts
and <code>font-display: block;</code> for icon font.
</p>
{% endblock %}
{% block styles %}
<style>
@font-face {
font-family: 'Raleway';
src: url('/assets/fonts/raleway-semibold-webfont.woff2') format("woff2"),
url('/assets/fonts/raleway-semibold-webfont.woff') format("woff");
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Raleway';
src: url('/assets/fonts/raleway-medium-webfont.woff2') format("woff2"),
url('/assets/fonts/raleway-medium-webfont.woff') format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Kaushan';
src: url('/assets/fonts/kaushanscript-regular.woff2') format('woff2'),
url('/assets/fonts/kaushanscript-regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(/assets/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url(/assets/fonts/MaterialIcons-Regular.woff2) format('woff2'),
url(/assets/fonts/MaterialIcons-Regular.woff) format('woff'),
url(/assets/fonts/MaterialIcons-Regular.ttf) format('truetype');
font-display: block;
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 36px;
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: 'liga';
}
.cc-exercise h2 {
font-family: 'Kaushan', serif;
font-size: 2em;
}
.cc-exercise p {
font-family: 'Raleway', sans-serif;
}
</style>
{% endblock %}
{% block html %}
{{ super() }}
{% endblock %}