tabletop-companion/app/assets/stylesheets/forms.css

35 lines
488 B
CSS

form {
display: grid;
gap: 1rem;
grid-template-columns: 1fr 2fr;
input, label {
padding: .5em;
}
label {
grid-column: 1;
text-align: right;
}
input {
grid-column: 2;
}
input[type="submit"] {
grid-column: 1/3;
}
.field_with_errors {
display: contents;
border: 1px solid var(--invalid-alert);
color: var(--invalid-alert);
}
.invalid-feedback {
grid-column: 2;
color: var(--invalid-alert);
font-size: .8em;
}
}