From 6d7eefa9df0fbb6fe04b2e417aed78ac25c88541 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 19 Dec 2020 20:16:45 -0500 Subject: Fix triangle indicator for kanji (#1141) --- ext/mixed/css/display.css | 8 +++++++- ext/mixed/display-templates.html | 7 +++++-- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'ext') diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css index 16266f9c..a6ca2810 100644 --- a/ext/mixed/css/display.css +++ b/ext/mixed/css/display.css @@ -794,7 +794,6 @@ button.action-button { .term-expression-current-indicator { pointer-events: none; position: absolute; - font-size: calc(1em / var(--expression-font-size-no-units)); left: calc(-1 * var(--main-content-horizontal-padding)); top: 0; bottom: 0; @@ -804,6 +803,9 @@ button.action-button { opacity var(--entry-current-indicator-transition-duration) linear, visibility 0s linear var(--entry-current-indicator-transition-duration); } +.term-expression-text .term-expression-current-indicator { + font-size: calc(1em / var(--expression-font-size-no-units)); +} .entry.entry-current .term-expression-current-indicator { opacity: 1; visibility: visible; @@ -1185,6 +1187,10 @@ button.action-button { /* Kanji */ +.kanji-glyph-container { + display: block; + position: relative; +} .kanji-glyph { font-family: kanji-stroke-orders; font-size: 8.5em; diff --git a/ext/mixed/display-templates.html b/ext/mixed/display-templates.html index 3f6437ee..26252634 100644 --- a/ext/mixed/display-templates.html +++ b/ext/mixed/display-templates.html @@ -57,7 +57,7 @@ -