From f210125def39b16a26959b259568514f84a90dac Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Wed, 5 Feb 2020 10:28:00 -0500 Subject: [PATCH 1/2] Add CSS style for embeddable quiz - refs BT#16576 --- app/Resources/public/css/base.css | 8 +++ main/exercise/exercise_result.php | 7 +-- main/exercise/exercise_submit.php | 57 +++++++++++--------- main/inc/lib/template.lib.php | 1 + main/template/default/layout/page.tpl | 2 +- main/template/default/layout/show_header.tpl | 2 +- 6 files changed, 45 insertions(+), 32 deletions(-) diff --git a/app/Resources/public/css/base.css b/app/Resources/public/css/base.css index e7cf4d9773..73adbedb63 100644 --- a/app/Resources/public/css/base.css +++ b/app/Resources/public/css/base.css @@ -36,6 +36,14 @@ body { margin-bottom: 10px; } +body.page_origin_embeddable { + padding-top: 10px; +} +body.page_origin_embeddable #cm-content > .container { + margin-bottom: 0px; + padding-bottom: 0px; +} + .footer > .container { padding-right: 15px; padding-left: 15px; diff --git a/main/exercise/exercise_result.php b/main/exercise/exercise_result.php index 7a783913a5..fc6c220151 100755 --- a/main/exercise/exercise_result.php +++ b/main/exercise/exercise_result.php @@ -89,11 +89,6 @@ if (!in_array($origin, ['learnpath', 'embeddable'])) { // So we are not in learnpath tool Display::display_header($nameTools, get_lang('Exercise')); } else { - $htmlHeadXtra[] = " - - "; Display::display_reduced_header(); } @@ -251,7 +246,7 @@ function showEmbeddableFinishButton() { echo '