mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Alternative solution to markdown tooltips creating bottom margin
This commit is contained in:
parent
3232712748
commit
3227346f53
1 changed files with 11 additions and 9 deletions
|
@ -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 a new issue