diff --git a/src/components/AppLayout/components/Footer.astro b/src/components/AppLayout/components/Footer.astro index c32ea9d..491d836 100644 --- a/src/components/AppLayout/components/Footer.astro +++ b/src/components/AppLayout/components/Footer.astro @@ -32,35 +32,35 @@ const contactLabel = `${t("footer.socials.contact.title")} - ${t( -
+
+ ) } diff --git a/src/components/AppLayout/components/Topbar/components/ReturnToButton.astro b/src/components/AppLayout/components/Topbar/components/ReturnToButton.astro index 92a4cb2..454a03f 100644 --- a/src/components/AppLayout/components/Topbar/components/ReturnToButton.astro +++ b/src/components/AppLayout/components/Topbar/components/ReturnToButton.astro @@ -21,20 +21,18 @@ const { {/* ------------------------------------------- HTML ------------------------------------------- */} - -
- -

- {typeLabel} - {label} -

-
+
+ +

+ {typeLabel} + {label} +

{/* ------------------------------------------- CSS -------------------------------------------- */} diff --git a/src/components/RichText/components/RTUpload/components/OpenMediaPageButton.astro b/src/components/RichText/components/RTUpload/components/OpenMediaPageButton.astro index 8ecc068..1cd8a8f 100644 --- a/src/components/RichText/components/RTUpload/components/OpenMediaPageButton.astro +++ b/src/components/RichText/components/RTUpload/components/OpenMediaPageButton.astro @@ -12,12 +12,10 @@ const { t } = await getI18n(Astro.locals.currentLocale); {/* ------------------------------------------- HTML ------------------------------------------- */} -
- -
- -

{t("global.openMediaPage")}

-
+
+ + +

{t("global.openMediaPage")}

@@ -30,9 +28,10 @@ const { t } = await getI18n(Astro.locals.currentLocale); gap: 0.3em; font-size: 85%; - & > a > div { + & > a { padding: 0.3em 0.6em; padding-right: 0.8em; + gap: 0.7em; } } diff --git a/src/components/RichText/components/RTUpload/components/RTImage.astro b/src/components/RichText/components/RTUpload/components/RTImage.astro index 86100c2..12e32c8 100644 --- a/src/components/RichText/components/RTUpload/components/RTImage.astro +++ b/src/components/RichText/components/RTUpload/components/RTImage.astro @@ -44,6 +44,7 @@ const mediaPage = getLocalizedUrl(`/images/${id}`); sizes={`(max-width: 550px) 90vw, 550px`} width={width} height={height} + loading="lazy" /> @@ -52,24 +53,34 @@ const mediaPage = getLocalizedUrl(`/images/${id}`); {/* ------------------------------------------- CSS -------------------------------------------- */} diff --git a/src/components/SourceRow.astro b/src/components/SourceRow.astro index cb4ef1d..a454b77 100644 --- a/src/components/SourceRow.astro +++ b/src/components/SourceRow.astro @@ -38,11 +38,21 @@ const { transition-property: text-decoration-color, color; } - &:hover > p { + border-radius: 16px; + padding: 2px 5px; + margin: -2px -5px; + + &:hover > p, + &:focus-visible > p { color: var(--color-base-750); text-decoration-color: var(--color-base-650); } + &:focus-visible { + outline: 2px solid var(--color-base-1000); + outline-offset: unset; + } + &:active > p { color: var(--color-base-650); text-decoration-color: var(--color-base-550); diff --git a/src/pages/[locale]/api/pages/partial.astro b/src/pages/[locale]/api/pages/partial.astro index 9690db9..62d483f 100644 --- a/src/pages/[locale]/api/pages/partial.astro +++ b/src/pages/[locale]/api/pages/partial.astro @@ -68,9 +68,8 @@ if (updatedBy) { { thumbnail && ( - + img { + max-width: min(35rem, 100%); + max-height: 80vh; + width: auto; + height: auto; + } @media (max-width: 1280.5px) { margin-top: 2em; @@ -182,8 +187,14 @@ if (updatedBy) { margin-bottom: 2em; } - &:hover { + &:hover, + &:focus-visible { scale: 102%; } + + &:focus-visible { + outline: 3px solid var(--color-base-1000); + outline-offset: unset; + } } diff --git a/src/pages/[locale]/collectibles/[slug]/_components/ImageTile.astro b/src/pages/[locale]/collectibles/[slug]/_components/ImageTile.astro index 3c4d61a..66c85c9 100644 --- a/src/pages/[locale]/collectibles/[slug]/_components/ImageTile.astro +++ b/src/pages/[locale]/collectibles/[slug]/_components/ImageTile.astro @@ -57,10 +57,16 @@ const { transition: 100ms scale; - &:hover { + &:hover, + &:focus-visible { scale: 105%; } + &:focus-visible { + outline: 3px solid var(--color-base-1000); + outline-offset: unset; + } + & > div { text-align: center; backdrop-filter: blur(5px); diff --git a/src/pages/[locale]/collectibles/[slug]/index.astro b/src/pages/[locale]/collectibles/[slug]/index.astro index 114ae2a..1bcd8dd 100644 --- a/src/pages/[locale]/collectibles/[slug]/index.astro +++ b/src/pages/[locale]/collectibles/[slug]/index.astro @@ -256,6 +256,17 @@ if (price) { & a { width: fit-content; + transition: 100ms scale; + + &:hover, + &:focus-visible { + scale: 102%; + } + + &:focus-visible { + outline: 3px solid var(--color-base-1000); + outline-offset: unset; + } & > #thumbnail { max-width: min(35rem, 100%); @@ -263,11 +274,6 @@ if (price) { width: auto; height: auto; box-shadow: 0 5px 20px -10px var(--color-shadow); - transition: 100ms scale; - - &:hover { - scale: 102%; - } } } diff --git a/src/pages/[locale]/folders/[slug].astro b/src/pages/[locale]/folders/[slug].astro index 992727a..93e232b 100644 --- a/src/pages/[locale]/folders/[slug].astro +++ b/src/pages/[locale]/folders/[slug].astro @@ -111,6 +111,7 @@ const meta = getLocalizedMatch(folder.translations); display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(6px, 2vmin, 16px); + align-items: start; } }