Feature proposal / RFC: sidenotes #4688
Replies: 5 comments 7 replies
-
Excellent idea! |
Beta Was this translation helpful? Give feedback.
-
An example in the wild (with the Blog addon!): Still trying to get it working with footnotes :') |
Beta Was this translation helpful? Give feedback.
-
Another example: This could work pretty well as an alternative view for code annotations if implemented properly (right now this is a pile of CSS hacks making a few code blocks look like a continuous one). UPD: see it live: https://lunni.aedge.dev/deploy/ |
Beta Was this translation helpful? Give feedback.
-
Let's discuss mobile support here. From the top of my head, I see three possible uses of sidenotes: Plain margin notesJust some text on the margin. On mobile, those can just be inlined after the paragraph they're attached to: Alternatively, Tufte CSS implements those as a ⊕ link/button inside the paragraph, but I see this as undesirable: it requires another tap on a rather small button to show content, rather than allowing to just scroll past through it. Same goes for tap-to-show footnotes. FootnotesThose would too look nice inlined on mobile IMHO: Code annotationsCompared to footnotes, which have numbers and thus can be safely moved a bit away from the related text, code annotations are unnumbered and should occur near the line they are talking about so that it is easier for the reader to follow. On mobile, we can just reuse the current code annotation logic with the tap-to-show button. Some alternative approaches:
|
Beta Was this translation helpful? Give feedback.
-
Let's discuss TOC in this thread. I don't really see a way to integrate right-hand TOC with sidenotes cleanly.
Any other ideas? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
See it live: https://material-tufte.ale.sh/
Source code: https://material-tufte.ale.sh/stylesheets/tufte-sidebars.css
Beta Was this translation helpful? Give feedback.
All reactions