Alternative solution to markdown tooltips creating bottom margin
This commit is contained in:
parent
3232712748
commit
3227346f53
@ -28,16 +28,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.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
|
||||||
|
// 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;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user