multiple choice design update

This commit is contained in:
Daniel 2014-04-18 22:20:15 +02:00
commit 4ab40a5a19
2 changed files with 9 additions and 5 deletions

View file

@ -1,10 +1,10 @@
<form method="post">
<fieldset>
<legend><?=sprintf(_('Question %d of %d'), $pos, $count)?></legend>
<p><?=\hhu\z\Utils::t($question['question'])?></p>
<ol>
<legend><?=sprintf(_('Question %d of %d'), $pos, $count)?>:</legend>
<p class="fwb"><?=\hhu\z\Utils::t($question['question'])?></p>
<ol class="mchoice">
<?php foreach($question['answers'] as $i => &$answer) : ?>
<li>
<li class="cf">
<input type="checkbox" id="answers[<?=$i?>]" name="answers[<?=$i?>]" value="true" <?=(array_key_exists('useranswer', $answer) && $answer['useranswer']) ? 'checked="checked"' : '' ?> />
<label for="answers[<?=$i?>]"><?=$t->t($answer['answer'])?></label>
</li>

View file

@ -30,7 +30,7 @@ sub{bottom:-.25em}
svg:not(:root){overflow:hidden}
figure{margin:0}
fieldset{border:0;margin:0;padding:0}
legend{border:0;padding:0}
legend{border:0;padding:0;margin-bottom:15px}
button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}
button,input{line-height:normal}
button,select{text-transform:none}
@ -238,6 +238,10 @@ input[type="submit"][disabled]{text-shadow:1px 2px #d48c4e;background:#f9ac69;bo
/** Quest Types **/
.mchoice li{margin-bottom:10px}
.mchoice input[type=checkbox]{width:8%;float:left;margin-top:6px}
.mchoice label{width:92%;float:right}
.crossword table{width:100%;max-width:800px;border-spacing:2px;border-collapse:separate}
.crossword td{background:#d7d4cf;padding:1px}
.crossword input[type=text]{text-align:center;height:26px;width:100%;min-width:8px;max-width:40px;margin:0;padding:0;border:none;text-transform:uppercase}