Skip to content

Commit

Permalink
v1.3.2
Browse files Browse the repository at this point in the history
- Fixed a bug in kanji cards, where certain radicals weren't displayed;
- Improved compatibility with dark UI mode
  • Loading branch information
FredericaBernkastel committed Aug 17, 2022
1 parent 9f49d3b commit 2ac5e84
Show file tree
Hide file tree
Showing 8 changed files with 26,198 additions and 26,176 deletions.
52,328 changes: 26,164 additions & 26,164 deletions collection.sql

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions html/kanji Model_Reading_b.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
{{FrontSide}}
<br>

<div class="resume">
<p class="mean text">
<b>Meaning:</b> <font color="#e20096">{{Kanji_Meaning}}</font>
<b>Meaning:</b> <span>{{Kanji_Meaning}}</span>
</p>
<p class="read text">
<b>On'yomi:</b>
<span class="hiragana"><font color="#e20096">{{Reading_On}}</font></span>
<span class="hiragana">{{Reading_On}}</span>
&nbsp;&nbsp;&nbsp;&nbsp;
<b>Kun'yomi:</b>
<span class="hiragana"><font color="#e20096">{{Reading_Kun}}</font></span>
<span class="hiragana">{{Reading_Kun}}</span>
</p>
</div>

<br>
<p class="radical text">
<b>Radicals:</b>
<font color="#0a9ce6">
<span class="hiragana"><b>{{Radicals}}</b></span>
<span class="radical_icons">{{^Radicals_Icons}}, {{Radicals_Icons}}{{/Radicals_Icons}}</span>
{{#Radicals_Icons}}<b>, <span class="radical_icons" data-icon="{{Radicals_Icons}}"></b></span>
{{/Radicals_Icons}}
</font>
<span class="text">({{Radicals_Names}}{{#Radicals_Icons_Names}}, {{Radicals_Icons_Names}}{{/Radicals_Icons_Names}})</span>
</p>
Expand Down
11 changes: 7 additions & 4 deletions html/kanji Model_Recognition_b.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
{{FrontSide}}
<br>

<div class="resume">
<p class="mean text">
<b>Meaning:</b> <font color="#e20096">{{Kanji_Meaning}}</font>
<b>Meaning:</b> <span>{{Kanji_Meaning}}</span>
</p>
<p class="read text">
<b>On'yomi:</b>
<span class="hiragana"><font color="#e20096">{{Reading_On}}</font></span>
<span class="hiragana">{{Reading_On}}</span>
&nbsp;&nbsp;&nbsp;&nbsp;
<b>Kun'yomi:</b>
<span class="hiragana"><font color="#e20096">{{Reading_Kun}}</font></span>
<span class="hiragana">{{Reading_Kun}}</span>
</p>
</div>

<br>
<p class="radical text">
<b>Radicals:</b>
<font color="#0a9ce6">
<span class="hiragana"><b>{{Radicals}}</b></span>
<span class="radical_icons">{{^Radicals_Icons}}, {{Radicals_Icons}}{{/Radicals_Icons}}</span>
{{#Radicals_Icons}}<b>, <span class="radical_icons" data-icon="{{Radicals_Icons}}"></b></span>
{{/Radicals_Icons}}
</font>
<span class="text">({{Radicals_Names}}{{#Radicals_Icons_Names}}, {{Radicals_Icons_Names}}{{/Radicals_Icons_Names}})</span>
</p>
Expand Down
2 changes: 1 addition & 1 deletion html/kanji Model_Recognition_f.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="kanji purple">{{Kanji}}</div>
<div class="kanji red">{{Kanji}}</div>

<div class="quest">Kanji <span class="small">/ meaning</span></div>

Expand Down
10 changes: 10 additions & 0 deletions html/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,19 @@ p { padding: 0; margin: 0; }
font-style: "italics";
}
.text.mean, .text.read { line-height: 1.4; }
.resume .text.mean span, .resume .text.read span { color: #e20096; }
.nightMode .resume .text.mean span, .nightMode .resume .text.read span { color: #ff3dbe; }
.resume.vocab .text.mean span { color: #a900fd; }
.nightMode .resume.vocab .text.mean span { color: #cc66ff; }

.text.context { line-height: 1.6; }
.text .hiragana { font-size: 16px; }
.text .hiragana img { max-width: 16px; max-height: 16px; }

.mean { margin-bottom: 0.5em; }
.small { font-size: 12px; line-height: 1; }
hr { border: none; border-bottom: solid 1px #aaa; }
.nightMode hr { border-bottom-color: #666; }

.radicon {
color:white;
Expand All @@ -54,10 +61,12 @@ hr { border: none; border-bottom: solid 1px #aaa; }
.reading-highlight {
background-color: #999;
}
.nightMode .reading-highlight { background-color: #666; }

.radical-highlight {
background-color: #6cbde6;
}
.nightMode .radical-highlight { background-color: #29a4e3; }

.vocabulary-highlight {
background-color: #a05ef7;
Expand Down Expand Up @@ -302,6 +311,7 @@ input#typeans {
outline-style: none;
border-bottom: solid 1px #ccc;
}
.nightMode input#typeans { border-bottom-color: #666; }

.input{
margin: 5px 0;
Expand Down
2 changes: 2 additions & 0 deletions html/radical Model_Recognition_b.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{{FrontSide}}
<br>
<div class="resume">
<div class="mean text">
<b>Meaning:</b> <font color="#0a9ce6">{{Radical_Name}}</font>
</div>
</div>
<br>
<div class="mean text">
<u><b>Meaning mnemonic</b></u>
Expand Down
4 changes: 3 additions & 1 deletion html/vocab Model_Reading_b.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{FrontSide}}
<br>
<div class="text mean"><b>Meaning:</b> {{Vocab_Meaning}}</div>
<div class="resume vocab">
<div class="text mean"><b>Meaning:</b> <span>{{Vocab_Meaning}}</span></div>

<div class="text hiragana" style="font-size: 20px">
<b>{{Reading}}</b>
Expand All @@ -16,6 +17,7 @@
</div>
<br><hr><br>
{{/Kanji}}
</div>

{{#Reading_Exp}}
<div class="text read">
Expand Down
6 changes: 4 additions & 2 deletions html/vocab Model_Recognition_b.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{FrontSide}}
<br>
<div class="text mean"><b>Meaning:</b> {{Vocab_Meaning}}</div>
<div class="resume vocab">
<div class="text mean"><b>Meaning:</b> <span>{{Vocab_Meaning}}</span></div>

<div class="text hiragana" style="font-size: 20px">
<b>{{Reading}}</b>
Expand All @@ -16,6 +17,7 @@
</div>
<br><hr><br>
{{/Kanji}}
</div>

{{#Meaning_Exp}}
<div class="text mean">
Expand Down Expand Up @@ -54,7 +56,7 @@
{{/Context_jp_3}}
<br>

{{Audio_b}}
{{Audio_g}}



Expand Down

0 comments on commit 2ac5e84

Please sign in to comment.