Fixed white background and background image in QS. Improved IE8 support in multichoice.

pull/1/head
Frode Petterson 2013-05-13 14:08:01 +02:00
parent a4a2a4c959
commit 5ff8612801
2 changed files with 11 additions and 1 deletions

View File

@ -7,6 +7,14 @@
.questionset .h5p-multichoice > .h5p-show-solution, .h5p-blanks .h5p-button {
display: none;
}
.questionset, .intro-page, .questionset-results {
position: relative;
margin: 1.5em;
box-shadow: 0 0 0.625em 0 #515151;
background-color: rgba(255,255,255,.75);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#BFFFFFFF,endColorstr=#BFFFFFFF);
zoom: 1;
}
.dots-container {
text-align: center;
line-height: 2em;

View File

@ -269,7 +269,9 @@ H5P.QuestionSet = function (options, contentId) {
$myDom.html(template.render(params));
if (params.backgroundImage !== undefined) {
$myDom.css({
background: 'url(' + cp + params.backgroundImage.path + ')'
overflow: 'hidden',
background: '#000 url(' + cp + params.backgroundImage.path + ') no-repeat 50% 50%',
backgroundSize: '100% auto'
});
}