You are here

quiz.css in Quiz 7.5

/*
 * Definitions that apply while viewing questions.
 */
.question-type-name {
  font-style: italic;
}

/*
 * Definitions that apply while taking the quiz.
 */
#quiz-progress {
  font-style: italic;
  font-size: 80%;
}

#quiz-score-possible,
#quiz-score-percent {
  font-weight: bold;
}

td.quiz-summary-qcell {
  vertical-align: top;
  padding: 1em 1em 0 0;
}

td.quiz-summary-qcell table tr {
  background: transparent;
}

td.quiz-summary-qcell table td {
  vertical-align: top;
  padding: .5em;
}

.quiz-answer-feedback {
  font-style: italic;
}

.feedback-icon {
  display: inline;
}

.add-questions {
  background: transparent url(images/add.png) no-repeat scroll 0% 10%;
  padding: 0 0 1em 2em;
}

.hidden-question {
  display: none;
}

.quiz-question-browser-row.odd {
  background-color: #e7e7e7;
}

.quiz-question-browser-row.even {
  background-color: #fbfbfb;
}

#quiz-question-browser-filters {
  /*background-color: black;*/
  /* Black bg in seven theme looks horrible. */
  background: none repeat scroll 0 0 #e1e2dc;
  border-color: #bebfb9;
  border-style: solid;
  border-width: 1px;
  font-weight: normal;
  padding: 3px 10px;
  text-transform: uppercase;
}

#quiz-question-browser-filters td.active {
  background-color: #666;
}

.quiz-question-browser-row.odd td.active {
  background-color: #e2e2f9;
}

.quiz-question-browser-row.even td.active {
  background-color: #f8f8ff;
}

tr.selected.quiz-question-browser-row td,
tr.selected.quiz-question-browser-row td.active {
  background: none repeat scroll 0 0 #505050;
  color: #fff;
}

.browser-table th {
  border-bottom: 0 solid #666666;
}

.q-staying {
  display: inline;
  float: left;
  margin-right: 8px;
}

/*
 * Definitions that apply on the quiz report pages.
 */
div.quiz-report {
  margin: 0;
  padding: 0;
}

div.quiz-report .dt {
  background: #eee;
  border-top: solid 1px gray;
  padding-left: 5px;
}

div.quiz-report .quiz-report-question-header h3 {
  float: left;
}

div.quiz-report-score-container {
  border-right: solid 1px gray;
  border-left: solid 1px gray;
  border-bottom: solid 1px gray;
  border-top: solid 1px gray;
  float: right;
  padding: 4px 6px;
}

div.quiz-report-score-container span div.form-item {
  display: inline;
}

div.quiz-score-submit {
  float: right;
}

.quiz-report-skipped {
  float: right;
}

.q-correct {
  background-color: #ddffdd;
}

.q-wrong {
  background-color: #ffcccc;
}

.q-waiting {
  background-color: #ffffdd;
}

input#edit-submit-hidden {
  height: 0;
  width: 0;
  overflow: hidden;
  padding: 0;
  border: none;
}

.quiz-passed {
  color: #00dd00;
}

.quiz-failed {
  color: #dd0000;
}

#no-questions {
  font-style: italic;
}
#quiz-start-quiz-button-form div {
  padding: 0;
  margin: 0;
}

#quiz-start-quiz-button-form input {
  margin: 0;
}

#quiz-view-table td {
  padding: 0 3px 0 3px;
  margin: 0;
  line-height: 110%;
}

#browser-pager .pager-last {
  display: none;
}
#browser-pager .pager-first {
  display: none;
}

.matching-tbl {
  width: auto;
  border-collapse: separate;
  padding: 0;
  margin: 0;
  border: 0;
  line-height: 100%;
}

.matching-tbl p,
.matching-tbl select,
.matching-tbl div {
  padding: 0;
  margin: 0;
  line-height: 100%;
}

.matching-tbl td {
  padding: 2px;
  margin: 2px;
  line-height: 100%;
}

.quiz-solution {
  border-left: solid 5px #00ff00;
  padding-left: 3px;
}

.quiz-answer-hidden {
  font-style: italic;
}

#quiz-jumper-form,
#quiz-jumper-form div,
#quiz-jumper-form select {
  display: inline;
}

#quiz-progress .item-list .pager {
  text-align: left;
}

#quiz-categorized-form #autocomplete {
  overflow: auto;
  max-height: 300px;
}

.mark-doubtful .toggle {
  margin: auto;
  position: relative;
  width: 100px;
  overflow: hidden;
  height: 18px;
  line-height: 18px;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ccc;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  -khtml-border-radius: 3px;
  border-radius: 3px;
  -moz-box-shadow: 0 0 10px rgba(0,0,0,0.50) inset;
  -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.50) inset;
  box-shadow: 0 0 10px rgba(0,0,0,0.50) inset;
}

.mark-doubtful .toggle.off {
  background-clip: padding-box;
  background-image: -webkit-gradient(linear, 0% 0%, 100% 0%, color-stop(50%, red), color-stop(50%, white), color-stop(100%, white));
  background-image: -moz-linear-gradient(left, red 50%, white 50%, white 100%);
  background-image: linear-gradient(left, red 50%, white 50%, white 100%);
}

.mark-doubtful .toggle {
  background-image: -webkit-gradient(linear, 0% 0%, 100% 0%, color-stop(50%, white), color-stop(50%, green), color-stop(100%, green));
  background-image: -moz-linear-gradient(left, white 50%, green 50%, green 100%);
  background-image: linear-gradient(left, white 50%, green 50%, green 100%);
}

.mark-doubtful .toggle div {
  position: relative;
  color: #777;
  width: 52px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  -khtml-border-radius: 2px;
  border-radius: 2px;
  background: white;
  text-shadow: 1px 1px 0 white;
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #fefefe), color-stop(100%, #eaeaea));
  background-image: -moz-linear-gradient(top, #fefefe 0%, #eaeaea 100%);
  background-image: linear-gradient(top, #fefefe 0%, #eaeaea 100%);
  -webkit-transition: left 0.2s;
  -mox-transition: left 0.2s;
  -o-transition: left 0.2s;
  transition: left 0.2s;
}

/*
Fun

#quiz-question-answering-form {
  background-image: url('theme/question_bg.png');
  background-repeat: no-repeat;
  background-position: top left;
}
*/

File

quiz.css
View source
  1. /*
  2. * Definitions that apply while viewing questions.
  3. */
  4. .question-type-name {
  5. font-style: italic;
  6. }
  7. /*
  8. * Definitions that apply while taking the quiz.
  9. */
  10. #quiz-progress {
  11. font-style: italic;
  12. font-size: 80%;
  13. }
  14. #quiz-score-possible,
  15. #quiz-score-percent {
  16. font-weight: bold;
  17. }
  18. td.quiz-summary-qcell {
  19. vertical-align: top;
  20. padding: 1em 1em 0 0;
  21. }
  22. td.quiz-summary-qcell table tr {
  23. background: transparent;
  24. }
  25. td.quiz-summary-qcell table td {
  26. vertical-align: top;
  27. padding: .5em;
  28. }
  29. .quiz-answer-feedback {
  30. font-style: italic;
  31. }
  32. .feedback-icon {
  33. display: inline;
  34. }
  35. .add-questions {
  36. background: transparent url(images/add.png) no-repeat scroll 0% 10%;
  37. padding: 0 0 1em 2em;
  38. }
  39. .hidden-question {
  40. display: none;
  41. }
  42. .quiz-question-browser-row.odd {
  43. background-color: #e7e7e7;
  44. }
  45. .quiz-question-browser-row.even {
  46. background-color: #fbfbfb;
  47. }
  48. #quiz-question-browser-filters {
  49. /*background-color: black;*/
  50. /* Black bg in seven theme looks horrible. */
  51. background: none repeat scroll 0 0 #e1e2dc;
  52. border-color: #bebfb9;
  53. border-style: solid;
  54. border-width: 1px;
  55. font-weight: normal;
  56. padding: 3px 10px;
  57. text-transform: uppercase;
  58. }
  59. #quiz-question-browser-filters td.active {
  60. background-color: #666;
  61. }
  62. .quiz-question-browser-row.odd td.active {
  63. background-color: #e2e2f9;
  64. }
  65. .quiz-question-browser-row.even td.active {
  66. background-color: #f8f8ff;
  67. }
  68. tr.selected.quiz-question-browser-row td,
  69. tr.selected.quiz-question-browser-row td.active {
  70. background: none repeat scroll 0 0 #505050;
  71. color: #fff;
  72. }
  73. .browser-table th {
  74. border-bottom: 0 solid #666666;
  75. }
  76. .q-staying {
  77. display: inline;
  78. float: left;
  79. margin-right: 8px;
  80. }
  81. /*
  82. * Definitions that apply on the quiz report pages.
  83. */
  84. div.quiz-report {
  85. margin: 0;
  86. padding: 0;
  87. }
  88. div.quiz-report .dt {
  89. background: #eee;
  90. border-top: solid 1px gray;
  91. padding-left: 5px;
  92. }
  93. div.quiz-report .quiz-report-question-header h3 {
  94. float: left;
  95. }
  96. div.quiz-report-score-container {
  97. border-right: solid 1px gray;
  98. border-left: solid 1px gray;
  99. border-bottom: solid 1px gray;
  100. border-top: solid 1px gray;
  101. float: right;
  102. padding: 4px 6px;
  103. }
  104. div.quiz-report-score-container span div.form-item {
  105. display: inline;
  106. }
  107. div.quiz-score-submit {
  108. float: right;
  109. }
  110. .quiz-report-skipped {
  111. float: right;
  112. }
  113. .q-correct {
  114. background-color: #ddffdd;
  115. }
  116. .q-wrong {
  117. background-color: #ffcccc;
  118. }
  119. .q-waiting {
  120. background-color: #ffffdd;
  121. }
  122. input#edit-submit-hidden {
  123. height: 0;
  124. width: 0;
  125. overflow: hidden;
  126. padding: 0;
  127. border: none;
  128. }
  129. .quiz-passed {
  130. color: #00dd00;
  131. }
  132. .quiz-failed {
  133. color: #dd0000;
  134. }
  135. #no-questions {
  136. font-style: italic;
  137. }
  138. #quiz-start-quiz-button-form div {
  139. padding: 0;
  140. margin: 0;
  141. }
  142. #quiz-start-quiz-button-form input {
  143. margin: 0;
  144. }
  145. #quiz-view-table td {
  146. padding: 0 3px 0 3px;
  147. margin: 0;
  148. line-height: 110%;
  149. }
  150. #browser-pager .pager-last {
  151. display: none;
  152. }
  153. #browser-pager .pager-first {
  154. display: none;
  155. }
  156. .matching-tbl {
  157. width: auto;
  158. border-collapse: separate;
  159. padding: 0;
  160. margin: 0;
  161. border: 0;
  162. line-height: 100%;
  163. }
  164. .matching-tbl p,
  165. .matching-tbl select,
  166. .matching-tbl div {
  167. padding: 0;
  168. margin: 0;
  169. line-height: 100%;
  170. }
  171. .matching-tbl td {
  172. padding: 2px;
  173. margin: 2px;
  174. line-height: 100%;
  175. }
  176. .quiz-solution {
  177. border-left: solid 5px #00ff00;
  178. padding-left: 3px;
  179. }
  180. .quiz-answer-hidden {
  181. font-style: italic;
  182. }
  183. #quiz-jumper-form,
  184. #quiz-jumper-form div,
  185. #quiz-jumper-form select {
  186. display: inline;
  187. }
  188. #quiz-progress .item-list .pager {
  189. text-align: left;
  190. }
  191. #quiz-categorized-form #autocomplete {
  192. overflow: auto;
  193. max-height: 300px;
  194. }
  195. .mark-doubtful .toggle {
  196. margin: auto;
  197. position: relative;
  198. width: 100px;
  199. overflow: hidden;
  200. height: 18px;
  201. line-height: 18px;
  202. font-size: 11px;
  203. text-align: center;
  204. cursor: pointer;
  205. border: 1px solid #ccc;
  206. -moz-border-radius: 3px;
  207. -webkit-border-radius: 3px;
  208. -khtml-border-radius: 3px;
  209. border-radius: 3px;
  210. -moz-box-shadow: 0 0 10px rgba(0,0,0,0.50) inset;
  211. -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.50) inset;
  212. box-shadow: 0 0 10px rgba(0,0,0,0.50) inset;
  213. }
  214. .mark-doubtful .toggle.off {
  215. background-clip: padding-box;
  216. background-image: -webkit-gradient(linear, 0% 0%, 100% 0%, color-stop(50%, red), color-stop(50%, white), color-stop(100%, white));
  217. background-image: -moz-linear-gradient(left, red 50%, white 50%, white 100%);
  218. background-image: linear-gradient(left, red 50%, white 50%, white 100%);
  219. }
  220. .mark-doubtful .toggle {
  221. background-image: -webkit-gradient(linear, 0% 0%, 100% 0%, color-stop(50%, white), color-stop(50%, green), color-stop(100%, green));
  222. background-image: -moz-linear-gradient(left, white 50%, green 50%, green 100%);
  223. background-image: linear-gradient(left, white 50%, green 50%, green 100%);
  224. }
  225. .mark-doubtful .toggle div {
  226. position: relative;
  227. color: #777;
  228. width: 52px;
  229. -moz-border-radius: 2px;
  230. -webkit-border-radius: 2px;
  231. -khtml-border-radius: 2px;
  232. border-radius: 2px;
  233. background: white;
  234. text-shadow: 1px 1px 0 white;
  235. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #fefefe), color-stop(100%, #eaeaea));
  236. background-image: -moz-linear-gradient(top, #fefefe 0%, #eaeaea 100%);
  237. background-image: linear-gradient(top, #fefefe 0%, #eaeaea 100%);
  238. -webkit-transition: left 0.2s;
  239. -mox-transition: left 0.2s;
  240. -o-transition: left 0.2s;
  241. transition: left 0.2s;
  242. }
  243. /*
  244. Fun
  245. #quiz-question-answering-form {
  246. background-image: url('theme/question_bg.png');
  247. background-repeat: no-repeat;
  248. background-position: top left;
  249. }
  250. */