Closed dmerrick closed 7 years ago
I put your code above in between two paragraphs, and the marginnote showed up...its a bit misaligned, which should be fixed, but I can see it. Can you provide a bit more of a minimal example and perhaps a screen shot of the problem your seeing?
Thanks for responding, @crmackay!
Here's an example of this happening: https://www.dana.lol/2017/09/26/thanks/
Interestingly, if I wrap the <ul>
in a <p>
, I get this:
The *
s come from the fact that this is written in Markdown.
so the reason appears to be because you do not have your ul
and ol
elements inside a <section>
... </section>
element.
Thanks, I was wondering if that was the case. I'm not a CSS guy so it's all kind of a mystery to me!
I added <section>
tags and the sidenotes now appear, yay!
The last issue seems to be that the notes aren't aligned with the other notes:
I think lists in general need a bit of TLC:
<p>
tags, the line height doesn't get set properly.<p>
tags, you get too much vertical spacing between list items, and the width of lists is constrained to 55% of the section width.<p>
or no <p>
), the margin notes don't show up at the correct alignment.I agree that lists need some TLC. I will not have time to look at anything Tufte CSS-related for a couple months at a minimum. PRs welcome, as long as they involve extensive testing to make sure we don't introduce any regressions. :)
@dmerrick I have a fix for this in #118. If you could try it out and report whether it fixes the layouting issues you were getting, that'd be great!
Seems to work for me!
I have a marginnote in an unordered list, it looks like this:
Unfortunately, the note text does not appear in the margin. Oddly, when the viewport is shrunk, I can click the "expand" icon and see the note inline, but when I restore the viewport to the original size, the marginnote disappears.
This is the same for sidenotes and unordered lists as well.