version 3.0 of the theme -- complete overhaul

This commit is contained in:
Tom Johnson
2015-08-11 16:48:17 -07:00
parent 95fa839f0c
commit 6cab011d1b
181 changed files with 4747 additions and 10289 deletions

View File

@@ -4,16 +4,13 @@ $('#mysidebar').height($(".nav").height());
$( document ).ready(function() {
//this script says, if the height of the viewport is greater than 600px, then insert affix class, which makes the nav bar float in a fixed
//this script says, if the height of the viewport is greater than 800px, then insert affix class, which makes the nav bar float in a fixed
// position as your scroll. if you have a lot of nav items, this height may not work for you.
{% unless site.floating_nav == "false" %}
var h = $(window).height();
console.log (h);
if (h > 600) {
$( "#mysidebar" ).attr("class", "nav affix");
}
{% endif %}
if (h > 800) {
$( "#mysidebar" ).attr("class", "nav affix");
}
// activate tooltips. although this is a bootstrap js function, it must be activated this way in your theme.
$('[data-toggle="tooltip"]').tooltip({
placement : 'top'
@@ -53,3 +50,4 @@ $(function() {
});