Add scrollbar to menu if taller than the current viewport

This commit is contained in:
Michael Rose 2013-08-24 18:09:43 -04:00
parent ccdc0e3118
commit 501c763bdf
4 changed files with 18 additions and 9 deletions

View File

@ -17,28 +17,28 @@
{% if site.owner.twitter %}<li>
<a href="http://twitter.com/{{ site.owner.twitter }}"><i class="icon-twitter"></i> Twitter</a>
</li>{% endif %}
{% if site.owner.facebook %}<li>
{% if site.owner.facebook %}<li>
<a href="http://facebook.com/{{ site.owner.facebook }}"><i class="icon-facebook"></i> Facebook</a>
</li>{% endif %}
{% if site.owner.google_plus %}<li>
{% if site.owner.google_plus %}<li>
<a href="{{ site.owner.google_plus }}"><i class="icon-google-plus"></i> Google+</a>
</li>{% endif %}
{% if site.owner.linkedin %}<li>
{% if site.owner.linkedin %}<li>
<a href="http://linkedin.com/in/{{ site.owner.linkedin }}"><i class="icon-linkedin"></i> LinkedIn</a>
</li>{% endif %}
{% if site.owner.github %}<li>
{% if site.owner.github %}<li>
<a href="http://github.com/{{ site.owner.github }}"><i class="icon-github"></i> GitHub</a>
</li>{% endif %}
{% if site.owner.stackexchange %}<li>
{% if site.owner.stackexchange %}<li>
<a href="{{ site.owner.stackexchange }}"><i class="icon-stackexchange"></i> Stackexchange</a>
</li>{% endif %}
{% if site.owner.instagram %}<li>
{% if site.owner.instagram %}<li>
<a href="http://instagram.com/{{ site.owner.instagram }}"><i class="icon-instagram"></i> Instagram</a>
</li>{% endif %}
{% if site.owner.flickr %}<li>
{% if site.owner.flickr %}<li>
<a href="http://www.flickr.com/photos/{{ site.owner.flickr }}"><i class="icon-flickr"></i> Flickr</a>
</li>{% endif %}
{% if site.owner.tumblr %}<li>
{% if site.owner.tumblr %}<li>
<a href="http://{{ site.owner.tumblr }}.tumblr.com"><i class="icon-tumblr"></i> Tumblr</a>
</li>{% endif %}
</ul><!-- /.dl-submenu -->

File diff suppressed because one or more lines are too long

View File

@ -136,6 +136,8 @@
backface-visibility: hidden;
@media @medium {
.border-radius(3px,3px,3px,3px);
overflow-y: auto;
max-height: 650px;
}
}
.dl-menu.dl-menu-toggle {

View File

@ -1,7 +1,9 @@
/*!
// ===========================================================
// HPSTR Jekyll Theme
// By: Michael Rose
// ===========================================================
*/
// ROOT =======================================================
// CSS Reset ==================================================