Alternative solution to markdown tooltips creating bottom margin

This commit is contained in:
Henrik Giesel 2021-06-12 00:32:07 +02:00
parent 3232712748
commit 3227346f53

View file

@ -28,12 +28,13 @@
} }
.tooltip-inner { .tooltip-inner {
max-width: 300px;
text-align: left; text-align: left;
max-width: 300px;
p { // marked transpiles tooltips into multiple paragraphs
margin: 0.8em 0.4em 0.8em 0.8em; // where trailing <p>s cause a bottom margin
} > p:last-child {
display: inline;
} }
// the default code color in tooltips is difficult to read; we'll probably // the default code color in tooltips is difficult to read; we'll probably
@ -41,3 +42,4 @@
code { code {
color: #ffaaaa; color: #ffaaaa;
} }
}