Clean code.

This commit is contained in:
Lars Jung 2015-05-14 00:33:27 +02:00
parent 4db158e8d9
commit 9637c89b1b
2 changed files with 3 additions and 4 deletions

View file

@ -32,6 +32,9 @@
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
} }
.crumb:first-of-type .sep {
width: 0;
}
.label { .label {
line-height: 48px; line-height: 48px;
display: inline-block; display: inline-block;

View file

@ -20,10 +20,6 @@ modulejs.define('ext/crumb', ['_', '$', 'core/event', 'core/location', 'core/res
$html.find('.label').text(item.label); $html.find('.label').text(item.label);
if (item.isDomain() || item.isRoot()) {
$html.find('.sep').width(0);
}
if (item.isCurrentFolder()) { if (item.isCurrentFolder()) {
$html.addClass('active'); $html.addClass('active');
} }