Spirit
Spirit copied to clipboard
What is the easiest way to put multiple fields on a form on the same line?
- Does I need to override _form.html?
- Can this be done with just css?
Any pointers appreciated.
That's not so fresh in my mind. The css is all css grids and flexbox, so it should be doable with just css.
This override seems to do something in the login form:
.login form {
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 100%;
}
.login .field {
padding-right: 10px;
width: 50%;
}
I restricted it to the login class because I have no idea if it may break some other forms (like the topic comment box).
The css is written using Sass, so unless you want to modify the actual source code (scss files) and recompile them as a single css file, you are better off just adding your own css with all the overrides you want.