Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Revert current entry indicator to use the asterisk
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread committed Dec 20, 2020
1 parent 65352d6 commit a930319
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ext/mixed/css/display.css
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ button.action-button {
background-repeat: no-repeat;
background-size: contain;
}
.action-button[data-icon=entry-current]::before {
background-image: url("/mixed/img/entry-current.svg");
}
.action-button[data-icon=view-note]::before {
background-image: url("/mixed/img/view-note.svg");
}
Expand Down Expand Up @@ -582,7 +585,7 @@ button.action-button {
position: relative;
}
.entry>.entry-current-indicator {
display: block;
display: none;
position: absolute;
left: calc(-1 * var(--main-content-horizontal-padding));
top: 0;
Expand Down Expand Up @@ -621,6 +624,9 @@ button.action-button {
.term-expression-text>ruby>rt {
color: var(--kanji-furigana-text-color);
}
.entry:not(.entry-current) .action-current-indicator {
display: none;
}
.entry-header2,
.entry-header3 {
display: inline;
Expand Down
2 changes: 2 additions & 0 deletions ext/mixed/display-templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<button class="action-button action-add-note" hidden disabled data-icon="add-term-kanji" data-mode="term-kanji" title="Add expression (Alt + E)"></button>
<button class="action-button action-add-note" hidden disabled data-icon="add-term-kana" data-mode="term-kana" title="Add reading (Alt + R)"></button>
<button class="action-button action-play-audio" data-icon="play-audio" title="Play audio (Alt + P)"></button>
<span class="action-button action-current-indicator" data-icon="entry-current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)"></span>
</div>
<div class="term-expression-list"></div>
</div>
Expand Down Expand Up @@ -62,6 +63,7 @@
<div class="actions">
<button class="action-button action-view-note" hidden disabled data-icon="view-note" title="View added note (Alt + V)"></button>
<button class="action-button action-add-note" hidden disabled data-icon="add-term-kanji" data-mode="kanji" title="Add Kanji (Alt + K)"></button>
<span class="action-button action-current-indicator" data-icon="entry-current" title="Current entry (Alt + Up/Down/Home/End/PgUp/PgDn)"></span>
</div>
<div class="kanji-glyph source-text"></div>
</div>
Expand Down

0 comments on commit a930319

Please sign in to comment.