aboutsummaryrefslogtreecommitdiff
path: root/docs/css
diff options
context:
space:
mode:
authorTimothy Hunter <timhunter@databricks.com>2015-11-22 21:51:42 -0800
committerXiangrui Meng <meng@databricks.com>2015-11-22 21:51:42 -0800
commitfc4b792d287095d70379a51f117c225d8d857078 (patch)
tree7fe7d755fea0b91095c999b82084a3104187da83 /docs/css
parenta6fda0bfc16a13b28b1cecc96f1ff91363089144 (diff)
downloadspark-fc4b792d287095d70379a51f117c225d8d857078.tar.gz
spark-fc4b792d287095d70379a51f117c225d8d857078.tar.bz2
spark-fc4b792d287095d70379a51f117c225d8d857078.zip
[SPARK-11835] Adds a sidebar menu to MLlib's documentation
This PR adds a sidebar menu when browsing the user guide of MLlib. It uses a YAML file to describe the structure of the documentation. It should be trivial to adapt this to the other projects. ![screen shot 2015-11-18 at 4 46 12 pm](https://cloud.githubusercontent.com/assets/7594753/11259591/a55173f4-8e17-11e5-9340-0aed79d66262.png) Author: Timothy Hunter <timhunter@databricks.com> Closes #9826 from thunterdb/spark-11835.
Diffstat (limited to 'docs/css')
-rwxr-xr-xdocs/css/main.css37
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/css/main.css b/docs/css/main.css
index d770173be1..356b324d63 100755
--- a/docs/css/main.css
+++ b/docs/css/main.css
@@ -39,8 +39,18 @@
margin-left: 10px;
}
+body .container-wrapper {
+ position: absolute;
+ width: 100%;
+ display: flex;
+}
+
body #content {
+ position: relative;
+
line-height: 1.6; /* Inspired by Github's wiki style */
+ background-color: white;
+ padding-left: 15px;
}
.title {
@@ -155,3 +165,30 @@ ul.nav li.dropdown ul.dropdown-menu li.dropdown-submenu ul.dropdown-menu {
* AnchorJS (anchor links when hovering over headers)
*/
a.anchorjs-link:hover { text-decoration: none; }
+
+
+/**
+ * The left navigation bar.
+ */
+.left-menu-wrapper {
+ position: absolute;
+ height: 100%;
+
+ width: 256px;
+ margin-top: -20px;
+ padding-top: 20px;
+ background-color: #F0F8FC;
+}
+
+.left-menu {
+ position: fixed;
+ max-width: 350px;
+
+ padding-right: 10px;
+ width: 256px;
+}
+
+.left-menu h3 {
+ margin-left: 10px;
+ line-height: 30px;
+} \ No newline at end of file