summaryrefslogtreecommitdiff
path: root/util/tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'util/tmpl')
-rw-r--r--util/tmpl/defs.html22
-rw-r--r--util/tmpl/term.html12
2 files changed, 25 insertions, 9 deletions
diff --git a/util/tmpl/defs.html b/util/tmpl/defs.html
index 2fcc4ea9..ebbb7f82 100644
--- a/util/tmpl/defs.html
+++ b/util/tmpl/defs.html
@@ -1,6 +1,16 @@
-{{#each defs}}
-<div class="yomichan-def">
- {{> term.html}}
- {{#unless @last}}<br>{{/unless}}
-</div>
-{{/each}}
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <title></title>
+ <link rel="stylesheet" href="{{root}}/css/popup.css">
+ </head>
+ <body>
+ {{#each defs}}
+ <div class="definition">
+ {{> term.html}}
+ {{#unless @last}}<br>{{/unless}}
+ </div>
+ {{/each}}
+ </body>
+</html>
diff --git a/util/tmpl/term.html b/util/tmpl/term.html
index 56854499..bd414f26 100644
--- a/util/tmpl/term.html
+++ b/util/tmpl/term.html
@@ -1,10 +1,16 @@
{{#if reading}}
-<div class="yomichan-def-expression"><ruby>{{expression}}<rt>{{reading}}</rt></ruby></div>
+<div class="expression"><ruby>{{expression}}<rt>{{reading}}</rt></ruby></div>
{{else}}
-<div class="yomichan-def-expression">{{expression}}</div>
+<div class="expression">{{expression}}</div>
{{/if}}
-<div class="yomichan-def-glossary">
+<div class="rules">
+ {{#if rules}}
+ {{rules}}
+ {{/if}}
+</div>
+
+<div class="glossary">
<ol>
{{#each glossary}}
<li>{{.}}</li>