Skip to content

Commit

Permalink
[JENKINS-31162] New special render for flat categories
Browse files Browse the repository at this point in the history
  • Loading branch information
recena committed Mar 24, 2016
1 parent 152a9f8 commit c011124
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions war/src/main/js/add-item.js
Expand Up @@ -265,6 +265,7 @@ $.when(getItems()).done(function(data){
$navBox.append($nav);
}else{
$categories.find('.category-header').hide();
$categories.addClass('flat');
}
drawName();
cleanLayout();
Expand Down
17 changes: 17 additions & 0 deletions war/src/main/js/widgets/add/addform.less
Expand Up @@ -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;
Expand Down

0 comments on commit c011124

Please sign in to comment.