It's great for many other purposes, but a lot of people will probably prefer doing things in Markdown.
It's great for many other purposes, but a lot of people will probably prefer doing things in Markdown.
There is some CSS to put the asides on the side[3] (with a ton of variations to make it play nice on mobile). Then there's a bit of JS to correctly line them up with <span> markers[4]. It was a bit more effort than I expected, and I don't like having to rely on JS, but the output is really nice, I think.
For example, take a look at this chapter[5], and try resizing your browser window or hitting it on a mobile device.
[1]: http://gameprogrammingpatterns.com/
[2]: https://github.com/munificent/game-programming-patterns/blob...
[3]: https://github.com/munificent/game-programming-patterns/blob...
[4]: https://github.com/munificent/game-programming-patterns/blob...
(Aside: I really love using the Mobile Design View in Firefox and Chrome for inspecting responsive behavior. You can drag the viewport size by hand, or switch it to presets that represent target devices easily. All while keeping the full width of the browser pane for developer/inspector UI. FF even has a nice toggle shortcut, ⌥⌘M on OS X.)
What help. /s
Searching "css sidenote edward morbius" on G+ might turn up something and basic CSS.
Not responsive, but @media queries on width and re-scaling width, margin, background colour, and border colour is what gets you that.
Motherfucking Website. No sidenotes. but other bones of my basic design. http://codepen.io/dredmorbius/pen/KpMqqB
Daniel Bos's sidenote implementation: http://loadingdata.nl/waves/
(Degrades nicely for non-CSS viewers, not responsive.)
Yup. This is a nice (deliberate) side effect of using separate <aside> blocks instead of jamming them in the middle of the paragraph. The original location of the <aside> tag determines where the sidebar appears in the text flow if there's no room for it on the side. In some cases, it may be a few paragraphs distant from where it shows up on the side if that leads to better reading.
This is also the fallback for users who don't have JS enabled. (Well, all both of them, at this point.)
> I really love using the Mobile Design View in Firefox and Chrome for inspecting responsive behavior.
Oh, yeah. I basically lived in that for a few days when I was tweaking the CSS.