From df74830cfdc5243a6b9c8e3d2fcf842256223c79 Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Sun, 30 Apr 2006 17:39:58 +0000 Subject: [PATCH] cleaned and enhanced CSS for quiz --- mod/quiz/styles.php | 120 ++++---------------------------------------- 1 file changed, 11 insertions(+), 109 deletions(-) diff --git a/mod/quiz/styles.php b/mod/quiz/styles.php index 9f3844d9fc..abe58e098d 100644 --- a/mod/quiz/styles.php +++ b/mod/quiz/styles.php @@ -44,23 +44,28 @@ body#mod-quiz-grading table#grading width: 80%; margin: auto; } + 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; @@ -69,122 +74,19 @@ body#mod-quiz-grading table#grading td border-right-style: solid; vertical-align: bottom; } + .mod-quiz .quiz-report-title { text-align: center; font-weight : bold; } -.mod-quiz .grade { - font-size: small; - margin-top: 10pt -} + .mod-quiz .gradingdetails { font-size: small; } + #mod-quiz-attempt #page { text-align: center; } -#mod-quiz-attempt .question { - width: 90%; - text-align: left; - margin: 10px auto 15px auto; - border: 1px solid #DDD; - clear: both; -} -#mod-quiz-attempt .question .info { - float: left; - margin: 5px; - width: 8%; -} -#mod-quiz-attempt .question .no { - font-size: 1.2em; - font-weight: bold; -} -#mod-quiz-attempt .question .grade { - margin-top: 0.5em; - font-size: 0.8em; -} -#mod-quiz-attempt .question .content { - float: right; - margin: 5px; - width: 88%; -} -#mod-quiz-attempt .question .qtext { - margin-bottom: 1.5em; -} -#mod-quiz-attempt .question .ablock { - margin: 0.7em 0 0.3em 0; -} -#mod-quiz-attempt .question .prompt { - float: left; - width: 15%; - height: 2em; - padding-top: 0.3em; - /* font-size: 0.8em; */ -} -#mod-quiz-attempt .question .answer { - float: right; - width: 83%; - margin-bottom: 0.5em; -} -#mod-quiz-attempt .question .submit { - position: relative; - clear: both; - float: left; -} -/* MSIE Hack */ -* html #mod-quiz-attempt .question .submit { - float: none; -} -#mod-quiz-attempt .question .c0, -#mod-quiz-attempt .question .c1 { - padding: 0.3em 0 0.3em 0.3em; - vertical-align: top; -} -#mod-quiz-attempt .question .r0 { - background-color: #F5F5F5; -} -#mod-quiz-attempt .question .r1 { - background-color: #EEE; -} -#mod-quiz-attempt .multichoice .c0 { - /* width: 5%; */ - vertical-align: top; - padding-top: 0.4em; -} -#mod-quiz-attempt .shortanswer .answer, -#mod-quiz-attempt .truefalse .answer { - background-color: #EEE; - padding: 0.3em 0 0.3em 0.3em; -} -#mod-quiz-attempt .shortanswer .answer input { - width: 85%; -} -#mod-quiz-attempt .shortanswer .feedback, -#mod-quiz-attempt .truefalse .feedback { - clear: both; - float: right; - width: 83%; - /* margin-left: 15%; */ - padding: 0 0 0.3em 0.3em; - /* background-color: #EEE; */ - border: 1px solid #DDD; -} -#mod-quiz-attempt .question .grading, -#mod-quiz-attempt .question .history { - float: right; - margin: 5px; - width: 88%; -} -.clearfix:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} -/* Hides from IE-mac \*/ -* html .clearfix {height: 1%;} -/* End hide from IE-mac */ #mod-quiz-attempt #timer .generalbox { width:150px @@ -195,6 +97,6 @@ body#mod-quiz-grading table#grading td /*top:100px; is set by js*/ left:10px } - - - +#question-preview .essay .answer textarea { + width: 400px; +} -- 2.39.5