fix setup

This commit is contained in:
Thibault Duplessis 2014-11-30 21:41:59 +01:00
parent 2d9ca5cc36
commit 393887892b
3 changed files with 9 additions and 5 deletions

View file

@ -1,5 +1,5 @@
@(form: Form[_], variants: List[(String, String, Option[String])])(implicit ctx: Context)
<div class="label_select">
<div class="variant label_select">
<label for="variant">@trans.variant()</label>
@setup.select(form("variant"), variants)
</div>

View file

@ -1169,12 +1169,12 @@ var storage = {
function prepareForm() {
var $form = $('div.lichess_overboard');
var $timeModeSelect = $form.find('.time_mode_choice select');
var $timeModeSelect = $form.find('#timeMode');
var $modeChoicesWrap = $form.find('.mode_choice');
var $modeChoices = $modeChoicesWrap.find('input');
var $casual = $modeChoices.eq(0),
$rated = $modeChoices.eq(1);
var $variantSelect = $form.find('.variants select');
var $variantSelect = $form.find('#variant');
var $fenPosition = $form.find(".fen_position");
var $timeInput = $form.find('.time_choice input');
var $incrementInput = $form.find('.increment_choice input');

View file

@ -508,10 +508,12 @@ div.game_config div.ui-slider {
margin: 0 15px;
}
div.game_config .optional_config {
margin-bottom: 1em;
padding: 8px 0;
border-bottom: solid 1px #e4e4e4;
}
div.game_config .mode_choice {
margin-top: 1em;
}
div.game_config .optional_config,
div.game_config .ratings {
background: #f4f4f4;
@ -523,10 +525,12 @@ div.game_config input[type="text"] {
padding: 2px 3px;
}
div.game_config .label_select {
margin-bottom: 1em;
overflow: hidden;
text-align: left;
}
div.game_config .label_select.variant {
margin-bottom: 8px;
}
div.game_config .label_select label {
display: block;
float: left;