From e79260a8fff8cbcd63c4f51bff521cff718e77ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Gonz=C3=A1lez?= Date: Wed, 28 Dec 2016 15:40:21 +0100 Subject: [PATCH] Add legislation debate question markup and styles --- app/assets/stylesheets/admin.scss | 83 +++++++++++++- .../sandbox/admin_legislation_debate.html.erb | 6 +- ...admin_legislation_debate_question.html.erb | 103 ++++++++++++++++++ .../sandbox/admin_legislation_info.html.erb | 6 +- 4 files changed, 186 insertions(+), 12 deletions(-) create mode 100644 app/views/sandbox/admin_legislation_debate_question.html.erb diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 821aa4449..4f10259d3 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -428,6 +428,12 @@ table.investment-projects-summary { // 06. Legislation // -------------- +.legislation-process-save { + @include breakpoint(medium) { + float: right; + } +} + .legislation-process-index { .legislation-process-new { @@ -465,12 +471,6 @@ table.investment-projects-summary { } } } - - .legislation-process-save { - @include breakpoint(medium) { - float: right; - } - } } .legislation-draft-versions-index { @@ -489,3 +489,74 @@ table.investment-projects-summary { padding: 0.25rem 0.375rem; } } + +.legislation-questions-index { + + .menu .active > a { + background: none; + } + + input[type]:not([type="submit"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]) { + background: $white; + margin-bottom: 0; + + @include breakpoint(medium) { + margin-bottom: 1rem; + } + } + + input::-webkit-input-placeholder { + font-style: italic; + } + + input:-moz-placeholder { /* Firefox 18- */ + font-style: italic; + } + + input::-moz-placeholder { /* Firefox 19+ */ + font-style: italic; + } + + input:-ms-input-placeholder { + font-style: italic; + } + + .legislation-question-delete { + @include breakpoint(medium) { + text-align: right; + } + } + + .legislation-questions-answers { + margin-bottom: 1rem; + } + + .field { + margin-bottom: 1rem; + + @include breakpoint(medium) { + margin-bottom: 0; + } + + a { + line-height: 3rem; + color: $delete; + + span { + text-decoration: underline; + } + + .icon-x { + vertical-align: sub; + text-decoration: none; + line-height: 0; + } + + &:active, + &:focus, + &:hover { + text-decoration: none; + } + } + } +} diff --git a/app/views/sandbox/admin_legislation_debate.html.erb b/app/views/sandbox/admin_legislation_debate.html.erb index 8deb539a2..50f346678 100644 --- a/app/views/sandbox/admin_legislation_debate.html.erb +++ b/app/views/sandbox/admin_legislation_debate.html.erb @@ -8,10 +8,10 @@