Skip to content
Permalink
Browse files
[JENKINS-31162] New special render for flat categories
  • Loading branch information
recena committed Mar 24, 2016
1 parent 152a9f8 commit c0111242b5cf26ad7e6b9de60c45aa8ac69abc47
Showing 2 changed files with 18 additions and 0 deletions.
@@ -265,6 +265,7 @@ $.when(getItems()).done(function(data){
$navBox.append($nav);
}else{
$categories.find('.category-header').hide();
$categories.addClass('flat');
}
drawName();
cleanLayout();
@@ -32,6 +32,23 @@ body.add-item {
border-left: 1px solid #cccccc;
border-right: 1px solid #cccccc;
}
.flat {
.category {
border-bottom: none;
ul {
padding: 0 10px;
}
}
.category:first-child {
padding-top: 10px;
}
.category:last-child {
border-top: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
padding: 10px 0;
margin-top: 10px;
}
}

.category-header {
padding: 0 20px;

0 comments on commit c011124

Please sign in to comment.