Repository: accumulo-website Updated Branches: refs/heads/asf-site 34b1b3285 -> 03f666e43 refs/heads/master 3c554918d -> c7de9288f
Affixed documentation sidebar to move when user scrolls Project: http://git-wip-us.apache.org/repos/asf/accumulo-website/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo-website/commit/c7de9288 Tree: http://git-wip-us.apache.org/repos/asf/accumulo-website/tree/c7de9288 Diff: http://git-wip-us.apache.org/repos/asf/accumulo-website/diff/c7de9288 Branch: refs/heads/master Commit: c7de9288f18fb3aa7e46b21adb4e15fbb4f577ff Parents: 3c55491 Author: Mike Walch <[email protected]> Authored: Fri Jun 2 11:35:07 2017 -0400 Committer: Mike Walch <[email protected]> Committed: Fri Jun 2 11:35:07 2017 -0400 ---------------------------------------------------------------------- _includes/scripts.html | 8 +++++++- _layouts/docs-unreleased.html | 7 ++++--- css/accumulo.scss | 7 +++++++ 3 files changed, 18 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo-website/blob/c7de9288/_includes/scripts.html ---------------------------------------------------------------------- diff --git a/_includes/scripts.html b/_includes/scripts.html index cceb557..2ade974 100644 --- a/_includes/scripts.html +++ b/_includes/scripts.html @@ -19,7 +19,13 @@ } }); }); - + + // fix sidebar width in documentation + $(function() { + var $affixElement = $('div[data-spy="affix"]'); + $affixElement.width($affixElement.parent().width()); + }); + // configure Google Analytics (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), http://git-wip-us.apache.org/repos/asf/accumulo-website/blob/c7de9288/_layouts/docs-unreleased.html ---------------------------------------------------------------------- diff --git a/_layouts/docs-unreleased.html b/_layouts/docs-unreleased.html index 51dce83..a31d43f 100644 --- a/_layouts/docs-unreleased.html +++ b/_layouts/docs-unreleased.html @@ -3,11 +3,9 @@ layout: default skiph1fortitle: true --- -<div class="alert alert-danger" role="alert">This documentation is for an unreleased version of Apache Accumulo that is currently under development! Check out the <a href="{{ site.baseurl }}/{{ site.latest_minor_release }}/accumulo_user_manual.html">documentation for the latest release</a>.</div> - <div class="row"> <div class="col-md-3"> - <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> + <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true" data-spy="affix"> <div class="panel panel-default"> {% assign mydocs = site.docs-unreleased | group_by: 'category' %} {% assign categories = "getting-started,development,administration,troubleshooting" | split: "," %} @@ -40,6 +38,9 @@ skiph1fortitle: true <p><a href="{{ site.baseurl }}/docs/{{ page.version }}/">Accumulo {{ page.version }} docs</a> >> {{ page.category | capitalize | replace: "-", " " }} >> {{ page.title }}</p> {% endif %} {% unless page.nodoctitle %} + + <div class="alert alert-danger" role="alert">This documentation is for a future release of Accumulo that is under development! Check out <a href="{{ site.baseurl }}/{{ site.latest_minor_release }}/accumulo_user_manual.html">documentation for the latest release</a>.</div> + <h1>{{ page.title }}</h1> {% endunless %} {{ content }} http://git-wip-us.apache.org/repos/asf/accumulo-website/blob/c7de9288/css/accumulo.scss ---------------------------------------------------------------------- diff --git a/css/accumulo.scss b/css/accumulo.scss index 5a6772d..1d89d13 100644 --- a/css/accumulo.scss +++ b/css/accumulo.scss @@ -182,6 +182,13 @@ h1[id]::before, h2[id]::before, h3[id]::before, h4[id]::before, h5[id]::before, visibility: hidden; } +/* Turn off sidebar affix for small screens */ +@media (max-width: 975px) { + .affix { + position: static; + } +} + /* Makes navbar collapse at larger width (1050px) */ @media (max-width: 975px) { .navbar-header {
