Skip to content

Commit

Permalink
feat: hover, focus, and active style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Jun 21, 2023
1 parent 2f87ced commit c9c8b12
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
36 changes: 31 additions & 5 deletions src/assets/styles/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,39 @@ a {
text-decoration: underline;
}

a:hover,
a:focus {
background: var(--fl-linkColor, var(--accent, var(--yellow-500)));
color: var(--fl-bgColor, currentColor);
outline: none;
main,
footer {
a {
border-radius: 5px;
}

a:hover,
a:focus,
a:active {
outline-style: solid;
outline-width: 4px;
}

a:hover {
color: var(--fl-bgColor, currentColor);
background: var(--fl-linkColor, var(--accent, var(--yellow-500))) !important;
outline-color: var(--fl-linkColor, var(--accent, var(--yellow-500)));
}

a:focus {
outline-color: var(--fl-linkColor, var(--indigo-800));
outline-offset: 2px;
outline-width: 2px;
}

a:active {
color: var(--fl-bgColor, var(--white));
background: var(--fl-linkColor, var(--indigo-800));
outline-color: var(--fl-linkColor, var(--indigo-800));
}
}


a[hreflang],
a[download],
a[rel='external'] {
Expand Down
4 changes: 4 additions & 0 deletions src/assets/styles/pages/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
}
}

#what-is-inclusive-design + * {
z-index: 1;
}

.page--home .entry + .entry {
margin-top: rem(24);
}
Expand Down

0 comments on commit c9c8b12

Please sign in to comment.