Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/delibero.git

Added breadcrumbs to Miller Columns.

Author Dave Jarvis <email>
Date 2014-11-24 17:25:13 GMT-0800
Commit 9e0766fb18b2b20a571a3abe8c28acef3ac0ac42
Parent f5c726a
xml/css/tags.css
display: inline-block;
background: #FFF;
+ border-right: 1px solid #666;
font-size: 0.9em;
font-family: Arial;
- border-right: 1px solid #666;
}
background: -moz-linear-gradient(#f0f0f0, #d8d8d8);
}
-
div.breadcrumb {
border-bottom: 1px solid #666;
+}
+
+div.breadcrumb > span {
+ height: 1.25em;
+ line-height: 1.25em;
}
div.toolbar {
clear: both;
border-top: 1px solid #666;
+}
+
+div.breadcrumb > span {
+ font-size: 0.7em;
+ font-weight: bold;
+ padding-left: 0.25em;
+}
+
+div.breadcrumb > span:after {
+ content: " \25B8";
+}
+
+div.breadcrumb > span:first-child {
+ padding-left: 1em;
+}
+
+div.breadcrumb > span:last-child:after {
+ content: "";
}
xml/js/columns.js
$li.addClass( "selection" );
+
+ var $breadcrumb = $("div.breadcrumb");
+ $breadcrumb.empty();
+
+ // Add the breadcrumb trail.
+ $("li.selection").each( function( _, crumb ) {
+ $breadcrumb.append( "<span>" + $(crumb).text() + "</span>" );
+ });
});
Delta 32 lines added, 2 lines removed, 30-line increase