diff --git a/app/javascript/stylesheets/print.scss b/app/javascript/stylesheets/print.scss index ad039ab4a..faa4aace7 100644 --- a/app/javascript/stylesheets/print.scss +++ b/app/javascript/stylesheets/print.scss @@ -1,13 +1,9 @@ .cell { - background-color: lightgrey; -} - -.question_cell { - grid-column: 1; + background-color: gainsboro; } .grid-row { - border: 0.5px solid rgba(0, 0, 0, 0.8); + border: 1px solid gray; } .two-grid { @@ -15,22 +11,23 @@ grid-template-columns: auto auto; font-size: 10px; grid-auto-columns: 1fr 200px; - } - .three-grid { display: grid; grid-template-columns: auto auto auto; font-size: 10px; grid-auto-columns: 1fr 200px; - } .print-header { size: 12px; } +.govuk-body{ + font-size: 10px; + margin-bottom: 0; +} @media print { body { -webkit-print-color-adjust: exact; @@ -38,5 +35,4 @@ .cell { background-color: lightgrey; } - } diff --git a/app/views/form/print/_checkbox_question.html.erb b/app/views/form/print/_checkbox_question.html.erb index 5c2d08fd2..55deda8ef 100644 --- a/app/views/form/print/_checkbox_question.html.erb +++ b/app/views/form/print/_checkbox_question.html.erb @@ -1,9 +1,9 @@ -
+
<%= question["header"].html_safe.present? ? question["header"].html_safe : "missing question header"%>
-
+
<% question["answer_options"].each do |index, answer_option| %> diff --git a/app/views/form/print/_date_question.html.erb b/app/views/form/print/_date_question.html.erb index 1aca08665..491352380 100644 --- a/app/views/form/print/_date_question.html.erb +++ b/app/views/form/print/_date_question.html.erb @@ -1,4 +1,4 @@ -
+
<%= question["header"].html_safe.present? ? question["header"].html_safe : "missing question header"%> diff --git a/app/views/form/print/_numeric_question.html.erb b/app/views/form/print/_numeric_question.html.erb index e31503de5..491352380 100644 --- a/app/views/form/print/_numeric_question.html.erb +++ b/app/views/form/print/_numeric_question.html.erb @@ -1,8 +1,8 @@ -
+
<%= question["header"].html_safe.present? ? question["header"].html_safe : "missing question header"%>
-
+
diff --git a/app/views/form/print/_radio_question.html.erb b/app/views/form/print/_radio_question.html.erb index ef9044bde..fb5765d73 100644 --- a/app/views/form/print/_radio_question.html.erb +++ b/app/views/form/print/_radio_question.html.erb @@ -1,9 +1,9 @@ -
+
<%= question["header"].html_safe.present? ? question["header"].html_safe : "missing question header"%>
-
+
<% question["answer_options"].each do |index, answer_option| %> <% if index.to_i.even? %> diff --git a/app/views/form/print/_select_question.html.erb b/app/views/form/print/_select_question.html.erb index 5c2d08fd2..55deda8ef 100644 --- a/app/views/form/print/_select_question.html.erb +++ b/app/views/form/print/_select_question.html.erb @@ -1,9 +1,9 @@ -
+
<%= question["header"].html_safe.present? ? question["header"].html_safe : "missing question header"%>
-
+
<% question["answer_options"].each do |index, answer_option| %> diff --git a/app/views/form/print/_text_question.html.erb b/app/views/form/print/_text_question.html.erb index 253438443..c0675ceac 100644 --- a/app/views/form/print/_text_question.html.erb +++ b/app/views/form/print/_text_question.html.erb @@ -1,7 +1,11 @@ - - <%= question["header"].html_safe.present? ? question["header"].html_safe : "missing question header"%>
-
+
+ + <%= question["header"].html_safe.present? ? question["header"].html_safe : "missing question header"%>
+
+
-
+
+
+