Harjotsingh has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/371122 )

Change subject: Add relative postion abilty to quiz form
......................................................................

Add relative postion abilty to quiz form

Currently the wrapping of quiz around images hides the questionId of
the quiz.Adding relative position to quiz allows the quiz to wrap
correctly.

Bug:T170081
Change-Id: Ib909adf4f217f42273edfcad5f992d260da708a6
---
M modules/ext.quiz.css
M templates/Quiz.mustache
2 files changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Quiz 
refs/changes/22/371122/1

diff --git a/modules/ext.quiz.css b/modules/ext.quiz.css
index fb14907..20a2558 100644
--- a/modules/ext.quiz.css
+++ b/modules/ext.quiz.css
@@ -131,6 +131,10 @@
        border: 0;
 }
 
+.quiz  .quizForm {
+       position:relative;
+}
+
 .quiz .correction {
        background-color: #f9f9f9;
 }
diff --git a/templates/Quiz.mustache b/templates/Quiz.mustache
index d33bf74..9d0842f 100644
--- a/templates/Quiz.mustache
+++ b/templates/Quiz.mustache
@@ -1,5 +1,5 @@
 <div class="quiz">
-       <form id="quiz{{ quiz.id }}" method="post" action="#quiz{{ quiz.id }}">
+       <form id="quiz{{ quiz.id }}" class="quizForm" method="post" 
action="#quiz{{ quiz.id }}">
                <div style="display:inline-flex">
                        {{#settingsTable }}
                                <table class="settings">{{{ . }}}</table>

-- 
To view, visit https://gerrit.wikimedia.org/r/371122
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib909adf4f217f42273edfcad5f992d260da708a6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Quiz
Gerrit-Branch: master
Gerrit-Owner: Harjotsingh <harjo...@ymail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to