Show validation errors

This commit is contained in:
Misode
2020-06-16 15:37:01 +02:00
parent 2d29de7903
commit 8cbb5fc776
6 changed files with 119 additions and 6 deletions

View File

@@ -67,7 +67,8 @@
border-bottom-left-radius: 3px;
}
.node-header > *:last-child {
.node-header > *:last-child,
.node-header[data-error] > *:nth-last-child(2) {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
@@ -120,6 +121,13 @@ button.remove::before {
content: url('./images/trash.svg');
}
.node-header[data-error] > svg {
border: none;
height: 34px;
width: 34px;
padding: 6px;
}
.node-body {
display: flex;
flex-direction: column;
@@ -175,6 +183,10 @@ button.remove {
background-color: #e76f51;
}
.node-header[data-error] > svg {
fill: #e76f51;
}
.node-body {
border-color: #b9b9b9 !important;
transition: border-color var(--style-transition);
@@ -239,6 +251,10 @@ body[data-style=dark] button.remove {
background-color: #b64023;
}
body[data-style=dark] .node-header[data-error] > svg {
fill: #b64023;
}
body[data-style=dark] .node-body {
border-color: #454749 !important;
}