{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/47701271","id":47701271,"diff_hunk":"@@ -171,24 +202,104 @@ a.anchorjs-link:hover { text-decoration: none; }\n  * The left navigation bar.\n  */\n .left-menu-wrapper {\n-  position: absolute;\n-  height: 100%;\n-\n-  width: 256px;\n-  margin-top: -20px;\n-  padding-top: 20px;\n+  margin-left: 0px;\n+  margin-right: 0px;\n   background-color: #F0F8FC;\n+  border-top-width: 0px;\n+  border-left-width: 0px;\n+  border-bottom-width: 0px;\n+  margin-top: 0px;\n+  width: 210px;\n+  float: left;\n+  position: absolute;\n }\n \n .left-menu {\n-  position: fixed;\n-  max-width: 350px;\n-\n-  padding-right: 10px;\n-  width: 256px;\n+  padding: 0px;\n+  width: 199px;\n }\n \n .left-menu h3 {\n   margin-left: 10px;\n   line-height: 30px;\n+}\n+\n+/**\n+ * The collapsing button for the navigation bar.\n+ */\n+.nav-trigger {\n+    position: fixed;\n+    clip: rect(0, 0, 0, 0);\n+}\n+\n+.nav-trigger + label:after {\n+    content: '»';\n+}\n+\n+label {\n+  z-index: 10;\n+}\n+\n+label[for=\"nav-trigger\"] {\n+    position: fixed;","path":"docs/css/main.css","position":107,"original_position":107,"commit_id":"b091b42660ac510ba49ddf0274c779ae1c249b67","original_commit_id":"b091b42660ac510ba49ddf0274c779ae1c249b67","user":{"login":"parano","id":489344,"avatar_url":"https://avatars.githubusercontent.com/u/489344?v=3","gravatar_id":"","url":"https://api.github.com/users/parano","html_url":"https://github.com/parano","followers_url":"https://api.github.com/users/parano/followers","following_url":"https://api.github.com/users/parano/following{/other_user}","gists_url":"https://api.github.com/users/parano/gists{/gist_id}","starred_url":"https://api.github.com/users/parano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parano/subscriptions","organizations_url":"https://api.github.com/users/parano/orgs","repos_url":"https://api.github.com/users/parano/repos","events_url":"https://api.github.com/users/parano/events{/privacy}","received_events_url":"https://api.github.com/users/parano/received_events","type":"User","site_admin":false},"body":"I saw both 2 and 4 space indent in this file, it should be consistant","created_at":"2015-12-15T21:29:02Z","updated_at":"2015-12-15T21:29:02Z","html_url":"https://github.com/apache/spark/pull/10297#discussion_r47701271","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/10297","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/47701271"},"html":{"href":"https://github.com/apache/spark/pull/10297#discussion_r47701271"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/10297"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/10297","id":53620398,"html_url":"https://github.com/apache/spark/pull/10297","diff_url":"https://github.com/apache/spark/pull/10297.diff","patch_url":"https://github.com/apache/spark/pull/10297.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/10297","number":10297,"state":"open","locked":false,"title":"[SPARK-12324][MLLIB][DOC] Fixes the sidebar in the ML documentation","user":{"login":"thunterdb","id":7594753,"avatar_url":"https://avatars.githubusercontent.com/u/7594753?v=3","gravatar_id":"","url":"https://api.github.com/users/thunterdb","html_url":"https://github.com/thunterdb","followers_url":"https://api.github.com/users/thunterdb/followers","following_url":"https://api.github.com/users/thunterdb/following{/other_user}","gists_url":"https://api.github.com/users/thunterdb/gists{/gist_id}","starred_url":"https://api.github.com/users/thunterdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thunterdb/subscriptions","organizations_url":"https://api.github.com/users/thunterdb/orgs","repos_url":"https://api.github.com/users/thunterdb/repos","events_url":"https://api.github.com/users/thunterdb/events{/privacy}","received_events_url":"https://api.github.com/users/thunterdb/received_events","type":"User","site_admin":false},"body":"This fixes the sidebar, using a pure CSS mechanism to hide it when the browser's viewport is too narrow.\r\nCredit goes to the original author @Titan-C (mentioned in the NOTICE).\r\n\r\nNote that I am not a CSS expert, so I can only address comments up to some extent.\r\n\r\nDefault view:\r\n<img width=\"936\" alt=\"screen shot 2015-12-14 at 12 46 39 pm\" src=\"https://cloud.githubusercontent.com/assets/7594753/11793597/6d1d6eda-a261-11e5-836b-6eb2054e9054.png\">\r\n\r\nWhen collapsed manually by the user:\r\n<img width=\"1004\" alt=\"screen shot 2015-12-14 at 12 54 02 pm\" src=\"https://cloud.githubusercontent.com/assets/7594753/11793669/c991989e-a261-11e5-8bf6-aecf3bdb6319.png\">\r\n\r\n\r\nDisappears when column is too narrow:\r\n<img width=\"697\" alt=\"screen shot 2015-12-14 at 12 47 22 pm\" src=\"https://cloud.githubusercontent.com/assets/7594753/11793607/7754dbcc-a261-11e5-8b15-e0d074b0e47c.png\">\r\n\r\nCan still be opened by the user if necessary:\r\n<img width=\"651\" alt=\"screen shot 2015-12-14 at 12 51 15 pm\" src=\"https://cloud.githubusercontent.com/assets/7594753/11793612/7bf82968-a261-11e5-9cc3-e827a7a6b2b0.png\">\r\n","created_at":"2015-12-14T20:55:16Z","updated_at":"2015-12-15T21:29:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8defd305b62fe6193562f95d44a17eaa62a5f0da","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/10297/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/10297/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/10297/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/b091b42660ac510ba49ddf0274c779ae1c249b67","head":{"label":"thunterdb:12324","ref":"12324","sha":"b091b42660ac510ba49ddf0274c779ae1c249b67","user":{"login":"thunterdb","id":7594753,"avatar_url":"https://avatars.githubusercontent.com/u/7594753?v=3","gravatar_id":"","url":"https://api.github.com/users/thunterdb","html_url":"https://github.com/thunterdb","followers_url":"https://api.github.com/users/thunterdb/followers","following_url":"https://api.github.com/users/thunterdb/following{/other_user}","gists_url":"https://api.github.com/users/thunterdb/gists{/gist_id}","starred_url":"https://api.github.com/users/thunterdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thunterdb/subscriptions","organizations_url":"https://api.github.com/users/thunterdb/orgs","repos_url":"https://api.github.com/users/thunterdb/repos","events_url":"https://api.github.com/users/thunterdb/events{/privacy}","received_events_url":"https://api.github.com/users/thunterdb/received_events","type":"User","site_admin":false},"repo":{"id":21404403,"name":"spark","full_name":"thunterdb/spark","owner":{"login":"thunterdb","id":7594753,"avatar_url":"https://avatars.githubusercontent.com/u/7594753?v=3","gravatar_id":"","url":"https://api.github.com/users/thunterdb","html_url":"https://github.com/thunterdb","followers_url":"https://api.github.com/users/thunterdb/followers","following_url":"https://api.github.com/users/thunterdb/following{/other_user}","gists_url":"https://api.github.com/users/thunterdb/gists{/gist_id}","starred_url":"https://api.github.com/users/thunterdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thunterdb/subscriptions","organizations_url":"https://api.github.com/users/thunterdb/orgs","repos_url":"https://api.github.com/users/thunterdb/repos","events_url":"https://api.github.com/users/thunterdb/events{/privacy}","received_events_url":"https://api.github.com/users/thunterdb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thunterdb/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/thunterdb/spark","forks_url":"https://api.github.com/repos/thunterdb/spark/forks","keys_url":"https://api.github.com/repos/thunterdb/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thunterdb/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thunterdb/spark/teams","hooks_url":"https://api.github.com/repos/thunterdb/spark/hooks","issue_events_url":"https://api.github.com/repos/thunterdb/spark/issues/events{/number}","events_url":"https://api.github.com/repos/thunterdb/spark/events","assignees_url":"https://api.github.com/repos/thunterdb/spark/assignees{/user}","branches_url":"https://api.github.com/repos/thunterdb/spark/branches{/branch}","tags_url":"https://api.github.com/repos/thunterdb/spark/tags","blobs_url":"https://api.github.com/repos/thunterdb/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thunterdb/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thunterdb/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/thunterdb/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thunterdb/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/thunterdb/spark/languages","stargazers_url":"https://api.github.com/repos/thunterdb/spark/stargazers","contributors_url":"https://api.github.com/repos/thunterdb/spark/contributors","subscribers_url":"https://api.github.com/repos/thunterdb/spark/subscribers","subscription_url":"https://api.github.com/repos/thunterdb/spark/subscription","commits_url":"https://api.github.com/repos/thunterdb/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/thunterdb/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/thunterdb/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/thunterdb/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/thunterdb/spark/contents/{+path}","compare_url":"https://api.github.com/repos/thunterdb/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thunterdb/spark/merges","archive_url":"https://api.github.com/repos/thunterdb/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thunterdb/spark/downloads","issues_url":"https://api.github.com/repos/thunterdb/spark/issues{/number}","pulls_url":"https://api.github.com/repos/thunterdb/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/thunterdb/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/thunterdb/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thunterdb/spark/labels{/name}","releases_url":"https://api.github.com/repos/thunterdb/spark/releases{/id}","created_at":"2014-07-01T22:39:51Z","updated_at":"2014-07-01T19:53:22Z","pushed_at":"2015-12-14T20:41:57Z","git_url":"git://github.com/thunterdb/spark.git","ssh_url":"git@github.com:thunterdb/spark.git","clone_url":"https://github.com/thunterdb/spark.git","svn_url":"https://github.com/thunterdb/spark","homepage":null,"size":129717,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"b51a4cdff3a7e640a8a66f7a9c17021f3056fd34","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","created_at":"2014-02-25T08:00:08Z","updated_at":"2015-12-15T20:02:39Z","pushed_at":"2015-12-15T21:22:49Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":390287,"stargazers_count":6587,"watchers_count":6587,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6104,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":414,"forks":6104,"open_issues":414,"watchers":6587,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/10297"},"html":{"href":"https://github.com/apache/spark/pull/10297"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/10297"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/10297/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/10297/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/10297/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/b091b42660ac510ba49ddf0274c779ae1c249b67"}}}}