From: tjhunt Date: Thu, 4 Sep 2008 04:55:32 +0000 (+0000) Subject: MDL-15653 Indicate question state in quiz naviggation buttons - prepartiory work... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=82ab2dcf5ce5ad09ac8e595609d436abe1de7334;p=moodle.git MDL-15653 Indicate question state in quiz naviggation buttons - prepartiory work: make the layout of the buttons more consistent between IE and FF, and between attempt and review. --- diff --git a/theme/standard/styles_color.css b/theme/standard/styles_color.css index d4f540ac0a..be5ff678a4 100644 --- a/theme/standard/styles_color.css +++ b/theme/standard/styles_color.css @@ -1052,6 +1052,18 @@ table.quizreviewsummary td.cell { background:yellow; } +#quiznavigation .qnbutton { + color: #00f; + border-color: gray; + background-color: white; +} +#quiznavigation .qnbutton:hover { + color: #f00; +} +#quiznavigation .qnbutton.thispage { + background-color: #eee; +} + /*** *** Modules: Resource ***/ diff --git a/theme/standard/styles_fonts.css b/theme/standard/styles_fonts.css index dc1e6f0967..bf47905090 100644 --- a/theme/standard/styles_fonts.css +++ b/theme/standard/styles_fonts.css @@ -997,6 +997,15 @@ body#mod-forum-index .generalbox .cell { *** Modules: Quiz ***/ +#quiznavigation .qnbutton { + font: inherit; + line-height: 1.5em; + font-weight: bold; +} +#quiznavigation .qnbutton:hover { + text-decoration: underline; +} + /*** *** Modules: Resource ***/ diff --git a/theme/standard/styles_ie6.css b/theme/standard/styles_ie6.css index 4be04d2883..95a0de063d 100755 --- a/theme/standard/styles_ie6.css +++ b/theme/standard/styles_ie6.css @@ -66,4 +66,6 @@ form.mform textarea { #course-view li.activity { height:0; } - +#mod-quiz-review #middle-column { + height: 1%; +} diff --git a/theme/standard/styles_ie7.css b/theme/standard/styles_ie7.css index 096b1f41fd..0dc3376f92 100755 --- a/theme/standard/styles_ie7.css +++ b/theme/standard/styles_ie7.css @@ -56,3 +56,6 @@ form.mform textarea { form.mform .fcheckbox input { margin-left: -3px; } +#mod-quiz-review #middle-column { + height: 1%; +} diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 1a5207ae04..fc5f136a5b 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -1235,6 +1235,7 @@ a.skip:focus, a.skip:active { .skip-block-to, #maincontent { display: block; height: 1px; + overflow: hidden; } .sideblock { @@ -3920,6 +3921,9 @@ body#mod-forum-search .introcontent { #mod-quiz-summary .submitbtns { margin-top: 1.5em; } +#mod-quiz-summary #content { + text-align: center; +} #mod-quiz-summary .questionflag { width: 16px; height: 16px; @@ -4150,29 +4154,27 @@ table.quizreviewsummary td.cell { text-align: center; margin: 6px 0; } - +#mod-quiz-attempt #left-column, +#mod-quiz-review #left-column { + padding-top: 1px; +} #quiznavigation .qnbutton { + display: block; float: left; width: 1.5em; height: 1.5em; + overflow: hidden; margin: 0.3em 0.3em 0.3em 0; - border: 1px solid grey; - background: white; - font-weight: bold; + padding: 0; + border: 1px solid gray; + background: white no-repeat top right; text-align: center; vertical-align: middle; -} -#quiznavigation .qnbutton:hover { - background: silver; - text-decoration: underline; -} -#quiznavigation .qnbutton.thispage { - background: #eee; + cursor: pointer; + white-space: normal; } #quiznavigation .qnbutton.flagged { - background-repeat: no-repeat; background-image: url(pix/flaggedquestionnav.png); - background-position: top right; } #quiznavigation .othernav { clear: both; diff --git a/theme/standard/styles_moz.css b/theme/standard/styles_moz.css index b0ffa599c9..5b609f6ddb 100644 --- a/theme/standard/styles_moz.css +++ b/theme/standard/styles_moz.css @@ -339,3 +339,11 @@ body#course-user .section { -moz-border-radius-bottomright:15px; } + +/*** + *** Modules: Quiz + ***/ + +#quiznavigation .qnbutton { + -moz-box-sizing: content-box; +}