Use margin to position checkboxes

This commit is contained in:
Wuzzy 2024-12-07 16:32:14 +01:00
parent 71401a207f
commit a005051c94
2 changed files with 35 additions and 41 deletions

View File

@ -44,6 +44,10 @@ select, input, textarea {
input.numInput {
width: 7em;
}
label {
margin-left: 0.2em;
margin-right: 0.2em;
}
button {
border-style: outset;
border-width: 1px;

View File

@ -62,41 +62,41 @@ A Voronoi diagram is supposed to be here but for some reason it cannot be displa
</div>
<div id="biomeEditElements">
<h3>Selected biome</h3>
<label for="inputBiomeName">Name:&nbsp;</label>
<label for="inputBiomeName">Name:</label>
<input id="inputBiomeName" type="text" size="45">
<br>
<div id="biomeColorSection">
<label>Color:&nbsp;</label>
<label>Color:</label>
</div>
<br>
<label for="inputHeat">Heat:&nbsp;</label>
<label for="inputHeat">Heat:</label>
<input id="inputHeat" class="numInput" type="number" value="50" step="1" min="-1e6" max="1e6">
<label for="inputHumidity">Humidity:&nbsp;</label>
<label for="inputHumidity">Humidity:</label>
<input id="inputHumidity" class="numInput" type="number" value="50" step="1" min="-1e6" max="1e6">
<br>
<label for="inputMinX">Min. X:&nbsp;</label>
<label for="inputMinX">Min. X:</label>
<input id="inputMinX" class="numInput" type="number" value="-31000" step="1">
<label for="inputMaxX">Max. X:&nbsp;</label>
<label for="inputMaxX">Max. X:</label>
<input id="inputMaxX" class="numInput" type="number" value="31000" step="1">
<br>
<label for="inputMinY">Min. Y:&nbsp;</label>
<label for="inputMinY">Min. Y:</label>
<input id="inputMinY" class="numInput" type="number" value="-31000" step="1">
<label for="inputMaxY">Max. Y:&nbsp;</label>
<label for="inputMaxY">Max. Y:</label>
<input id="inputMaxY" class="numInput" type="number" value="31000" step="1">
<br>
<label for="inputMinZ">Min. Z:&nbsp;</label>
<label for="inputMinZ">Min. Z:</label>
<input id="inputMinZ" class="numInput" type="number" value="-31000" step="1">
<label for="inputMaxZ">Max. Z:&nbsp;</label>
<label for="inputMaxZ">Max. Z:</label>
<input id="inputMaxZ" class="numInput" type="number" value="31000" step="1">
</div>
</form>
@ -108,15 +108,12 @@ A Voronoi diagram is supposed to be here but for some reason it cannot be displa
<div id="biomeV6ConfigContainer" class="configFrame">
<form id="biomeV6Form">
<div>Flags:
<input id="inputCheckboxV6Snowbiomes" type="checkbox" checked>
<label for="inputCheckboxV6Snowbiomes">snowbiomes</label>
<input id="inputCheckboxV6Snowbiomes" type="checkbox" checked><label for="inputCheckboxV6Snowbiomes">snowbiomes</label>
<input id="inputCheckboxV6Jungles" type="checkbox" checked>
<label for="inputCheckboxV6Jungles">jungles</label>
<input id="inputCheckboxV6Jungles" type="checkbox" checked><label for="inputCheckboxV6Jungles">jungles</label>
</div>
<div>
<label for="inputV6FreqDesert">Desert noise threshold:&nbsp;</label>
<input id="inputV6FreqDesert" class="numInput" type="number" value="0.45" step="0.01" disabled>
<label for="inputV6FreqDesert">Desert noise threshold:</label><input id="inputV6FreqDesert" class="numInput" type="number" value="0.45" step="0.01" disabled>
</div>
</form>
</div>
@ -127,31 +124,26 @@ A Voronoi diagram is supposed to be here but for some reason it cannot be displa
<div id="viewConfigContainer" class="configFrame">
<form id="viewForm">
World position:&nbsp;
<label for="inputViewX">X:&nbsp;</label>
<label for="inputViewX">X:</label>
<input id="inputViewX" class="numInput" type="number" value="0" step="1">
<label for="inputViewY">Y:&nbsp;</label>
<label for="inputViewY">Y:</label>
<input id="inputViewY" class="numInput" type="number" value="0" step="1">
<label for="inputViewZ">Z:&nbsp;</label>
<label for="inputViewZ">Z:</label>
<input id="inputViewZ" class="numInput" type="number" value="0" step="1">
<br>
<input id="inputCheckboxPoints" type="checkbox" checked>
<label for="inputCheckboxPoints">Show points</label>
<input id="inputCheckboxPoints" type="checkbox" checked><label for="inputCheckboxPoints">Show points</label>
<input id="inputCheckboxNames" type="checkbox" checked>
<label for="inputCheckboxNames">Show names</label>
<input id="inputCheckboxNames" type="checkbox" checked><label for="inputCheckboxNames">Show names</label>
<input id="inputCheckboxAxes" type="checkbox">
<label for="inputCheckboxAxes">Show axes</label>
<input id="inputCheckboxAxes" type="checkbox"><label for="inputCheckboxAxes">Show axes</label>
<input id="inputCheckboxGrid" type="checkbox" checked>
<label for="inputCheckboxGrid">Show grid</label>
<input id="inputCheckboxGrid" type="checkbox" checked><label for="inputCheckboxGrid">Show grid</label>
<input id="inputCheckboxCellColors" type="checkbox" checked>
<label for="inputCheckboxCellColors">Colorize cells</label>
<input id="inputCheckboxCellColors" type="checkbox" checked><label for="inputCheckboxCellColors">Colorize cells</label>
</form>
</div>
</div>
@ -161,36 +153,34 @@ A Voronoi diagram is supposed to be here but for some reason it cannot be displa
<div class="configFrame" id="noiseConfigContainer">
<form id="noiseForm">
<h3>Heat (<code id="noiseSettingNameHeat">mg_biome_np_heat</code>)</h3>
<label for="inputNoiseHeatOffset">Offset:&nbsp;</label>
<label for="inputNoiseHeatOffset">Offset:</label>
<input id="inputNoiseHeatOffset" class="numInput" type="number" value="50" step=0.01>
<label for="inputNoiseHeatScale">Scale:&nbsp;</label>
<label for="inputNoiseHeatScale">Scale:</label>
<input id="inputNoiseHeatScale" class="numInput" type="number" value="50" step=0.01>
<label for="inputNoiseHeatOctaves">Octaves:&nbsp;</label>
<label for="inputNoiseHeatOctaves">Octaves:</label>
<input id="inputNoiseHeatOctaves" class="numInput" type="number" value="3" step="1" min="1" max="65535">
<label for="inputNoiseHeatPersistence">Persistence:&nbsp;</label>
<label for="inputNoiseHeatPersistence">Persistence:</label>
<input id="inputNoiseHeatPersistence" class="numInput" type="number" value="0.5" step=0.01>
<input id="inputNoiseHeatAbsvalue" type="checkbox">
<label for="inputNoiseHeatAbsvalue">absvalue</label>
<input id="inputNoiseHeatAbsvalue" type="checkbox"><label for="inputNoiseHeatAbsvalue">absvalue</label>
<h3>Humidity (<code id="noiseSettingNameHumidity">mg_biome_np_humidity</code>)</h3>
<label for="inputNoiseHumidityOffset">Offset:&nbsp;</label>
<label for="inputNoiseHumidityOffset">Offset:</label>
<input id="inputNoiseHumidityOffset" class="numInput" type="number" value="50" step=0.01>
<label for="inputNoiseHumidityScale">Scale:&nbsp;</label>
<label for="inputNoiseHumidityScale">Scale:</label>
<input id="inputNoiseHumidityScale" class="numInput" type="number" value="50" step=0.01>
<label for="inputNoiseHumidityOctaves">Octaves:&nbsp;</label>
<label for="inputNoiseHumidityOctaves">Octaves:</label>
<input id="inputNoiseHumidityOctaves" class="numInput" type="number" value="3" step="1" min="1" max="65535">
<label for="inputNoiseHumidityPersistence">Persistence:&nbsp;</label>
<label for="inputNoiseHumidityPersistence">Persistence:</label>
<input id="inputNoiseHumidityPersistence" class="numInput" type="number" value="0.5" step=0.01>
<input id="inputNoiseHumidityAbsvalue" type="checkbox">
<label for="inputNoiseHumidityAbsvalue">absvalue</label>
<input id="inputNoiseHumidityAbsvalue" type="checkbox"><label for="inputNoiseHumidityAbsvalue">absvalue</label>
<h3>Reset</h3>
<button id="inputNoiseReset" type="button">Reset noise parameters</button>