diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-02-27 16:54:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-27 16:54:15 -0500 |
commit | c4b2e83cb4291a3ad11d05a21a45701e3a407055 (patch) | |
tree | fc04f0219d927a6575e04618f2fa63a4083b7e96 /ext/display-templates.html | |
parent | 8d3436fca3885ba648e2c6f6bad4fa11bd8cb8c4 (diff) |
Organize display styles (#1452)
* Improve grouping for inflection and expression styles
* kanji-link => expression-kanji-link
* Remove unnecessary entry-header2 and entry-header3
* Move tag list into header for consistency with term definitions
* Move styles
* Add clear
Diffstat (limited to 'ext/display-templates.html')
-rw-r--r-- | ext/display-templates.html | 52 |
1 files changed, 22 insertions, 30 deletions
diff --git a/ext/display-templates.html b/ext/display-templates.html index 1ff8a4e4..c5659639 100644 --- a/ext/display-templates.html +++ b/ext/display-templates.html @@ -3,22 +3,18 @@ <!-- Term entry templates --> <template id="term-entry-template" data-remove-whitespace-text="true"><div class="entry" data-type="term"> <div class="entry-current-indicator" title="Current entry"><span class="entry-current-indicator-inner"></span></div> - <div class="entry-header1"> - <div class="entry-header2"> - <div class="entry-header3"> - <div class="actions"> - <button class="action-button action-view-note" hidden disabled data-icon="view-note" title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]'></button> - <button class="action-button action-add-note" hidden disabled data-icon="add-term-kanji" data-mode="term-kanji" title="Add expression" data-hotkey='["addNoteTermKanji","title","Add expression ({0})"]'></button> - <button class="action-button action-add-note" hidden disabled data-icon="add-term-kana" data-mode="term-kana" title="Add reading" data-hotkey='["addNoteTermKana","title","Add reading ({0})"]'></button> - <button class="action-button action-play-audio" data-icon="play-audio" title="Play audio" data-title-default="Play audio" data-hotkey='["playAudio",["title","data-title-default"],"Play audio ({0})"]' data-menu-position="left below h-cover v-cover"><div class="action-button-badge icon" hidden></div></button> - <span class="entry-current-indicator-icon" title="Current entry"></span> - </div> - <div class="expression-list"></div> - </div> - <div class="expression-list-details"> - <div class="expression-list-tag-list tag-list"></div> - <div class="inflection-list"></div> - </div> + <div class="entry-header"> + <div class="actions"> + <button class="action-button action-view-note" hidden disabled data-icon="view-note" title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]'></button> + <button class="action-button action-add-note" hidden disabled data-icon="add-term-kanji" data-mode="term-kanji" title="Add expression" data-hotkey='["addNoteTermKanji","title","Add expression ({0})"]'></button> + <button class="action-button action-add-note" hidden disabled data-icon="add-term-kana" data-mode="term-kana" title="Add reading" data-hotkey='["addNoteTermKana","title","Add reading ({0})"]'></button> + <button class="action-button action-play-audio" data-icon="play-audio" title="Play audio" data-title-default="Play audio" data-hotkey='["playAudio",["title","data-title-default"],"Play audio ({0})"]' data-menu-position="left below h-cover v-cover"><div class="action-button-badge icon" hidden></div></button> + <span class="entry-current-indicator-icon" title="Current entry"></span> + </div> + <div class="expression-list"></div> + <div class="expression-list-details"> + <div class="expression-list-tag-list tag-list"></div> + <div class="inflection-list"></div> </div> </div> <div class="entry-body"> @@ -92,22 +88,18 @@ <!-- Kanji entry templates --> <template id="kanji-entry-template" data-remove-whitespace-text="true"><div class="entry" data-type="kanji"> <div class="entry-current-indicator" title="Current entry"><span class="entry-current-indicator-inner"></span></div> - <div class="entry-header1"> - <div class="entry-header2"> - <div class="entry-header3"> - <div class="actions"> - <button class="action-button action-view-note" hidden disabled data-icon="view-note" title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]'></button> - <button class="action-button action-add-note" hidden disabled data-icon="add-term-kanji" data-mode="kanji" title="Add kanji" data-hotkey='["addNoteKanji","title","Add kanji ({0})"]'></button> - <span class="entry-current-indicator-icon" title="Current entry"></span> - </div> - <div class="kanji-glyph-container"> - <span class="expression-current-indicator"></span> - <div class="kanji-glyph source-text"></div> - </div> - </div> + <div class="entry-header"> + <div class="actions"> + <button class="action-button action-view-note" hidden disabled data-icon="view-note" title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]'></button> + <button class="action-button action-add-note" hidden disabled data-icon="add-term-kanji" data-mode="kanji" title="Add kanji" data-hotkey='["addNoteKanji","title","Add kanji ({0})"]'></button> + <span class="entry-current-indicator-icon" title="Current entry"></span> + </div> + <div class="kanji-glyph-container"> + <span class="expression-current-indicator"></span> + <div class="kanji-glyph source-text"></div> </div> + <div class="kanji-tag-list tag-list"></div> </div> - <div class="kanji-tag-list tag-list"></div> <div class="entry-body"> <div class="entry-body-section" data-section-type="frequencies"> <div class="entry-body-section-content frequency-group-list"></div> |