From 5fe9aca3a1619e163d7cc8edd04d83ff07f7784f Mon Sep 17 00:00:00 2001 From: Bas Brands Date: Tue, 29 Jan 2019 11:45:54 +0100 Subject: [PATCH] MDL-62454 theme_boost: numerical qtype answer inline --- question/type/numerical/renderer.php | 4 ++-- question/type/numerical/styles.css | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/question/type/numerical/renderer.php b/question/type/numerical/renderer.php index 1d403e0f46b..31c08384653 100644 --- a/question/type/numerical/renderer.php +++ b/question/type/numerical/renderer.php @@ -48,8 +48,8 @@ class qtype_numerical_renderer extends qtype_renderer { 'name' => $inputname, 'value' => $currentanswer, 'id' => $inputname, - 'size' => 80, - 'class' => 'form-control', + 'size' => 30, + 'class' => 'form-control d-inline', ); if ($options->readonly) { diff --git a/question/type/numerical/styles.css b/question/type/numerical/styles.css index 4e14844f0e9..ca1213bf70d 100644 --- a/question/type/numerical/styles.css +++ b/question/type/numerical/styles.css @@ -3,10 +3,6 @@ display: inline; } -.que.numerical .answer input[type="text"] { - width: 30%; -} - /*rtl:ignore*/ #page-question-type-numerical input[name="unitpenalty"], #page-question-type-numerical input[name^="answer"], -- 2.43.0