Skip to content

Commit

Permalink
Changed error style
Browse files Browse the repository at this point in the history
  • Loading branch information
KinuTheDragon committed Feb 12, 2024
1 parent 06149b3 commit f97906c
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
--background: #111;
--header: #444;
--result: #0f0;
--error: #f80;
--error-passive: #ff880088;
--error: #c00;
--error-bg: #22222288;
}

body {
Expand Down Expand Up @@ -52,19 +52,12 @@ input {
display: grid;
grid-template-rows: repeat(2, auto);
border-radius: 5%;
}

@keyframes error {
0% {background-color: var(--error-passive);}
90% {background-color: var(--error-passive);}
100% {background-color: var(--error);}
border: 3px solid transparent;
}

.robot.error {
animation-name: error;
animation-duration: 1.5s;
animation-direction: alternate;
animation-iteration-count: infinite;
border: 3px solid var(--error);
background-color: var(--error-bg);
}

.data-input {
Expand Down

0 comments on commit f97906c

Please sign in to comment.