Upgrade to Bootstrap 3
This commit is contained in:
parent
10b9768ba4
commit
50d5e32dde
@ -27,24 +27,25 @@ define([
|
|||||||
'<a href="#" class="list-group-item folder clearfix" data-folder-index="<%= folderDesc.folderIndex %>" data-toggle="collapse" data-target=".modal-document-manager .nav.<%= id %>">',
|
'<a href="#" class="list-group-item folder clearfix" data-folder-index="<%= folderDesc.folderIndex %>" data-toggle="collapse" data-target=".modal-document-manager .nav.<%= id %>">',
|
||||||
'<label class="checkbox" title="Select"><input type="checkbox"></label>',
|
'<label class="checkbox" title="Select"><input type="checkbox"></label>',
|
||||||
'<button class="btn btn-default button-rename" title="Rename"><i class="icon-pencil"></i></button>',
|
'<button class="btn btn-default button-rename" title="Rename"><i class="icon-pencil"></i></button>',
|
||||||
|
'<div class="pull-right file-count"><%= _.size(folderDesc.fileList) %></div>',
|
||||||
'<div class="name"><i class="icon-folder"></i> ',
|
'<div class="name"><i class="icon-folder"></i> ',
|
||||||
'<%= folderDesc.name %></div>',
|
'<%= folderDesc.name %></div>',
|
||||||
'<input type="text" class="input-rename form-control hide"></a>',
|
'<input type="text" class="input-rename form-control hide"></a>',
|
||||||
'<ul class="nav collapse <%= id %>"><%= fileListHtml %></ul>'
|
'<ul class="nav collapse <%= id %>"><%= fileListHtml %></ul>'
|
||||||
].join('');
|
].join('');
|
||||||
var orphanEltTmpl = [
|
var orphanEltTmpl = [
|
||||||
'<div class="list-group-item file clearfix" data-file-index="<%= fileDesc.fileIndex %>">',
|
'<li class="list-group-item file clearfix" data-file-index="<%= fileDesc.fileIndex %>">',
|
||||||
'<label class="checkbox" title="Select"><input type="checkbox"></label>',
|
'<label class="checkbox" title="Select"><input type="checkbox"></label>',
|
||||||
'<button class="btn btn-default button-rename" title="Rename"><i class="icon-pencil"></i></button>',
|
'<button class="btn btn-default button-rename" title="Rename"><i class="icon-pencil"></i></button>',
|
||||||
'<div class="name"><%= fileDesc.composeTitle() %></div>',
|
'<div class="name"><%= fileDesc.composeTitle() %></div>',
|
||||||
'<input type="text" class="input-rename form-control hide"></div>',
|
'<input type="text" class="input-rename form-control hide"></li>',
|
||||||
].join('');
|
].join('');
|
||||||
var buildManager = function() {
|
var buildManager = function() {
|
||||||
|
|
||||||
var documentListHtml = '';
|
var documentListHtml = '';
|
||||||
|
|
||||||
// Add orphan documents
|
// Add orphan documents
|
||||||
documentListHtml += _.chain(fileSystem).filter(function(fileDesc) {
|
documentListHtml += '<ul class="nav">' + _.chain(fileSystem).filter(function(fileDesc) {
|
||||||
return fileDesc.folder === undefined;
|
return fileDesc.folder === undefined;
|
||||||
}).sortBy(function(fileDesc) {
|
}).sortBy(function(fileDesc) {
|
||||||
return fileDesc.title.toLowerCase();
|
return fileDesc.title.toLowerCase();
|
||||||
@ -52,7 +53,7 @@ define([
|
|||||||
return result + _.template(orphanEltTmpl, {
|
return result + _.template(orphanEltTmpl, {
|
||||||
fileDesc: fileDesc,
|
fileDesc: fileDesc,
|
||||||
});
|
});
|
||||||
}, '').value();
|
}, '').value() + '</ul>';
|
||||||
|
|
||||||
// Build directories
|
// Build directories
|
||||||
_.chain(folderList).sortBy(function(folderDesc) {
|
_.chain(folderList).sortBy(function(folderDesc) {
|
||||||
|
@ -73,9 +73,6 @@ body {
|
|||||||
color: @btn-default-color;
|
color: @btn-default-color;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
&:hover {
|
|
||||||
background-color: @list-group-hover-bg;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -471,6 +468,11 @@ body {
|
|||||||
.folder {
|
.folder {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
.file{
|
||||||
|
&:nth-child(odd) {
|
||||||
|
background-color: fade(#000, 3%);
|
||||||
|
}
|
||||||
|
}
|
||||||
.checkbox {
|
.checkbox {
|
||||||
float: right;
|
float: right;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -485,8 +487,8 @@ body {
|
|||||||
.input-rename {
|
.input-rename {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
.name {
|
.name, .file-count {
|
||||||
padding: 9px 15px;
|
padding: 9px 25px 9px 15px;
|
||||||
}
|
}
|
||||||
.button-rename {
|
.button-rename {
|
||||||
float: right;
|
float: right;
|
||||||
|
Loading…
Reference in New Issue
Block a user