Commit ce4da9d44838d98eff2eb125a0ffd3d522fbbaf6
1 parent
9961757a
Exists in
master
and in
11 other branches
Improve proposals view
Showing
4 changed files
with
5 additions
and
3 deletions
Show diff stats
js/handlebars-helpers.js
... | ... | @@ -19,7 +19,7 @@ Handlebars.registerHelper('list_proposal', function(proposals, options) { |
19 | 19 | element = ''; |
20 | 20 | continue; |
21 | 21 | } |
22 | - element = element + '<li>' + proposals[i].categories[x].name + '</li>'; | |
22 | + element = element + '<li class="category-'+proposals[i].categories[x].slug+'">' + proposals[i].categories[x].name + '</li>'; | |
23 | 23 | } |
24 | 24 | if(element == ''){ |
25 | 25 | continue; | ... | ... |
js/main.js
... | ... | @@ -39,6 +39,7 @@ $.getJSON(noosferoAPI) |
39 | 39 | $('#nav-proposal-categories a').addClass('active'); |
40 | 40 | $('#nav-proposal-group a').removeClass('active'); |
41 | 41 | $('.proposal-category-items').hide(); |
42 | + $('.proposal-category .arrow-box').hide(); | |
42 | 43 | $('.proposal-detail').hide(); |
43 | 44 | event.preventDefault(); |
44 | 45 | }); | ... | ... |
sass/_proposal_categories.scss
... | ... | @@ -62,7 +62,7 @@ |
62 | 62 | } |
63 | 63 | |
64 | 64 | .proposal-item > a { |
65 | - border-top: 1px dotted #03316f; | |
65 | + border-top: 1px dotted #045312; | |
66 | 66 | padding-top: 10px; |
67 | 67 | display: block; |
68 | 68 | margin: 0; |
... | ... | @@ -125,7 +125,7 @@ |
125 | 125 | border-bottom-color: $color; |
126 | 126 | } |
127 | 127 | |
128 | - .proposal-category-items-#{$category} ul.category li { | |
128 | + .category-#{$category} { | |
129 | 129 | background-color: $color; |
130 | 130 | background-image: url(./images/icons/#{$category}.png); |
131 | 131 | background-repeat: no-repeat; | ... | ... |
sass/_proposal_group.scss