Commit 7e042ed41e59dcc1b53e5a1eab20f2199f6f1d08
Exists in
master
and in
11 other branches
Merge branch 'master' of gitlab.com:participa/proposal-app
Showing
3 changed files
with
40 additions
and
15 deletions
Show diff stats
js/main.js
... | ... | @@ -126,7 +126,7 @@ function loadRandomProposal(topic_id, private_token) { |
126 | 126 | $(".no-proposals").hide(); |
127 | 127 | $(".loading").show(); |
128 | 128 | $('.random-proposal').html(''); |
129 | - var url = host + '/api/v1/articles/' + topic_id + '/children' + '?private_token=' + private_token + '&limit=1&order=random()&_='+new Date().getTime()+'&fields=id,name,abstract,created_by'; | |
129 | + var url = host + '/api/v1/articles/' + topic_id + '/children' + '?private_token=' + private_token + '&limit=1&order=random()&_='+new Date().getTime()+'&fields=id,name,abstract,created_by&content_type=ProposalsDiscussionPlugin::Proposal'; | |
130 | 130 | $.getJSON(url).done(function( data ) { |
131 | 131 | $(".loading").hide(); |
132 | 132 | ... | ... |
sass/_proposal_detail.scss
1 | 1 | .proposal-detail { |
2 | + li { | |
3 | + list-style: none; | |
4 | + width: 70%; | |
5 | + padding: 0; | |
6 | + height: 50px; | |
7 | + overflow: hidden; | |
8 | + | |
9 | + a { | |
10 | + text-decoration: none; | |
11 | + text-transform: uppercase; | |
12 | + padding: 15px 35px; | |
13 | + margin: 0; | |
14 | + width: 20%; | |
15 | + display: inline-block; | |
16 | + span { | |
17 | + padding-left: 40px; | |
18 | + } | |
19 | + font: { | |
20 | + size: larger; | |
21 | + weight: bold; | |
22 | + } | |
23 | + background-size: 32px; | |
24 | + color: white; | |
25 | + } | |
26 | + } | |
27 | + | |
28 | + .categories { | |
29 | + select { | |
30 | + height: 57px; | |
31 | + width: 70%; | |
32 | + margin: 0; | |
33 | + text-transform: uppercase; | |
34 | + border: 0; | |
35 | + background: #EEEFF1; | |
36 | + float: right; | |
37 | + } | |
38 | + } | |
39 | + | |
2 | 40 | @each $category, $color in $categories { |
3 | 41 | .#{$category}{ |
4 | 42 | ul{ |
... | ... | @@ -139,26 +177,13 @@ |
139 | 177 | } |
140 | 178 | li{ |
141 | 179 | background-color: $color; |
142 | - padding: { | |
143 | - bottom: 20px; | |
144 | - top: 20px; | |
145 | - } | |
146 | 180 | a { |
147 | 181 | background-image: url(./images/icons/#{$category}.png); |
148 | - padding: 20px 5%; | |
149 | - font: { | |
150 | - size: larger; | |
151 | - weight: bold; | |
152 | - } | |
153 | - color: white; | |
154 | 182 | background: { |
155 | 183 | color: $color; |
156 | 184 | position: center left; |
157 | 185 | repeat: no-repeat; |
158 | 186 | } |
159 | - span{ | |
160 | - padding-left: 40px; | |
161 | - } | |
162 | 187 | } |
163 | 188 | } |
164 | 189 | } | ... | ... |