From 3227346f538fdbd96197add8a8f86449b4e8d4b0 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Sat, 12 Jun 2021 00:32:07 +0200 Subject: [PATCH] Alternative solution to markdown tooltips creating bottom margin --- ts/deckoptions/deckoptions-base.scss | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/ts/deckoptions/deckoptions-base.scss b/ts/deckoptions/deckoptions-base.scss index ff17b48c8..63b1d607e 100644 --- a/ts/deckoptions/deckoptions-base.scss +++ b/ts/deckoptions/deckoptions-base.scss @@ -28,16 +28,18 @@ } .tooltip-inner { - max-width: 300px; text-align: left; + max-width: 300px; - p { - margin: 0.8em 0.4em 0.8em 0.8em; + // marked transpiles tooltips into multiple paragraphs + // where trailing

s cause a bottom margin + > p:last-child { + display: inline; + } + + // the default code color in tooltips is difficult to read; we'll probably + // want to add more of our own styling in the future + code { + color: #ffaaaa; } } - -// the default code color in tooltips is difficult to read; we'll probably -// want to add more of our own styling in the future -code { - color: #ffaaaa; -}