documentcloud/backbone — pull request #1323 by hswolff (2012-05-16 03:42:15+00:00)
Title: implement optimized mobile version of Backbone website

Sometimes when I'm bored I like to read the Backbone.js website.

Unfortunately mobile browsers render elements that are `position: fixed` like a disease (horribly). This makes the mobile browsing experience quite unpleasant.

This pull request uses CSS3 media queries to optimize the page for mobile viewing. I tried to be as minimally invasive as possible.

Preview these changes (on your phone) on my fork's gh-pages:

http://hswolff.github.com/backbone/

Note, the reason I did the following was without this CSS style you couldn't tap the top of Mobile Safari to jump to the top of the screen. -webkit-overflow-scrolling does weird things, and I figured it was more important to jump to the top than have inertial scrolling in the TOC.

```
div#sidebar {
-webkit-overflow-scrolling: initial;
```