style: add hover styles to focus

This commit is contained in:
Ben Goldsworthy 2025-05-09 18:47:23 +02:00
parent f1c9fa5622
commit 1a61aeade0
No known key found for this signature in database
5 changed files with 27 additions and 18 deletions

View file

@ -97,6 +97,11 @@ a {
text-decoration: none;
opacity: 1;
}
&:focus {
text-decoration-style: double;
opacity: 1;
}
}
::selection {

View file

@ -1,17 +1,18 @@
.label--button {
cursor: pointer;
display: block;
inline-size: fit-content;
margin-inline: auto;
cursor: pointer;
display: block;
inline-size: fit-content;
margin-inline: auto;
}
.button {
border: 2px solid $dark;
background-color: $light;
padding: 0.4em 1em;
cursor: pointer;
border: 2px solid $dark;
background-color: $light;
padding: 0.4em 1em;
cursor: pointer;
&:hover {
box-shadow: 2px 2px gray;
}
&:hover,
&:focus {
box-shadow: 2px 2px gray;
}
}

View file

@ -3,7 +3,8 @@
box-sizing: border-box;
border: 2px solid transparent;
&:hover {
&:hover,
&:focus {
border-color: $dark;
& .item-tile__title-wrapper {

View file

@ -4,10 +4,10 @@
grid-gap: 0;
grid-template-columns: 1fr;
grid-template-rows: auto auto auto auto;
grid-template-areas:
"header-title"
"header-tagline"
"header-icons"
grid-template-areas:
"header-title"
"header-tagline"
"header-icons"
"header-nav";
inset-block-start: 0;
inset-inline-start: 0;
@ -66,7 +66,8 @@
padding: 0.4em;
background-color: inherit;
&:hover {
&:hover,
&:focus {
background-color: #ffffd0;
}

View file

@ -9,7 +9,8 @@
color: $light;
border-color: $light;
&:hover {
&:hover,
&:focus {
background-color: $dark;
}
}