diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-12-20 12:34:04 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-12-20 12:34:04 -0500 |
commit | a9303197a9cd2308f2cf168b2191fe3fb1927094 (patch) | |
tree | f194d9174ff19bc87977b17f7e1253b1f012b0aa | |
parent | 65352d609d975db1a9e17af8f4295d5fc42a7162 (diff) |
Revert current entry indicator to use the asterisk
-rw-r--r-- | ext/mixed/css/display.css | 8 | ||||
-rw-r--r-- | ext/mixed/display-templates.html | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css index 4718bce7..323dc82f 100644 --- a/ext/mixed/css/display.css +++ b/ext/mixed/css/display.css @@ -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"); } @@ -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; @@ -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; diff --git a/ext/mixed/display-templates.html b/ext/mixed/display-templates.html index 3953098d..a2b3356e 100644 --- a/ext/mixed/display-templates.html +++ b/ext/mixed/display-templates.html @@ -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> @@ -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> |