As a bit of repayment to Gareth and Chris for sharing their nice quiz CSS layout code (which I am probably about to steal), I thought I would share some code we have been using at the OU for the quiz navigation block, which makes it look like this.
For comparison, here is how it looks now in standard Moodle:
The necessary CSS is below. You also need to put the three images in the attached zip into the pix folder of your theme.
/* Quiz navigation. */
.path-mod-quiz #mod_quiz_navblock .qn_buttons {
margin-right: -14px;
}
.path-mod-quiz #mod_quiz_navblock .qnbutton {
font-size: 14px;
line-height: 25px !important;
font-weight: normal;
background-color: #fff;
background-image: none;
height: 45px;
width: 35px;
border-radius: 4px;
border: 0;
margin: 0 5px 5px 0;
}
.path-mod-quiz #mod_quiz_navblock .qnbutton .thispageholder {
border: 1px solid #999999;
border-radius: 4px;
z-index: 1;
}
.path-mod-quiz #mod_quiz_navblock .qnbutton.thispage .thispageholder {
border: 3px solid #1F536B;
}
.path-mod-quiz #mod_quiz_navblock .qnbutton.flagged .thispageholder {
background: transparent url([[pix:theme|flag-on]]) 20px 0px no-repeat;
}
.path-mod-quiz #mod_quiz_navblock .qnbutton .trafficlight {
border: 0;
background: #fff none center 4px / 10px no-repeat scroll;
height: 20px;
margin-top: 25px;
border-radius: 0 0 4px 4px;
}
.path-mod-quiz #mod_quiz_navblock .qnbutton.notyetanswered .trafficlight,
.path-mod-quiz #mod_quiz_navblock .qnbutton.invalidanswer .trafficlight {
background-color: #fff;
}
.path-mod-quiz #mod_quiz_navblock .qnbutton.correct .trafficlight {
background-image: url([[pix:theme|checkmark]]);
background-color: #468847;
}
.path-mod-quiz #mod_quiz_navblock .qnbutton.blocked .trafficlight {
background-image: url([[pix:core|t/locked]]);
}
.path-mod-quiz #mod_quiz_navblock .qnbutton.notanswered .trafficlight,
.path-mod-quiz #mod_quiz_navblock .qnbutton.incorrect .trafficlight {
background-color: #b94a48;
}
.path-mod-quiz #mod_quiz_navblock .qnbutton.partiallycorrect .trafficlight {
background-image: url([[pix:theme|whitecircle]]);
background-color: #c09853;
}
.path-mod-quiz #mod_quiz_navblock .qnbutton.complete .trafficlight,
.path-mod-quiz #mod_quiz_navblock .qnbutton.answersaved .trafficlight,
.path-mod-quiz #mod_quiz_navblock .qnbutton.requiresgrading .trafficlight {
background-color: #999;
}
I think the obvious question is: do we want this in standard Moodle in time for 3.1?