diff --git a/src/css/layout/07-leave.css b/src/css/layout/07-leave.css index 82cdefa..5f1b54c 100644 --- a/src/css/layout/07-leave.css +++ b/src/css/layout/07-leave.css @@ -104,8 +104,8 @@ transition: border-color var(--transition-dur-and-func); } -.leave__form-input:hover, -.leave__form-input:focus { +.leave__form-input:not(.invalid):hover, +.leave__form-input:not(.invalid):focus { border-color: var(--color-green); } @@ -394,7 +394,4 @@ border-color: var(--color-invalid); } -.leave__form-input:not(.invalid):hover, -.leave__form-input:not(.invalid):focus { - border-color: var(--color-green); -} +