Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying sidenotes and other items in the right margin on small screens #5

Open
ghost opened this issue Jun 25, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 25, 2016

On a narrow screen, one possibility would be to have a hidden drawer off to the right side of the screen that the user can slide open to display anything in the right margin. This could come in and go out with a swipe.

This solution does not meet the ideal of having the note and the text it refers to visible at the same time, but if part of the text in the main column is still visible (e.g. its left edge), the reader will not have any trouble returning to precisely the point in the text where he/she left off to look at the material in the margin.

The off-canvas pattern illustrates the general idea:

https://developers.google.com/web/fundamentals/design-and-ui/responsive/patterns/off-canvas?hl=en

If I use a window that is less than 800 px wide with chrome on the mac and click on the screen, the drawer slides in from the right.

Note however that the code itself is buggy. It does not work on my Nexus, nor when I simulate the Nexus using Chrome's developer tools.

@siawyoung
Copy link
Owner

Ah, I see what you mean here. I'll keep this on the backburner for the time being as it deviates quite a bit from Tufte's intended UI/stylings. If you can demonstrate your proposal with a PR, I'll take a look at it and see if it works well enough to work as a substitute. Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant