summaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-09 19:07:39 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-09 19:07:39 -0700
commit8438a1fe321772ddba479437db40097e4a208a0b (patch)
tree6391416358a5e4960717ddd7903fbb88ca573272 /tmpl
parent64bdc7ea5e9bea85982130947e8517cbd9c568a9 (diff)
Custom fonts for Japanese
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/header.html8
-rw-r--r--tmpl/kanji.html4
2 files changed, 8 insertions, 4 deletions
diff --git a/tmpl/header.html b/tmpl/header.html
index 2256b08a..b7fad070 100644
--- a/tmpl/header.html
+++ b/tmpl/header.html
@@ -5,8 +5,12 @@
<title></title>
<style>
@font-face {
- font-family: "KanjiStrokeOrders";
- src: url("{{root}}/ttf/kanji-stroke-orders.ttf");
+ font-family: kanji-stroke-orders;
+ src: url('{{root}}/ttf/kanji-stroke-orders.ttf');
+ }
+ @font-face {
+ font-family: vl-gothic-regular;
+ src: url('{{root}}/ttf/vl-gothic-regular.ttf');
}
</style>
<link rel="stylesheet" href="{{root}}/css/frame.css">
diff --git a/tmpl/kanji.html b/tmpl/kanji.html
index 7a5affb7..2c9db99a 100644
--- a/tmpl/kanji.html
+++ b/tmpl/kanji.html
@@ -22,7 +22,7 @@
{{#if kunyomi}}
<dt>Kunyomi</dt>
- <dd>
+ <dd class="kanji-reading">
{{#each kunyomi}}
{{.}}{{#unless @last}}, {{/unless}}
{{/each}}
@@ -31,7 +31,7 @@
{{#if onyomi}}
<dt>Onyomi</dt>
- <dd>
+ <dd class="kanji-reading">
{{#each onyomi}}
{{.}}{{#unless @last}}, {{/unless}}
{{/each}}