[PATCH] Adjust step 2 page to use two-column layout.

This commit is contained in:
Michal Nazarewicz 2014-02-10 23:09:45 +01:00 committed by Bradley M. Kuhn
parent ea2e2e9d9f
commit 5667f10a3e
2 changed files with 22 additions and 15 deletions

View file

@ -18,17 +18,12 @@ function step2_do () {
$result .= "<p><noscript>Note: This page requires Javascript</noscript></p>";
$result .= "<div class=\"canddata\">\n";
$result .= "<h3>Candidates</h3>\n";
$result .= "<ul id=\"candidates\">\n";
$result .= "</ul>\n";
$result .= "</div>";
$result .= "<div class=\"prefdata\">";
$result .= "<h3>Preferences</h3>\n";
$result .= "<ol id=\"preferences\">\n";
$result .= "</ol>\n";
$result .= "</div>\n";
$result .= '<table>';
$result .= ' <tr>';
$result .= ' <td class="canddata"><h3>Candidates</h3><ul id="candidates"></ul></td>';
$result .= ' <td class="prefdata"><h3>Preferences</h3><ol id="preferences"></ol></td>';
$result .= ' </tr>';
$result .= '</table>';
return $result;
}

View file

@ -82,10 +82,22 @@ if ($step==2)
{
?>
<style>
.canddata, .prefdata{
width:30%;
height: <?php echo 1.8*count($choices); ?>em;
background: #E0FFD0;
table {
width: 100%;
table-layout: fixed;
border: 4px solid #FFF;
border-collapse: collapse;
}
td.canddata, td.prefdata {
border: 4px solid #FFF;
width: 50%;
height: 27em;
background: #E0FFD0;
padding: 0.5em;
vertical-align: top;
}
.canddata h3, .prefdata h3 {
margin-top: 0;
}