.nestedtitle h2 { margin-top: 8; }
.nestedtitle a { color: navy; }
+span.final_item { font-weight: bold; font-size: 110%; }
+
/* item trees (tree of headings and items in a course */
.itemtree {
-padding-left: 25;
+padding-left: 15;
list-style-type: none;
list-style-position: inside;
}
+.itemtree .itemtree li {
+ padding-left: 25;
+}
+
.itemtree .itemtree { margin-left: 0;}
/* .itemtree li { width: 400; } */
.itemadd {
margin-top: 30; font-size: 90%;
padding: 10; background-color: #eef;
+ clear: both;
}
.itemadd a { color: navy; }
margin-top: 4;
}
.itemtree li.item_HEADING > a {
- color: navy;
+ color: navy; font-size: 105%;
}
.itemtree li.item_ELEC {
font-size: 80%; color: navy;
}
-.menublockopener { color: gray !important; font-weight: normal !important; }
+.menublockopener { margin-left: 0.25em; color: #aaa !important; font-weight: normal !important; }
.menublock { background-color: #f0f0e0; font-size: 95%; padding: 1 4; }
#coursebanner { background-color: #f2e4cc; margin: -12 -12 0 -12; padding: 8; }
#feeds_panel,
.little_action_panel
-{ float: right; font-size: 95%; margin: 8 0; clear: right; }
+{ float: right; font-size: 95%; margin: 8 0; clear: both; }
.breadcrumbs { margin: 8 8 8 0; }
function init_blocks() {
$('span.menublock').each(make_opener);
+ $('div').click(hideblocks);
}
var blocknum = 0;
menublock.hide();
}
+function hideblocks() {
+ $('span.menublock').hide();
+}
+
function openblock(bid) {
if (!resequencing) {
- $('span.menublock').hide();
+ hideblocks();
$('#' + bid).fadeIn('fast');
}
}
});
}
};
+
+function doToggleItemTree() {
+ if ($('.itemtree:hidden').length > 0) {
+ $('.itemtree:hidden').fadeIn(1000);
+ } else {
+ $('.itemtree').not('.itemtree:nth(0)').fadeOut('slow');
+ }
+}
<div class="breadcrumbs">
<span><a href="${item.course.course_url()}">Top</a></span> »
<span py:for="n, x in enumerate(hier)"><a href="${x.item_url()}">${x.title}</a> » </span>
- <b>${item.title}</b>
+ <span class="final_item">${item.title}</span>
</div>
</div>
</div>
<div py:def="item_resequence_panel()" py:strip="True">
+ <div id="showtree_panel" class="little_action_panel">
+ <a href="javascript:doToggleItemTree();">Show/hide tree</a>
+ </div>
<div id="resequence_panel" class="little_action_panel">
<a href="javascript:doResequence();">Resequence items</a>
</div>