aboutsummaryrefslogtreecommitdiff
path: root/util/tmpl/kanji.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-24 20:50:27 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-24 20:50:27 -0700
commitf466fe721885877d473e66d22caef060919524ea (patch)
tree08f27ea2a89794da5ab376401e1ce743f12d6d20 /util/tmpl/kanji.html
parent62c2120286ddc39110b8ab01c4248ab5a8604b66 (diff)
Styling work
Diffstat (limited to 'util/tmpl/kanji.html')
-rw-r--r--util/tmpl/kanji.html50
1 files changed, 26 insertions, 24 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
index d9e7ffcf..603872ae 100644
--- a/util/tmpl/kanji.html
+++ b/util/tmpl/kanji.html
@@ -1,29 +1,31 @@
<div class="definition">
- <div class="kanji">{{character}}</div>
+ <div class="kanji-info kanji-glyph">{{character}}</div>
- <div class="readings">
- <dl>
- {{#if kunyomi}}
- <dt>Kunyomi:</dt>
- {{#each kunyomi}}
- <dd>{{.}}{{#unless @last}}, {{/unless}}</dd>
- {{/each}}
- {{/if}}
+ {{#if glossary}}
+ <dl class="kanji-info">
+ <dt>Meanings</dt>
+ {{#each glossary}}
+ <dd>{{.}}</dd>
+ {{/each}}
+ </dl>
+ {{/if}}
- {{#if onyomi}}
- <dt>Onyomi:</dt>
- {{#each onyomi}}
- <dd>{{.}}{{#unless @last}}, {{/unless}}</dd>
- {{/each}}
- {{/if}}
- </dl>
- </div>
+ {{#if kunyomi}}
+ <dl class="kanji-info">
+ <dt>Kun</dt>
+ {{#each kunyomi}}
+ <dd>{{.}}</dd>
+ {{/each}}
+ </dl>
+ {{/if}}
- <div class="glossary">
- <ol>
- {{#each glossary}}
- <li><span>{{.}}</span></li>
- {{/each}}
- </ol>
- </div>
+ {{#if onyomi}}
+ <dl class="kanji-info">
+ <dt>On</dt>
+ {{#each onyomi}}
+ <dd>{{.}}</dd>
+ {{/each}}
+ </dl>
+ {{/if}}
+</div>
</div>