|
|
|
.formContainer > *:first-child {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formContainer > * {
|
|
|
|
display: block;
|
|
|
|
align-items: center;
|
|
|
|
width: 400px;
|
|
|
|
max-width: 80vw;
|
|
|
|
margin: 10px auto;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formElementContainer label {
|
|
|
|
width: 150px;
|
|
|
|
display: block;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formElementContainer input {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formElementContainer input, .formElementContainer .complexInput {
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
min-width: 0;
|
|
|
|
border: solid 1px rgba(0,0,0,.2);
|
|
|
|
border-radius: 2px;
|
|
|
|
transition-property: border-color,box-shadow;
|
|
|
|
transition: .2s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.dark) .formElementContainer input, :global(.dark) .formElementContainer .complexInput {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.complexInput {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.complexInput > button {
|
|
|
|
width: 38px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.complexInput > input {
|
|
|
|
flex: 1;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formElementContainer span.hint {
|
|
|
|
display: block;
|
|
|
|
margin-top: 8px;
|
|
|
|
color: var(--error-color);
|
|
|
|
opacity: 0;
|
|
|
|
transition: .2s opacity;
|
|
|
|
user-select: none;
|
|
|
|
height: 18.5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formElementContainer .invalid {
|
|
|
|
border: solid 1px var(--error-color);
|
|
|
|
box-shadow: var(--error-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.formElementContainer .invalid + span.hint {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formElementContainer button {
|
|
|
|
min-height: 20px;
|
|
|
|
background: rgb(156, 39, 176);
|
|
|
|
color: white;
|
|
|
|
padding: 10px 0;
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
|
|
|
transition-property: opacity filter;
|
|
|
|
transition-duration: .2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formElementContainer > button {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formElementContainer button[type="submit"] {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formElementContainer button[disabled] {
|
|
|
|
opacity: .4;
|
|
|
|
filter: saturate(.2);
|
|
|
|
}
|