some minor improvements to side-properties style

- checkboxes now properly left-aligned
- adaptive width of side-properties: take minimum width now
- side properties are aligned now in any case (each is a grid)
This commit is contained in:
Gesina Schwalbe 2021-01-01 21:21:22 +01:00
parent 88f821c7aa
commit 0e282b4c6e

View file

@ -1,16 +1,18 @@
.side-properties { .side-properties {
flex: 0 0 50%; flex: 0;
min-width: fit-content;
max-width: 50%;
margin: 5px 5px 5px 0; margin: 5px 5px 5px 0;
padding-right: 5px; padding-right: 5px;
border-right: 2px groove $c-border-groove; border-right: 2px groove $c-border-groove;
.side-property { .side-property {
margin: 2px 0; margin: 2px 0;
display: flex; display: grid;
flex-direction: row; grid-template-columns: 40% auto;
justify-content: left;
label { label {
flex: 1;
line-height: 26px; line-height: 26px;
font-weight: bold; font-weight: bold;
} }
@ -18,9 +20,14 @@
input, input,
select { select {
text-align: left; text-align: left;
flex: 1.5 1.5 0px;
width: calc(100% - 2px); width: calc(100% - 2px);
} }
input[type="checkbox"] {
width: auto;
height: 100%;
margin: 0px;
}
} }
} }