Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Commit

Permalink
Update some stylistic choices
Browse files Browse the repository at this point in the history
  • Loading branch information
kgiszewski committed Jul 9, 2015
1 parent 65c8b33 commit 3037ff2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 12 additions & 1 deletion src/Assets/less/application.less
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@
}

.bookshelf-navigation {

.umb-tree li h5 {
color: #333;
margin: 5px 0;
}

.umb-tree li h6 {
color: #ccc;
margin: 5px 0;
}

.book-title {
background-color: #999;

Expand All @@ -86,7 +97,7 @@
}

h5 {
color: #333 !important;
color: #fff !important;

i {
margin-right: 5px;
Expand Down
4 changes: 3 additions & 1 deletion src/Controllers/UmbracoBookshelfTreeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ private TreeNodeCollection _getNodes(string id, FormDataCollection queryStrings)

if (hasChildren && (dir.Attributes & FileAttributes.Hidden) == 0)
{
var node = CreateTreeNode(orgPath + dir.Name, orgPath, queryStrings, dir.Name, "icon-folder", hasChildren);
var icon = (id == "-1") ? "icon-book" : "icon-folder";

var node = CreateTreeNode(orgPath + dir.Name, orgPath, queryStrings, dir.Name, icon, hasChildren);

node.RoutePath = "/UmbracoBookshelf/UmbracoBookshelfTree/folder/" + dir.FullName.ToWebPath();

Expand Down

0 comments on commit 3037ff2

Please sign in to comment.