Commit d77b13559c770d18093a2f169d847d1938bfe660
1 parent
8c198f40
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
proposals_discussion: improve proposal layout
Showing
3 changed files
with
10 additions
and
4 deletions
Show diff stats
651 Bytes
plugins/proposals_discussion/public/style.css
| ... | ... | @@ -143,12 +143,14 @@ form .proposals-discussion-plugin .body textarea { |
| 143 | 143 | background-color: #7293CF; |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | -#content .topic-item h2, #article .article-body-proposals-discussion-plugin_topic h2 { | |
| 146 | +#content .topic-item h2, #article .article-body-proposals-discussion-plugin_topic h2, | |
| 147 | +#content .topic h2 { | |
| 147 | 148 | background-color: #C4C4C4; |
| 148 | 149 | margin: 0; |
| 149 | 150 | } |
| 150 | 151 | |
| 151 | -#content .topic-item h2 a, #article .article-body-proposals-discussion-plugin_topic h2 a { | |
| 152 | +#content .topic-item h2 a, #article .article-body-proposals-discussion-plugin_topic h2 a, | |
| 153 | +#content .topic h2 a { | |
| 152 | 154 | text-decoration: none; |
| 153 | 155 | padding: 10px; |
| 154 | 156 | display: inline-block; | ... | ... |
plugins/proposals_discussion/views/content_viewer/proposal.html.erb
| 1 | +<div class="discussion"> | |
| 2 | + <h5><%= @page.topic.discussion.title %> </h5> | |
| 3 | +</div> | |
| 4 | + | |
| 1 | 5 | <div class="topic"> |
| 2 | - <h5><%= _('Discussion Topic') %></h5> | |
| 3 | - <div class="content"><%= @page.topic.title %></div> | |
| 6 | + <div class="topic-color" style="background-color: <%= @page.topic.color %>;"></div> | |
| 7 | + <h2><%= link_to @page.topic.title, @page.topic.view_url %></h2> | |
| 4 | 8 | </div> |
| 5 | 9 | |
| 6 | 10 | <div class="title"> | ... | ... |