Skip to content

Commit

Permalink
MDL-46092 bootstrapbase: add OU quiz styling
Browse files Browse the repository at this point in the history
It is a nicer default to have in Moodle that what we had before.
  • Loading branch information
timhunt committed Apr 20, 2016
1 parent 4f33514 commit de2fec2
Show file tree
Hide file tree
Showing 11 changed files with 205 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod/quiz/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ body.jsenabled .questionflagcheckbox {
background: #ddd;
text-align: center;
vertical-align: middle;
line-height: 1.5em !important;
line-height: 1.5em;
font-weight: bold;
text-decoration: none;
}
Expand Down
89 changes: 88 additions & 1 deletion theme/bootstrapbase/less/moodle/modules.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ select {
width: auto;
}

// Forum
// Forum module

.path-mod-forum .forumsearch {
input,
Expand Down Expand Up @@ -245,6 +245,8 @@ div#dock {
display: none;
}

// Choice module

.path-mod-choice {
.horizontal .choices {
margin: 0;
Expand All @@ -258,6 +260,8 @@ div#dock {
}
}

// Lesson module

.path-mod-lesson .firstpageoptions {
margin: auto;
min-width: 280px;
Expand Down Expand Up @@ -687,3 +691,86 @@ div#dock {
overflow: hidden;
}
}

// Quiz module

// Question navigation block.
.path-mod-quiz #mod_quiz_navblock {
.qnbutton {
text-decoration: none;
font-size: 14px;
line-height: 20px;
font-weight: normal;
background-color: @white;
background-image: none;
height: 40px;
width: 30px;
border-radius: 3px;
border: 0;
overflow: visible;
margin: 0 6px 6px 0;
}
span.qnbutton {
cursor: default;
background-color: @inputDisabledBackground;
color: @gray;
}
a.qnbutton:hover,
a.qnbutton:active,
a.qnbutton:focus {
text-decoration: underline;
}

.qnbutton .thispageholder {
border: 1px solid;
border-radius: 3px;
z-index: 1;
}
.qnbutton.thispage .thispageholder {
border-width: 3px;
}
.allquestionsononepage .qnbutton.thispage .thispageholder {
border-width: 1px;
}

.qnbutton.flagged .thispageholder {
background: transparent url([[pix:theme|mod/quiz/flag-on]]) 15px 0px no-repeat;
}

.qnbutton .trafficlight {
border: 0;
background: @white none center/10px no-repeat scroll;
height: 20px;
margin-top: 20px;
border-radius: 0 0 3px 3px;
}

.qnbutton.notyetanswered .trafficlight,
.qnbutton.invalidanswer .trafficlight {
background-color: @white;
}
.qnbutton.invalidanswer .trafficlight {
background-image: url([[pix:theme|mod/quiz/warningtriangle]]);
}
.qnbutton.correct .trafficlight {
background-image: url([[pix:theme|mod/quiz/checkmark]]);
background-color: @successText;
}
.qnbutton.blocked .trafficlight {
background-image: url([[pix:core|t/locked]]);
background-color: @inputDisabledBackground;
}
.qnbutton.notanswered .trafficlight,
.qnbutton.incorrect .trafficlight {
background-color: @errorText;
}
.qnbutton.partiallycorrect .trafficlight {
background-image: url([[pix:theme|mod/quiz/whitecircle]]);
background-color: @orange;
}
.qnbutton.complete .trafficlight,
.qnbutton.answersaved .trafficlight,
.path-mod-quiz #page .qnbutton.requiresgrading .trafficlight {
background-color: @grayLight;
}
}
Binary file added theme/bootstrapbase/pix/mod/quiz/checkmark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions theme/bootstrapbase/pix/mod/quiz/checkmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added theme/bootstrapbase/pix/mod/quiz/flag-on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions theme/bootstrapbase/pix/mod/quiz/flag-on.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added theme/bootstrapbase/pix/mod/quiz/warningtriangle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions theme/bootstrapbase/pix/mod/quiz/warningtriangle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added theme/bootstrapbase/pix/mod/quiz/whitecircle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions theme/bootstrapbase/pix/mod/quiz/whitecircle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion theme/bootstrapbase/style/moodle.css

Large diffs are not rendered by default.

0 comments on commit de2fec2

Please sign in to comment.