Add "wide" class for form inputs
This commit is contained in:
parent
d1371ace02
commit
965cedf5a2
3 changed files with 14 additions and 20 deletions
|
|
@ -23,8 +23,11 @@ function submit() {
|
||||||
<template>
|
<template>
|
||||||
<form ref="form" @submit.prevent="submit">
|
<form ref="form" @submit.prevent="submit">
|
||||||
<h2>Calendar</h2>
|
<h2>Calendar</h2>
|
||||||
<label>Year: <input v-model="year" type="number" /></label>
|
<label class="wide">
|
||||||
<label>
|
Year:
|
||||||
|
<input v-model="year" type="number" />
|
||||||
|
</label>
|
||||||
|
<label class="wide">
|
||||||
Month:
|
Month:
|
||||||
<input v-model="month" type="number" min="1" max="12" />
|
<input v-model="month" type="number" min="1" max="12" />
|
||||||
</label>
|
</label>
|
||||||
|
|
@ -41,14 +44,8 @@ form {
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="number"] {
|
.wide {
|
||||||
box-sizing: border-box;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
fieldset {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
border: none;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ function submit() {
|
||||||
d="M0,0 C1,0,2,2,2,3.5 S1,6,0,6 S-2,5,-2,3.5 S-1,0,0,0"
|
d="M0,0 C1,0,2,2,2,3.5 S1,6,0,6 S-2,5,-2,3.5 S-1,0,0,0"
|
||||||
/>
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
<label>
|
<label class="wide">
|
||||||
Seed:
|
Seed:
|
||||||
<input
|
<input
|
||||||
v-model="seed"
|
v-model="seed"
|
||||||
|
|
@ -39,7 +39,7 @@ function submit() {
|
||||||
placeholder="random"
|
placeholder="random"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label class="wide">
|
||||||
Mode:
|
Mode:
|
||||||
<select v-model="mode">
|
<select v-model="mode">
|
||||||
<option value="random">Random</option>
|
<option value="random">Random</option>
|
||||||
|
|
@ -60,19 +60,13 @@ form {
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="number"] {
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset {
|
.wide {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
border: none;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ function submit() {
|
||||||
:disabled
|
:disabled
|
||||||
@keypress="textareaKeypress"
|
@keypress="textareaKeypress"
|
||||||
></textarea>
|
></textarea>
|
||||||
<fieldset>
|
<fieldset class="wide">
|
||||||
<label>
|
<label>
|
||||||
<input v-model="forceWrap" type="checkbox" :disabled />
|
<input v-model="forceWrap" type="checkbox" :disabled />
|
||||||
Force-Wrap
|
Force-Wrap
|
||||||
|
|
@ -71,9 +71,12 @@ textarea {
|
||||||
max-width: fit-content;
|
max-width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset {
|
.wide {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldset {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue