From 4c309b52435e32e1988880567c521769cffb726f Mon Sep 17 00:00:00 2001 From: Amaia Castro Date: Thu, 29 Dec 2016 19:52:32 +0100 Subject: [PATCH] Refactor css classes --- app/assets/stylesheets/admin.scss | 31 ++++++++----------- .../legislation/draft_versions/edit.html.erb | 2 +- .../legislation/draft_versions/index.html.erb | 2 +- .../legislation/draft_versions/new.html.erb | 2 +- .../admin/legislation/processes/edit.html.erb | 2 +- .../legislation/processes/index.html.erb | 2 +- .../admin/legislation/processes/new.html.erb | 2 +- .../admin/legislation/questions/edit.html.erb | 2 +- .../legislation/questions/index.html.erb | 2 +- .../admin/legislation/questions/new.html.erb | 2 +- .../sandbox/admin_legislation_debate.html.erb | 2 +- ...admin_legislation_debate_question.html.erb | 2 +- .../sandbox/admin_legislation_draft.html.erb | 2 +- .../admin_legislation_draft_edit.html.erb | 2 +- .../sandbox/admin_legislation_index.html.erb | 2 +- .../sandbox/admin_legislation_info.html.erb | 2 +- 16 files changed, 28 insertions(+), 33 deletions(-) diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index c34eb3a10..486b93bc8 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -428,6 +428,13 @@ table.investment-projects-summary { // 06. Legislation // -------------- + +.legislation-admin { + .menu .active > a { + background: none; + } +} + .legislation-process-save { @include breakpoint(medium) { float: right; @@ -450,11 +457,7 @@ table.investment-projects-summary { } .legislation-process-edit { - - .menu .active > a { - background: none; - } - + .edit_legislation_process { small { @@ -480,11 +483,7 @@ table.investment-projects-summary { } .legislation-draft-versions-index { - - .menu .active > a { - background: none; - } - + .legislation-process-question { @include breakpoint(medium) { text-align: right; @@ -496,12 +495,8 @@ table.investment-projects-summary { } } -.legislation-questions-index { - - .menu .active > a { - background: none; - } - +.legislation-questions-form { + input[type]:not([type="submit"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]) { background: $white; margin-bottom: 0; @@ -561,8 +556,8 @@ table.investment-projects-summary { } } -.legislation-draft-versions-index { - +.legislation-draft-versions-form { + .legislation-process-version { @include breakpoint(medium) { text-align: right; diff --git a/app/views/admin/legislation/draft_versions/edit.html.erb b/app/views/admin/legislation/draft_versions/edit.html.erb index 86cbe599f..9560cb4f1 100644 --- a/app/views/admin/legislation/draft_versions/edit.html.erb +++ b/app/views/admin/legislation/draft_versions/edit.html.erb @@ -1,4 +1,4 @@ -
+
<%= link_to admin_legislation_processes_path, class: "back" do %> diff --git a/app/views/admin/legislation/draft_versions/index.html.erb b/app/views/admin/legislation/draft_versions/index.html.erb index efb572a7a..affcf3b35 100644 --- a/app/views/admin/legislation/draft_versions/index.html.erb +++ b/app/views/admin/legislation/draft_versions/index.html.erb @@ -1,4 +1,4 @@ -
+
<%= link_to admin_legislation_processes_path, class: "back" do %> diff --git a/app/views/admin/legislation/draft_versions/new.html.erb b/app/views/admin/legislation/draft_versions/new.html.erb index e6c0e5230..1ca37b724 100644 --- a/app/views/admin/legislation/draft_versions/new.html.erb +++ b/app/views/admin/legislation/draft_versions/new.html.erb @@ -1,4 +1,4 @@ -
+
<%= link_to admin_legislation_process_path(@process), class: "back" do %> diff --git a/app/views/admin/legislation/processes/edit.html.erb b/app/views/admin/legislation/processes/edit.html.erb index 398dc1ec6..d7fba2126 100644 --- a/app/views/admin/legislation/processes/edit.html.erb +++ b/app/views/admin/legislation/processes/edit.html.erb @@ -1,4 +1,4 @@ -
+
<%= link_to admin_legislation_processes_path, class: "back" do %> diff --git a/app/views/admin/legislation/processes/index.html.erb b/app/views/admin/legislation/processes/index.html.erb index ee702028b..21f308dc5 100644 --- a/app/views/admin/legislation/processes/index.html.erb +++ b/app/views/admin/legislation/processes/index.html.erb @@ -1,4 +1,4 @@ -
+

<%= t("admin.legislation.processes.index.title") %>

diff --git a/app/views/admin/legislation/processes/new.html.erb b/app/views/admin/legislation/processes/new.html.erb index 21d5f01a7..974d97044 100644 --- a/app/views/admin/legislation/processes/new.html.erb +++ b/app/views/admin/legislation/processes/new.html.erb @@ -1,4 +1,4 @@ -
+
<%= link_to admin_legislation_processes_path, class: "back" do %> diff --git a/app/views/admin/legislation/questions/edit.html.erb b/app/views/admin/legislation/questions/edit.html.erb index 79a044ec4..71e80f07a 100644 --- a/app/views/admin/legislation/questions/edit.html.erb +++ b/app/views/admin/legislation/questions/edit.html.erb @@ -1,4 +1,4 @@ -
+
<%= link_to admin_legislation_processes_path, class: "back" do %> diff --git a/app/views/admin/legislation/questions/index.html.erb b/app/views/admin/legislation/questions/index.html.erb index a77ffcec7..90d68775b 100644 --- a/app/views/admin/legislation/questions/index.html.erb +++ b/app/views/admin/legislation/questions/index.html.erb @@ -1,4 +1,4 @@ -
+
<%= link_to admin_legislation_processes_path, class: "back" do %> diff --git a/app/views/admin/legislation/questions/new.html.erb b/app/views/admin/legislation/questions/new.html.erb index ed6e6a3c8..7a8fe4df9 100644 --- a/app/views/admin/legislation/questions/new.html.erb +++ b/app/views/admin/legislation/questions/new.html.erb @@ -1,4 +1,4 @@ -
+
<%= link_to admin_legislation_process_path(@process), class: "back" do %> diff --git a/app/views/sandbox/admin_legislation_debate.html.erb b/app/views/sandbox/admin_legislation_debate.html.erb index 9732fc478..de976de40 100644 --- a/app/views/sandbox/admin_legislation_debate.html.erb +++ b/app/views/sandbox/admin_legislation_debate.html.erb @@ -1,4 +1,4 @@ -
+
diff --git a/app/views/sandbox/admin_legislation_debate_question.html.erb b/app/views/sandbox/admin_legislation_debate_question.html.erb index 2d8928776..f5f6d90d6 100644 --- a/app/views/sandbox/admin_legislation_debate_question.html.erb +++ b/app/views/sandbox/admin_legislation_debate_question.html.erb @@ -1,4 +1,4 @@ -