]> git.mjollnir.org Git - moodle.git/commitdiff
quiz editing: MDL-17451 CSS and whitespace fixes to truncate overlong question catego...
authorpilpi <pilpi>
Fri, 28 Nov 2008 15:16:40 +0000 (15:16 +0000)
committerpilpi <pilpi>
Fri, 28 Nov 2008 15:16:40 +0000 (15:16 +0000)
Tested on opera 9.27, IE6, Firefox 3 on Ubuntu Linux 8.04

mod/quiz/editlib.php
mod/quiz/locallib.php
theme/standard/styles_color.css
theme/standard/styles_ie6.css
theme/standard/styles_layout.css

index 690dc6b16ca227c8f3d477336d9b1dd91c02d10e..e7b300e60753cf7bbdfb4b849b613ea4907c171b 100644 (file)
@@ -909,7 +909,7 @@ function quiz_print_singlequestion_reordertool(&$question, &$questionurl, &$quiz
                 $editstring="<a title=\"$stredit\" href=\"".
                         $questionurl->out(false, array('id'=>$question->id)).
                         "\"><img src=\"$CFG->pixpath/t/edit.gif\" alt=\"".
-                        $stredit."\" /> </a>";
+                        $stredit."\" /></a>";
             } elseif (question_has_capability_on($question, 'view',
                     $question->category)){
                 echo "$reordercheckboxlabel".
index 89bdf151fe5e3202c2348c3ca317b9b2c9b2214b..f0072ff4889e32aff2b8cda4da3b42aebe39676f 100644 (file)
@@ -766,7 +766,7 @@ function quiz_question_preview_button($quiz, $question, $label=true) {
     $strpreview = get_string('previewquestion', 'quiz');
     $strpreviewlabel="";
     if($label){
-        $strpreviewlabel = "&nbsp;".get_string('preview', 'quiz');
+        $strpreviewlabel = get_string('preview', 'quiz');
     }
     $quizorcourseid = $quiz->id?('&amp;quizid=' . $quiz->id):('&amp;courseid=' .$COURSE->id);
     return link_to_popup_window('/question/preview.php?id=' . $question->id . $quizorcourseid, 'questionpreview',
index 75498c912fde3e25bd658a03e223e717712671c0..cfdea06666cc08d64a6c080b5b206bfcd2e52210 100644 (file)
@@ -1134,6 +1134,13 @@ bank window's title is prominent enough*/
 #mod-quiz-edit .questioncontentcontainer div.randomquestionqlist ul{
     color:#555;
 }
+#mod-quiz-edit div.question div.content div.singlequestion .questionpreview{
+    background-color:#eee;
+}
+
+#mod-quiz-edit div.question div.content .questionpreview a{
+    background-color:#eee;
+}
 #mod-quiz-edit .questioncontentcontainer div.randomquestionqlist .totalquestionsinrandomqcategory{
     color:#000;
 }
index 6ff585e375eac28c363e2dbb40e73d071059e016..1d38d3f307ba4de3d55e0b182168cc8f3c8042dc 100755 (executable)
@@ -69,11 +69,12 @@ form.mform textarea {
 #mod-quiz-review #middle-column {
   height: 1%;
 }
-#mod-quiz-edit div.question div.content .questionname,
-#categoryquestions .questionname{
+#mod-quiz-edit div.question div.content .questiontext,
+#mod-quiz-edit #categoryquestions .questionname{
     /*ie6 shows this as an arrow if this is not specified*/
     cursor: pointer;
 }
+#mod-quiz-edit div.question div.content .questionname,
 #mod-quiz-edit #categoryquestions .questiontext{
     /*ie6 shows this as an arrow if this is not specified*/
     cursor: pointer;
@@ -90,3 +91,9 @@ form.mform textarea {
 #mod-quiz-edit div.question div.content .questionname,#categoryquestions .questionname{
     width:20%;
 }
+#mod-quiz-edit .editq div.question div.content .randomquestioncategory a{
+    width:40%;
+}
+#mod-quiz-edit .reorder .questioncontentcontainer .randomquestioncategory label{
+    width: 35%;
+}
\ No newline at end of file
index f9949f631a7b983b89192423c523c9fa14c8e4c1..e638425a337e3548771e8b3f98df4469ade2211a 100644 (file)
@@ -4683,7 +4683,7 @@ table.quizreviewsummary td.cell {
     position:relative;
     zoom:1;
     padding-left:0.3em;
-    max-width:50%;
+    max-width:40%;
     overflow:hidden;
     white-space:nowrap;
     text-overflow:ellipsis;
@@ -4710,7 +4710,6 @@ table.quizreviewsummary td.cell {
     margin-left:0.3em;
     padding-left:0.2em;
     padding-right:0.2em;
-    background-color:#eee;
 }
 
 #mod-quiz-edit div.question div.content div.quiz_randomquestion .questionpreview{
@@ -4828,6 +4827,60 @@ table.quizreviewsummary td.cell {
     margin:0;
     padding:0;
 }
+#mod-quiz-edit .reorder .questioncontentcontainer .quiz_randomquestion{
+
+    position:relative;
+}
+
+#mod-quiz-edit .reorder div.question div.content div.quiz_randomquestion{
+    line-height:1em;
+}
+
+#mod-quiz-edit .reorder .questioncontentcontainer .randomquestioncategory label{
+    max-width: 25%;
+    overflow:hidden;
+    padding-left:0.3em;
+    white-space:nowrap;
+    display:inline-block;
+}
+#mod-quiz-edit .reorder .questioncontentcontainer .randomquestionfromcategory label{
+    overflow:hidden;
+    white-space:nowrap;
+    display:inline-block;
+}
+
+#mod-quiz-edit .editq div.question div.content .randomquestioncategory{
+        position:relative;
+    display:inline-block;
+    
+}
+
+#mod-quiz-edit .editq div.question div.content .randomquestioncategory a{
+    display:block;
+    max-width:15em;
+    overflow: hidden;
+    text-overflow:ellipsis;
+    -o-text-overflow:ellipsis;
+    white-space: nowrap;
+    float:left;
+    position:relative;
+}
+#mod-quiz-edit .editq div.question div.content .questionpreview{
+    float:left;
+}
+#mod-quiz-edit .editq div.question div.content .questionpreview a{
+    font-weight:normal;
+    margin-left:0em;
+    display:inline;
+    float:none;
+}
+#mod-quiz-edit .editq div.question div.content .randomquestioncategory .questionpreview img{
+    padding-right:0.3em;
+}
+
+#mod-quiz-edit .questioncontentcontainer div.randomquestionqlist ul li img{
+    padding-right:0.3em;
+}
 
 
 #mod-quiz-edit .reorder .questioncontentcontainer .randomquestioncategory,