Fixed weird hovering issues
Some checks failed
/ get-version (push) Successful in 2s
/ astro-check (push) Successful in 13s
/ checking (push) Has been skipped
/ build-site (push) Has been skipped
/ create-release (push) Has been skipped
/ check-tag (push) Failing after 3s

This commit is contained in:
Firq 2024-07-20 16:34:21 +02:00
parent e4b0b87e9f
commit 45fd654ef1
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
3 changed files with 10 additions and 3 deletions

View file

@ -25,7 +25,7 @@ const loadedLogoImage = plsLoadImage(images_logos, imagePath)
aria-label=`${site} - new window`
>
<article class="contact do-hover">
<Image src={loadedLogoImage} alt={logoAltText} />
<Image src={loadedLogoImage} alt={logoAltText} loading={'eager'}/>
<div>
<h2>{site}</h2>
</div>
@ -63,6 +63,7 @@ const loadedLogoImage = plsLoadImage(images_logos, imagePath)
article:hover div {
border-radius: 1.25rem;
padding: 0 0.5rem;
margin: unset;
display: flex;
align-items: center;
justify-content: center;
@ -71,6 +72,9 @@ const loadedLogoImage = plsLoadImage(images_logos, imagePath)
height: calc(var(--size-value));
width: calc(var(--size-value) - 1rem);
opacity: 90%;
border-style: solid;
border-width: 10px;
border-color: var(--c-darkgray);
z-index: 100;
position: absolute;
}

View file

@ -25,7 +25,7 @@ const loadedImage = plsLoadImage(images, imagePath)
aria-label=`${name} - new window`
>
<div class="heading">{name}</div>
<Image src={loadedImage} alt={name} />
<Image src={loadedImage} alt={name} loading={'eager'}/>
<h2 class="subtext">
{origin}
</h2>

View file

@ -20,7 +20,7 @@ const loadedImage = plsLoadImage(images_logos, imagePath)
<a href={link} target="_blank" rel="noopener noreferrer" aria-label={title}>
<article>
<Image src={loadedImage} alt={logoAltText} />
<Image src={loadedImage} alt={logoAltText} loading={'eager'}/>
<div>
<h2>{title}</h2>
</div>
@ -70,6 +70,9 @@ const loadedImage = plsLoadImage(images_logos, imagePath)
opacity: 90%;
z-index: 100;
position: absolute;
border-style: solid;
border-width: 10px;
border-color: var(--c-darkgray);
}
article:hover h2 {