added custom properties for focus outline and use it on <input>

This commit is contained in:
westtle 2024-02-05 20:07:47 +07:00
parent 4518326972
commit dbd81abecb

View file

@ -40,6 +40,9 @@
--color-1: var(--black), 80%;
--color-2: var(--white);
--color-3: var(--boulder), 80%; /* Placeholder and Icons */
/* Other */
--focus-1: 0.125rem solid hsl(var(--color-1));
}
*,
@ -111,6 +114,8 @@ body {
.simple-note__input { padding: 0.5625rem 0.75rem; }
.simple-note__input:focus-visible { outline: var(--focus-1); }
.simple-note__input--title {
font-family: var(--font-2);
font-size: 1.5rem;