react-native/website/core
Andrej Badin 00c77800c9 Improve Docs navigation on handheld devices.
Summary:
Fixes #7519

JS detects handheld device by sniffing UA string (very primitive detection). If on handheld device, event listener is registered. Event handler toggles Docs Navigation overlay after clicking on "Docs" nav button.
Original Docs Navigation panel is taken out of the natural page flow using pure CSS and is styled to look "good" on device.  As a result of this, Navigation overlay is ONLY visible when you are at Docs page, otherwise "Docs" nav button takes you Docs page first.

iPhone/iPad previews
![iphone](https://cloud.githubusercontent.com/assets/829963/15409630/f1a64b1a-1e15-11e6-92eb-f85c5cd06754.gif)
![ipad](https://cloud.githubusercontent.com/assets/829963/15409631/f1a6f952-1e15-11e6-8f5c-6f89f54e6814.gif)
Closes https://github.com/facebook/react-native/pull/7640

Differential Revision: D3325440

Pulled By: vjeux

fbshipit-source-id: a06b21d743d56bfea5db5b750836856c3af9bbe2
2016-05-20 02:50:08 -07:00
..
AlgoliaDocSearch.js [Website] First pass at Algolia Doc Search 2015-12-29 12:45:33 -05:00
BlogPost.js Introduce blog 2016-03-24 14:11:30 -07:00
BlogSidebar.js Introduce blog 2016-03-24 14:11:30 -07:00
DocsSidebar.js Improve Docs navigation on handheld devices. 2016-05-20 02:50:08 -07:00
H2.js Fix issues running the website locally on windows with npm3 2016-01-02 03:56:32 -05:00
Header.js fix all anchor links in docs 2016-02-29 09:21:31 -08:00
HeaderLinks.js Improve Docs navigation on handheld devices. 2016-05-20 02:50:08 -07:00
HeaderWithGithub.js Remove default argument syntax on getVersionedGithubPath() 2016-05-07 14:10:33 -07:00
Marked.js Document colors 2016-01-28 19:37:33 -08:00
Prism.js Add copyright header on website files 2015-03-23 10:56:09 -07:00
Site.js Remove Releases tab from header 2016-03-09 19:36:26 -08:00
center.js Add copyright header on website files 2015-03-23 10:56:09 -07:00
slugify.js Add copyright header on website files 2015-03-23 10:56:09 -07:00
unindent.js Add copyright header on website files 2015-03-23 10:56:09 -07:00