diff options
author | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 23:28:54 +0100 |
---|---|---|
committer | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 23:28:54 +0100 |
commit | 8f079b654779612dfc9aae041245d9f6c60270ad (patch) | |
tree | c4e11a7dc2c93126a0665cfb5fe784c8b88880bc | |
parent | 1f8c26f25b52d410d126eeeb30f61012094beaaa (diff) |
Fix styles.css
-rw-r--r-- | displayformula.php | 8 | ||||
-rw-r--r-- | styles.css | 17 | ||||
-rw-r--r-- | tests/behat/export.feature | 2 |
3 files changed, 14 insertions, 13 deletions
diff --git a/displayformula.php b/displayformula.php index 58723f1..8c4cf8c 100644 --- a/displayformula.php +++ b/displayformula.php @@ -22,14 +22,16 @@ /** * Script which converts the given formula text into LaTeX code and then - * displays the appropriate image file. It relies on the LaTeX filter to - * be present. + * displays the appropriate image file. It relies on the LaTeX filter or + * the mathJax filter to be present. */ require_once('../../../config.php'); require_once("$CFG->dirroot/question/type/algebra/parser.php"); global $PAGE, $CFG; +require_login(); + $p = new qtype_algebra_parser; try { $query = urldecode($_SERVER['QUERY_STRING']); @@ -74,7 +76,7 @@ if (!empty($CFG->additionalhtmlhead) && stripos($CFG->additionalhtmlhead, 'MathJ } ?> </head> - <body bgcolor="#FFFFFF"> + <body bgcolor="#ffffff"> <?php echo $text; ?> </body> </html> @@ -1,6 +1,5 @@ .que.algebra .answer { padding: 0.3em; - width: auto; display: inline; } .que.algebra .answer input { @@ -9,20 +8,20 @@ /* Editing form. */ body#page-question-type-algebra div[id^=fgroup_id_][id*=answeroptions_] { - background: #EEE; + background: #eee; margin-top: 0; margin-bottom: 0; padding-bottom: 5px; padding-top: 5px; - border: 1px solid #BBB; + border: 1px solid #bbb; border-bottom: 0; } -body#page-question-type-algebra div[id^=fgroup_id_][id*=answeroptions_] .fgrouplabel label{ +body#page-question-type-algebra div[id^=fgroup_id_][id*=answeroptions_] .fgrouplabel label { font-weight: bold; } -body#page-question-type-algebra div[id^=fgroup_id_][id*=answeroptions_] label[for^='id_answer_']{ +body#page-question-type-algebra div[id^=fgroup_id_][id*=answeroptions_] label[for^='id_answer_'] { position: absolute; left: -10000px; font-weight: normal; @@ -30,22 +29,22 @@ body#page-question-type-algebra div[id^=fgroup_id_][id*=answeroptions_] label[fo } body#page-question-type-algebra div[id^=fitem_id_][id*=fraction_] { - background: #EEE; + background: #eee; margin-bottom: 0; margin-top: 0; padding-bottom: 5px; padding-top: 5px; - border: 1px solid #BBB; + border: 1px solid #bbb; border-top: 0; border-bottom: 0; } body#page-question-type-algebra div[id^=fitem_id_][id*=feedback_] { - background: #EEE; + background: #eee; margin-bottom: 2em; margin-top: 0; padding-bottom: 5px; padding-top: 5px; - border: 1px solid #BBB; + border: 1px solid #bbb; border-top: 0; } diff --git a/tests/behat/export.feature b/tests/behat/export.feature index 8c92943..73f6bac 100644 --- a/tests/behat/export.feature +++ b/tests/behat/export.feature @@ -27,7 +27,7 @@ Feature: Test exporting Short answer questions When I navigate to "Export" node in "Course administration > Question bank" And I set the field "id_format_xml" to "1" And I press "Export questions to file" - Then following "click here" should download between "1200" and "1300" bytes + Then following "click here" should download between "1100" and "1200" bytes # If the download step is the last in the scenario then we can sometimes run # into the situation where the download page causes a http redirect but behat # has already conducted its reset (generating an error). By putting a logout |