moved basic talent properties in talent-sheet head

- a little bit better gridding of side-properties
  (still needs a rewrite)
- common SCSS mixin for input field marking
This commit is contained in:
Gesina Schwalbe 2021-01-06 15:25:55 +01:00
parent 3ba5efb8a7
commit 874692ed5c
5 changed files with 33 additions and 19 deletions

View file

@ -1,13 +1,20 @@
.basic-properties {
flex: 0 0 100%;
.basic-property {
.basic-property-label {
display: grid;
align-content: end;
.basic-property-label,
& > label {
font-weight: bold;
}
.basic-property-select {
.basic-property-select,
& > select {
display: block;
width: 100%;
}
@include mark-invalid-or-disabled-input;
}
}

View file

@ -9,7 +9,7 @@
.side-property {
margin: 2px 0;
display: grid;
grid-template-columns: 40% auto;
grid-template-columns: minmax(30%, auto) auto;
justify-content: left;
label {
@ -22,12 +22,9 @@
text-align: left;
width: calc(100% - 2px);
}
input:invalid {
background-color: $c-invalid-input;
}
input:disabled {
background-color: transparent;
}
@include mark-invalid-or-disabled-input;
input[type="checkbox"] {
width: auto;
height: 100%;

View file

@ -39,9 +39,8 @@
height: 100%;
margin: 0px;
}
input:invalid {
background-color: $c-invalid-input;
}
@include mark-invalid-or-disabled-input;
}
.item-name {

View file

@ -19,3 +19,12 @@
display: grid;
place-items: center;
}
@mixin mark-invalid-or-disabled-input {
input:invalid {
background-color: $c-invalid-input;
}
input:disabled {
background-color: transparent;
}
}