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

84 lines
1.2 KiB
CSS

form, fieldset {
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;
}
fieldset, p, trix-editor, hr {
grid-column: 1/3;
}
trix-editor {
background-color: var(--input-background);
}
}
form.stat-form {
display: flex;
flex-direction: column;
}
.feature-box trix-toolbar {
display: block;
}
.feature-box form.stat-form, .feature-box form.text-field-form {
display: block;
margin: 1em auto;
width: fit-content;
text-align: center;
}
.feature-box form.text-field-form {
width: 100%;
.trix-content, .trix-editor {
width: 100%;
max-width: 100%;
margin-bottom: 1em;
}
}
.inline {
display: flex;
padding: .5em;
align-items: center;
label {
min-width: fit-content;
}
input {
padding: .2em;
height: auto;
min-width: 5em;
font-size: 1em;
}
}