mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-25 08:06:51 +00:00
Show validation errors
This commit is contained in:
@@ -111,6 +111,7 @@ body {
|
||||
-o-tab-size: 4;
|
||||
-webkit-tab-size: 4;
|
||||
outline: none;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
.source-controls {
|
||||
@@ -168,6 +169,41 @@ body {
|
||||
border-top-left-radius: 0px;
|
||||
}
|
||||
|
||||
.errors {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 17px;
|
||||
margin: 5px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.errors.hidden .error-list {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.error {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 7px;
|
||||
}
|
||||
|
||||
.error span {
|
||||
padding-left: 11px;
|
||||
}
|
||||
|
||||
.errors .toggle {
|
||||
padding: 2px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
align-self: flex-end;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.errors .toggle.toggled {
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 580px) {
|
||||
body {
|
||||
overflow-y: hidden;
|
||||
@@ -293,6 +329,12 @@ body {
|
||||
background-color: #5d5f5fa6;
|
||||
}
|
||||
|
||||
.errors {
|
||||
background-color: #f13000c5;
|
||||
color: #000000cc;
|
||||
fill: #000000cc;
|
||||
}
|
||||
|
||||
/* DARK MODE */
|
||||
|
||||
body[data-style=dark] .container,
|
||||
@@ -350,3 +392,9 @@ body[data-style=dark] .btn.selected {
|
||||
body[data-style=dark] .btn:hover {
|
||||
background-color: #383838a6;
|
||||
}
|
||||
|
||||
body[data-style=dark] .errors {
|
||||
background-color: #f13000c5;
|
||||
color: #ffffffcc;
|
||||
fill: #ffffffcc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user