sliding top menu

This commit is contained in:
Open-Steps.org 2015-02-03 04:36:49 +01:00
parent 057a63d15e
commit 7dcbe77c2d
24 changed files with 918 additions and 123 deletions

View file

@ -12,10 +12,12 @@
<div class="">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Jump to session<span class="caret"></span></a>
<a href="#" class="navigator-toggle button hvr-sweep-to-top">More</a>
<!-- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Jump to session<span class="caret"></span></a> -->
<ul class="dropdown-menu" role="menu">
{% for post in site.posts %}
<li><a href="{{post.url}}">{{post.title}} / {{post.date_text}}</a></li>
{% assign pos = 39 | minus: post.number %}
<li><a data-scroll-nav="{{pos}}">#{{post.number}}: {{post.topics}}</a></li>
{% endfor %}
</ul>
</li>
@ -24,9 +26,30 @@
<li><a class="button hvr-sweep-to-top" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></li>
{% endif %}
{% endfor %}
<li><a href="#" data-scroll-nav="0" class="button hvr-sweep-to-top">TOP</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div>
</nav>
<div class="container-fluid navigator">
<div class="row">
<div class="col-md-6 col-md-offset-1">
<h4>Browse by content</h4>
{% for post in site.posts %}
{% assign pos = 39 | minus: post.number %}
{% for topic in post.topics | split:"," %}
<a class="button hvr-sweep-to-top" data-scroll-nav="{{pos}}">{{topic}}</a>
{% endfor %}
{% endfor %}
</div>
<div class="col-md-4">
<h4>Upcoming session</h4>
</div>
</div>
</div>