From 0404b42f6188c22e09afd073a755af749a9d0810 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Sun, 15 Oct 2017 09:45:00 +0300 Subject: compact glossaries, line break after tags: on/off --- ext/mixed/css/display.css | 18 ++++++++++++++++++ ext/mixed/js/display.js | 2 ++ 2 files changed, 20 insertions(+) (limited to 'ext/mixed') diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css index 670930ae..b31774f9 100644 --- a/ext/mixed/css/display.css +++ b/ext/mixed/css/display.css @@ -181,6 +181,20 @@ hr { padding-left: 1.4em; } +.glossary ul.compact { + display: inline; + list-style: none; + padding-left: 0px; +} + +.glossary .compact li { + display: inline; +} + +.glossary .compact li:not(:first-child):before { + content: " | "; +} + .glossary li { color: #777; } @@ -189,6 +203,10 @@ hr { color: #000; } +div.glossary-item.compact { + display: inline; +} + .glyph { font-family: kanji-stroke-orders; font-size: 120px; diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index e3b5ee50..daa90b4e 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -239,6 +239,8 @@ class Display { grouped: options.general.resultOutputMode === 'group', merged: options.general.resultOutputMode === 'merge', playback: options.general.audioSource !== 'disabled', + tagLineBreak: options.general.tagLineBreak, + compactGlossaries: options.general.compactGlossaries, debug: options.general.debugInfo }; -- cgit v1.2.3