Active folder in drive is not underlined anymore

pull/1/head
yflory 8 years ago
parent cd77f50717
commit 85105a1382

@ -122,14 +122,14 @@ span.fa-folder-open {
margin-left: -5px;
padding-left: 5px;
}
#tree li > span.element-row:not(.selected):hover {
#tree li > span.element-row:not(.selected):not(.active):hover {
background-color: #eee;
}
#tree span.element {
cursor: pointer;
}
#tree .active {
text-decoration: underline;
#tree .active:not(.selected) {
background-color: #c8c8c8;
}
#tree .category2 {
margin-top: 2em;

@ -156,7 +156,7 @@ span {
margin-left: -5px;
padding-left: 5px;
}
& > span.element-row:not(.selected):hover {
& > span.element-row:not(.selected):not(.active):hover {
background-color: @drive-hover;
}
}
@ -164,7 +164,9 @@ span {
cursor: pointer;
}
.active {
text-decoration: underline;
&:not(.selected) {
background-color: darken(@drive-hover, 15%);
}
}
.category2 {
margin-top: 2em;

@ -438,7 +438,7 @@ define([
var updateContextButton = function () {
var $li = $content.find('.selected');
if ($li.length === 0) {
$li = findDataHolder($tree.find('.element.active'));
$li = findDataHolder($tree.find('.active'));
}
var $button = $driveToolbar.find('#contextButton');
if ($button.length) { // mobile
@ -1538,7 +1538,7 @@ define([
e.stopPropagation();
var $li = $content.find('.selected');
if ($li.length !== 1) {
$li = findDataHolder($tree.find('.element.active'));
$li = findDataHolder($tree.find('.active'));
}
// Close if already opened
if ($iframe.find('.contextMenu:visible').length) {
@ -1657,7 +1657,7 @@ define([
}
$elementRow.data('path', path);
addDragAndDropHandlers($elementRow, path, true, droppable);
if (active) { $name.addClass('active'); }
if (active) { $elementRow.addClass('active'); }
return $element;
};

Loading…
Cancel
Save