Skip to content
Snippets Groups Projects
Verified Commit 9fceb14a authored by Jake's avatar Jake :speech_balloon:
Browse files

added animated outline on focus

#33
parent d2c0f198
No related branches found
No related tags found
No related merge requests found
Pipeline #317752 passed
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
--header-menu-bg-color: rgb(240, 240, 240, 0.8); --header-menu-bg-color: rgb(240, 240, 240, 0.8);
--header-menu-hover-bg-color: #E6E6E6; --header-menu-hover-bg-color: #E6E6E6;
--header-menu-button-size: 3rem; --header-menu-button-size: 3rem;
--outline-color: #337AB7;
} }
* { * {
...@@ -655,9 +656,29 @@ ul.cards li a:hover { ...@@ -655,9 +656,29 @@ ul.cards li a:hover {
color:#843534; color:#843534;
} }
p {
[tabindex]:not([tabindex="-1"]):focus, a:focus, button:focus, input:focus, select:focus:focus, textarea:focus {
outline-color: var(--outline-color);
outline-offset: 0.125em;
} }
[tabindex]:not([tabindex="-1"]), a, button, input, select, textarea {
outline: transparent solid 2px;
outline-offset: 0.25em;
transition: outline-offset 0.2s linear 0s;
}
@keyframes makeopaque { @keyframes makeopaque {
from { from {
opacity: 0%; opacity: 0%;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment