more robust form layout
This commit is contained in:
parent
ad0c34a84d
commit
a5ca9d8cbe
@ -8,8 +8,8 @@ form {
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, minmax(150px, max-content));
|
grid-template-columns: 25% 300px;
|
||||||
grid-auto-columns: minmax(150px, max-content);
|
grid-auto-columns: 25%;
|
||||||
grid-gap: 5px;
|
grid-gap: 5px;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -30,6 +30,11 @@ form {
|
|||||||
border-left: 8px solid var(--errorbase) !important;
|
border-left: 8px solid var(--errorbase) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-group__label {
|
||||||
|
width: 25%;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 999px) {
|
@media (max-width: 999px) {
|
||||||
.form-group {
|
.form-group {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
@ -37,9 +42,9 @@ form {
|
|||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
margin-top: 17px;
|
margin-top: 17px;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
> * {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group__label {
|
|
||||||
width: 25%;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user