Kanji page cleanup

This commit is contained in:
Alex Yatskov 2016-04-28 20:32:04 -07:00
parent 4ef620d74c
commit 240aca8415
3 changed files with 55 additions and 63 deletions

View File

@ -46,15 +46,15 @@ templates['kanji.html'] = template({"1":function(container,depth0,helpers,partia
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { },"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var stack1, helper, alias1=depth0 != null ? depth0 : {}; var stack1, helper, alias1=depth0 != null ? depth0 : {};
return "<div class=\"definition\">\n <div class=\"kanji-info kanji-glyph\">" return "<div class=\"kanji-definition\">\n <div class=\"kanji-glyph\">"
+ container.escapeExpression(((helper = (helper = helpers.character || (depth0 != null ? depth0.character : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"character","hash":{},"data":data}) : helper))) + container.escapeExpression(((helper = (helper = helpers.character || (depth0 != null ? depth0.character : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"character","hash":{},"data":data}) : helper)))
+ "</div>\n\n <dl class=\"kanji-info\">\n" + "</div>\n <div class=\"kanji-info\">\n <dl>\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.glossary : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.glossary : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "\n" + "\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.kunyomi : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.kunyomi : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "\n" + "\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.onyomi : depth0),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.onyomi : depth0),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ " </dl>\n</div>\n</div>\n"; + " </dl>\n </div>\n</div>\n</div>\n";
},"useData":true}); },"useData":true});
templates['kanji-link.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { templates['kanji-link.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var helper; var helper;

View File

@ -73,17 +73,6 @@ body {
background-color: #0275d8; background-color: #0275d8;
} }
.kanji-glyph {
font-family: "KanjiStrokeOrders";
font-size: 140px;
line-height: 140px;
vertical-align: top;
}
.kanji-info {
display: inline-block;
}
ol { ol {
padding-left: 1.2em; padding-left: 1.2em;
} }
@ -96,23 +85,25 @@ li span {
color: #000; color: #000;
} }
dl { .kanji-glyph {
padding: 0.5em; float: left;
font-family: "KanjiStrokeOrders";
font-size: 140px;
line-height: 140px;
padding: 0.01em;
vertical-align: top;
} }
dt { .kanji-info {
float: left; display: block;
clear: left; overflow: hidden;
width: 100px; }
text-align: right;
.kanji-info dt {
font-weight: bold; font-weight: bold;
} }
dt:after { .kanji-info dd {
content: ":"; margin-left: 1.2em;
} }
dd {
margin: 0 0 0 110px;
padding: 0 0 0.5em 0;
}

View File

@ -1,7 +1,7 @@
<div class="definition"> <div class="kanji-definition">
<div class="kanji-info kanji-glyph">{{character}}</div> <div class="kanji-glyph">{{character}}</div>
<div class="kanji-info">
<dl class="kanji-info"> <dl>
{{#if glossary}} {{#if glossary}}
<dt>Meanings</dt> <dt>Meanings</dt>
<dd> <dd>
@ -29,5 +29,6 @@
</dd> </dd>
{{/if}} {{/if}}
</dl> </dl>
</div>
</div> </div>
</div> </div>