From c02131ec3791a136eb1da7d58da06ce47aa6f851 Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Tue, 21 Feb 2006 23:53:52 +0000 Subject: [PATCH] started to build the CSS for the new quizzes. While working on it I will write all into styles.php. When finished I will put the CSS into the standard themes. The quiz part in the standard theme is deactivated. --- mod/quiz/styles.php | 190 ++++++++----------------------- theme/standard/styles_color.css | 4 +- theme/standard/styles_fonts.css | 4 +- theme/standard/styles_layout.css | 4 +- 4 files changed, 55 insertions(+), 147 deletions(-) diff --git a/mod/quiz/styles.php b/mod/quiz/styles.php index f2416761070..e5f3f9b84de 100644 --- a/mod/quiz/styles.php +++ b/mod/quiz/styles.php @@ -1,156 +1,64 @@ - - -.mod-quiz .quiz-report-title { - text-align: center; - font-weight : bold; +#mod-quiz-attempt #page { + text-align: center; } -.mod-quiz .grade { - font-size: small; - margin-top: 10pt +#mod-quiz-attempt .question { + width: 90%; + text-align: left; + margin: 10px auto 15px auto; + border: 1px solid #DDD; + clear: both; } -.mod-quiz .gradingdetails { - font-size: small; +#mod-quiz-attempt .question .info { + float: left; + margin: 5px; + width: 8%; } - - -body#mod-quiz-report table#itemanalysis { - margin: 20px auto; +#mod-quiz-attempt .question .no { + font-size: 1.2em; + font-weight: bold; } -body#mod-quiz-report table#itemanalysis .header, -body#mod-quiz-report table#itemanalysis .cell -{ - padding: 4px; +#mod-quiz-attempt .question .grade { + margin-top: 0.5em; + font-size: 0.8em; } -body#mod-quiz-report table#itemanalysis .header .commands { - display: inline; +#mod-quiz-attempt .question .content { + float: right; + margin: 5px; + width: 88%; } -body#mod-quiz-report table#itemanalysis td { - border-width: 1px; - border-style: solid; +#mod-quiz-attempt .question .qtext { + margin-bottom: 1.5em; } -body#mod-quiz-report table#itemanalysis .header { - text-align: left; +#mod-quiz-attempt .question .answer { + margin: 0.7em 0 0.3em 0; } -body#mod-quiz-report table#itemanalysis .numcol { - text-align: center; - vertical-align : middle !important; +#mod-quiz-attempt .question .answer .prompt { + float: left; + width: 15%; + height: 2em; } - -body#mod-quiz-report table#itemanalysis .uncorrect { - color: red; +#mod-quiz-attempt .question .answer .shortanswer { + float: left; + width: 80%; + padding-bottom: 0.5em; } - -body#mod-quiz-report table#itemanalysis .correct { - color: blue; - font-weight : bold; +#mod-quiz-attempt .question .answer .multichoice { + float: left; + width: 80%; + padding-bottom: 0.5em; } - -body#mod-quiz-report table#itemanalysis .partialcorrect { - color: green !important; +#mod-quiz-attempt .question .answer .multichoice .c0 { + width: 5%; + vertical-align: top; + padding: 0; } - -body#mod-quiz-report table#itemanalysis .qname { - color: green !important; +#mod-quiz-attempt .question .answer input { + margin: 0.5em 0 0 0; } - -/* manual grading */ -body#mod-quiz-grading table#grading -{ - width: 80%; - margin: auto; +#mod-quiz-attempt .question .answer .shortanswer input { + margin: 0; } -body#mod-quiz-grading table#grading -{ - margin: 20px auto; -} -body#mod-quiz-grading table#grading .header, -body#mod-quiz-grading table#grading .cell -{ - padding: 4px; -} -body#mod-quiz-grading table#grading .header .commands -{ - display: inline; -} -body#mod-quiz-grading table#grading .picture -{ - width: 40px; -} -body#mod-quiz-grading table#grading td -{ - border-left-width: 1px; - border-right-width: 1px; - border-left-style: solid; - border-right-style: solid; - vertical-align: bottom; -} - - -body#mod-quiz-grading table#grading .header { - text-align: left; -} -body#mod-quiz-grading table#grading .picture { - text-align: center !important; -} -body#mod-quiz-grading .controls { - text-align: center; -} - -body#mod-quiz-grading table#grading td { - border-color: #dddddd; -} -body#mod-quiz-grading table#grading .r1 { - background-color: #eeeeee; -} -/* grading */ - - - -body#mod-quiz-report table#responses { - margin: 20px auto; -} -body#mod-quiz-report table#responses .header, -body#mod-quiz-report table#responses .cell -{ - padding: 4px; -} -body#mod-quiz-report table#responses .header .commands { - display: inline; -} -body#mod-quiz-report table#responses td { - border-width: 1px; - border-style: solid; -} -body#mod-quiz-report table#responses .header { - text-align: left; -} -body#mod-quiz-report table#responses .numcol { - text-align: center; - vertical-align : middle !important; -} - -body#mod-quiz-report table#responses .uncorrect { - color: red; -} - -body#mod-quiz-report table#responses .correct { - color: green; -} - -body#mod-quiz-report table#responses .partialcorrect { - color: orange; -} - -#mod-quiz-attempt #timer .generalbox { - width:150px -} - -#mod-quiz-attempt #timer { - position:absolute; - /*top:100px; is set by js*/ - left:10px -} - -.mod-quiz #categoryquestions td { - white-space:nowrap; +#mod-quiz-attempt .question .grading { + float: right; + width: 88%; } diff --git a/theme/standard/styles_color.css b/theme/standard/styles_color.css index 829b2da588b..408ad3f446c 100644 --- a/theme/standard/styles_color.css +++ b/theme/standard/styles_color.css @@ -726,13 +726,13 @@ table.message_search_results td { *** Modules: Quiz ***/ -body#mod-quiz-report table#attempts td { +/* body#mod-quiz-report table#attempts td { border-color: #dddddd; } body#mod-quiz-report table#attempts .r1 { background-color: #eeeeee; } - + */ /*** *** Modules: Resource diff --git a/theme/standard/styles_fonts.css b/theme/standard/styles_fonts.css index 83e37c9cc1d..221ebc75294 100644 --- a/theme/standard/styles_fonts.css +++ b/theme/standard/styles_fonts.css @@ -616,14 +616,14 @@ body#mod-forum-index .generalbox .cell { *** Modules: Quiz ***/ -.editorhelptext { +/* .editorhelptext { font-size:0.7em; } #mod-quiz-index .cell { font-size:0.8em; } - + */ /*** *** Modules: Resource diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 859c05ac8a9..360b6a90a14 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -1459,7 +1459,7 @@ body#mod-forum-search .introcontent { *** Modules: Quiz ***/ -.feedbacktext { +/* .feedbacktext { display:block; text-align:right; } @@ -1505,7 +1505,7 @@ body#mod-quiz-report .controls { .navbutton form { display: inline; } - + */ /*** *** Modules: Resource ***/