fix: global styles fix

This commit is contained in:
2024-04-14 00:09:52 +02:00
parent 75e34d9f75
commit e72b73ccf0
2 changed files with 28 additions and 5 deletions
+26 -4
View File
@@ -12,19 +12,19 @@
{{ $t('stockgen.properties-desc') }} {{ $t('stockgen.properties-desc') }}
</b> </b>
<div class="tab_attributes"> <div class="inputs">
<label> <label>
{{ $t('stockgen.input-mass') }} <span>{{ $t('stockgen.input-mass') }}</span>
<input type="number" v-model="maxTons" step="100" max="4000" min="0" /> <input type="number" v-model="maxTons" step="100" max="4000" min="0" />
</label> </label>
<label> <label>
{{ $t('stockgen.input-length') }} <span>{{ $t('stockgen.input-length') }}</span>
<input type="number" v-model="maxLength" step="25" max="650" min="0" /> <input type="number" v-model="maxLength" step="25" max="650" min="0" />
</label> </label>
<label> <label>
{{ $t('stockgen.input-carcount') }} <span>{{ $t('stockgen.input-carcount') }}</span>
<input type="number" v-model="maxCarCount" step="1" max="60" min="1" /> <input type="number" v-model="maxCarCount" step="1" max="60" min="1" />
</label> </label>
</div> </div>
@@ -368,6 +368,28 @@ h2 {
gap: 1em; gap: 1em;
} }
.inputs {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
flex-wrap: wrap;
gap: 0.5em;
}
.inputs > label {
display: flex;
flex-direction: column;
gap: 0.25em;
span {
color: #ccc;
}
input[type='text'] {
background-color: white;
}
}
.generator_options { .generator_options {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
+2 -1
View File
@@ -7,7 +7,7 @@ $secondaryColor: #1b1b1b;
$accentColor: #e4c428; $accentColor: #e4c428;
$sponsorColor: salmon; $sponsorColor: salmon;
$teamColor: gold; $teamColor: #ff4848;
@font-face { @font-face {
font-family: 'Lato'; font-family: 'Lato';
@@ -210,6 +210,7 @@ input[type='number'] {
outline: none; outline: none;
padding: 0.25em 0.35em; padding: 0.25em 0.35em;
height: 100%;
color: white; color: white;
font-size: 1em; font-size: 1em;