added invalidity hints to item side-properties

- added :invalid definition to side-properties CSS
-  defined common color for invalidity
- now using disabled input for automatically calculated properties
This commit is contained in:
Gesina Schwalbe 2021-01-06 11:39:39 +01:00
parent 150a0ea487
commit 637b70c5d2
6 changed files with 22 additions and 7 deletions

View file

@ -22,7 +22,12 @@
text-align: left;
width: calc(100% - 2px);
}
input:invalid {
background-color: $c-invalid-input;
}
input:disabled {
background-color: transparent;
}
input[type="checkbox"] {
width: auto;
height: 100%;

View file

@ -31,6 +31,7 @@
input {
border: 0;
padding: 0;
background-color: transparent;
}
input[type="checkbox"] {
@ -38,6 +39,9 @@
height: 100%;
margin: 0px;
}
input:invalid {
background-color: $c-invalid-input;
}
}
.item-name {
@ -54,9 +58,6 @@
width: 2.5em;
padding: 0;
}
.item-num-val:invalid {
background-color: color.mix(lightcoral, $c-light-grey, 25%);
}
.item-description {
font-size: 75%;

View file

@ -2,3 +2,4 @@ $c-white: #fff;
$c-black: #000;
$c-light-grey: #777;
$c-border-groove: #eeede0;
$c-invalid-input: rgba(lightcoral, 50%);