Change names
This commit is contained in:
parent
aa2a0c09f4
commit
a7da4416d7
@ -62,7 +62,7 @@ h2 { border-bottom-color: #2f2f2f; }
|
||||
|
||||
.term-definition-list,
|
||||
.term-pitch-accent-group-list,
|
||||
.term-pitch-accent-expression-list,
|
||||
.term-pitch-accent-disambiguation-list,
|
||||
.kanji-glossary-list {
|
||||
color: #888888;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ h2 { border-bottom-color: #eeeeee; }
|
||||
|
||||
.term-definition-list,
|
||||
.term-pitch-accent-group-list,
|
||||
.term-pitch-accent-expression-list,
|
||||
.term-pitch-accent-disambiguation-list,
|
||||
.kanji-glossary-list {
|
||||
color: #777777;
|
||||
}
|
||||
|
@ -489,23 +489,23 @@ button.action-button {
|
||||
margin-right: 0.375em;
|
||||
}
|
||||
|
||||
.term-pitch-accent-expression-list {
|
||||
.term-pitch-accent-disambiguation-list {
|
||||
padding-right: 0.25em;
|
||||
}
|
||||
|
||||
.term-pitch-accent-expression-list[data-count="0"] {
|
||||
.term-pitch-accent-disambiguation-list[data-count="0"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.term-pitch-accent-expression-list:before {
|
||||
.term-pitch-accent-disambiguation-list:before {
|
||||
content: "(";
|
||||
}
|
||||
|
||||
.term-pitch-accent-expression-list:after {
|
||||
.term-pitch-accent-disambiguation-list:after {
|
||||
content: " only)";
|
||||
}
|
||||
|
||||
.term-pitch-accent-expression+.term-pitch-accent-expression:before {
|
||||
.term-pitch-accent-disambiguation+.term-pitch-accent-disambiguation:before {
|
||||
content: ", ";
|
||||
}
|
||||
|
||||
|
@ -45,8 +45,8 @@
|
||||
</defs>
|
||||
</svg></template>
|
||||
<template id="term-pitch-accent-group-template"><li class="term-pitch-accent-group"><span class="term-pitch-accent-group-tag-list tag-list"></span><ul class="term-pitch-accent-list"></ul></li></template>
|
||||
<template id="term-pitch-accent-expression-template"><span class="term-pitch-accent-expression"></span></template>
|
||||
<template id="term-pitch-accent-template"><li class="term-pitch-accent"><span class="term-pitch-accent-tag-list tag-list"></span><span class="term-pitch-accent-expression-list"></span><span class="term-pitch-accent-characters"></span><span class="term-pitch-accent-position"></span><span class="term-pitch-accent-details"><svg class="term-pitch-accent-graph" xmlns="http://www.w3.org/2000/svg"><path class="term-pitch-accent-graph-line" /><path class="term-pitch-accent-graph-line-tail" /></svg></span></li></template>
|
||||
<template id="term-pitch-accent-disambiguation-template"><span class="term-pitch-accent-disambiguation"></span></template>
|
||||
<template id="term-pitch-accent-template"><li class="term-pitch-accent"><span class="term-pitch-accent-tag-list tag-list"></span><span class="term-pitch-accent-disambiguation-list"></span><span class="term-pitch-accent-characters"></span><span class="term-pitch-accent-position"></span><span class="term-pitch-accent-details"><svg class="term-pitch-accent-graph" xmlns="http://www.w3.org/2000/svg"><path class="term-pitch-accent-graph-line" /><path class="term-pitch-accent-graph-line-tail" /></svg></span></li></template>
|
||||
<template id="term-pitch-accent-character-template"><span class="term-pitch-accent-character"><span class="term-pitch-accent-character-inner"></span></span></template>
|
||||
|
||||
<template id="kanji-entry-template"><div class="entry" data-type="kanji">
|
||||
|
@ -318,7 +318,7 @@ class DisplayGenerator {
|
||||
n = node.querySelector('.term-pitch-accent-tag-list');
|
||||
DisplayGenerator._appendMultiple(n, this.createTag.bind(this), tags);
|
||||
|
||||
n = node.querySelector('.term-pitch-accent-expression-list');
|
||||
n = node.querySelector('.term-pitch-accent-disambiguation-list');
|
||||
DisplayGenerator._appendMultiple(n, this.createPitchExpression.bind(this), exclusiveExpressions);
|
||||
|
||||
n = node.querySelector('.term-pitch-accent-characters');
|
||||
@ -346,7 +346,7 @@ class DisplayGenerator {
|
||||
}
|
||||
|
||||
createPitchExpression(expression) {
|
||||
const node = this._templateHandler.instantiate('term-pitch-accent-expression');
|
||||
const node = this._templateHandler.instantiate('term-pitch-accent-disambiguation');
|
||||
node.textContent = expression;
|
||||
return node;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user