From 143c8889f37c3aa24090873473db1f03a6df0a79 Mon Sep 17 00:00:00 2001 From: Alessandro Cuoghi Date: Fri, 21 Jul 2017 16:53:43 +0200 Subject: [PATCH] Center in the page new document-form. Added style recommendations sidebar. --- app/assets/stylesheets/participation.scss | 13 ++++++++++-- app/views/documents/_documents.html.erb | 26 +++++++++++++++-------- app/views/documents/new.html.erb | 2 -- 3 files changed, 28 insertions(+), 13 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 0ba209acf..d0ce52fbe 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -253,7 +253,8 @@ .icon-debates, .icon-proposals, - .icon-budget { + .icon-budget, + .icon-documents { font-size: rem-calc(50); line-height: $line-height; opacity: 0.5; @@ -296,7 +297,8 @@ } } -.proposal-form { +.proposal-form, +.document-form { .recommendations li::before { color: $proposals; @@ -751,6 +753,13 @@ display: none; } +/* Ovveride proposal linea 623 */ +.document-form{ + max-width: 75rem; + margin-left: auto; + margin-right: auto; +} + .more-info { clear: both; color: $text-medium; diff --git a/app/views/documents/_documents.html.erb b/app/views/documents/_documents.html.erb index b204d9d9d..15ef3f3b9 100644 --- a/app/views/documents/_documents.html.erb +++ b/app/views/documents/_documents.html.erb @@ -1,13 +1,21 @@ <% if documents.any? %> - - - <% documents.each do |document| %> - <%= render "documents/document", document: document %> - <% end %> - -
+
+
+ + + <% documents.each do |document| %> + <%= render "documents/document", document: document %> + <% end %> + +
+
+
<% else %> -
- <%= t('documents.no_documents') %> +
+
+
+ <%= t('documents.no_documents') %> +
+
<% end %> diff --git a/app/views/documents/new.html.erb b/app/views/documents/new.html.erb index 2af051bec..cf5c9fbab 100644 --- a/app/views/documents/new.html.erb +++ b/app/views/documents/new.html.erb @@ -2,9 +2,7 @@
<%= render "shared/back_link" %> -

<%= t("documents.new.title") %>

- <%= render "documents/form", form_url: documents_url %>