MDL-48276 qformat_xhtml: avoid uncessary html in .css file

In order to help automated tools move the html out of the css
file.
This commit is contained in:
Dan Poltawski 2014-11-18 20:26:24 +00:00
parent c106341098
commit 7417189dcc
2 changed files with 10 additions and 11 deletions

View File

@ -172,7 +172,9 @@ class qformat_xhtml extends qformat_default {
$xp .= "<head>\n";
$xp .= "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />\n";
$xp .= "<title>Moodle Quiz XHTML Export</title>\n";
$xp .= "<style type=\"text/css\">\n";
$xp .= $css;
$xp .= "</style>\n";
$xp .= "</head>\n";
$xp .= "<body>\n";
$xp .= "<form action=\"...REPLACE ME...\" method=\"post\">\n\n";

View File

@ -1,23 +1,20 @@
<style>
body {
body {
font-family: Verdana, Helvetica, Sans-Serif;
background-color: #fff;
color: #000;
}
}
.question {
.question {
border: 1px solid #ddd;
margin: 5px;
padding: 3px;
}
}
.question h3 {
.question h3 {
font-weight: normal;
font-size: 125%;
}
}
.question ul {
.question ul {
list-style-type: none;
}
</style>
}