+
+
+ {data.cover ? (
+ <>
+ {data.cover.endsWith('.svg') ? (
+

+ ) : (
+
+ )}
+ >
+ ) : (
+
+ )}
+
+
{data.title}
- {data.cover ? (
- <>
- {data.cover.endsWith('.svg') ? (
-

- ) : (
-
- )}
- >
- ) : (
-
- )}
))
diff --git a/src/components/MainNavigation.astro b/src/components/MainNavigation.astro
index 0c0489a..ed71f10 100644
--- a/src/components/MainNavigation.astro
+++ b/src/components/MainNavigation.astro
@@ -14,7 +14,7 @@ import navigation from '../data/navigation.json';
navigation.map(({ title, url }) => (
{title}
diff --git a/src/components/MoreLink.astro b/src/components/MoreLink.astro
index 1db9f32..3ad1f9e 100644
--- a/src/components/MoreLink.astro
+++ b/src/components/MoreLink.astro
@@ -17,7 +17,7 @@ const { href, text, ...props } = Astro.props;
diff --git a/src/components/RSSLink.astro b/src/components/RSSLink.astro
index 6d908a4..b99c7e4 100644
--- a/src/components/RSSLink.astro
+++ b/src/components/RSSLink.astro
@@ -9,7 +9,7 @@ import { Link, Subsubheadline } from '.';
diff --git a/src/components/Subnavigation.astro b/src/components/Subnavigation.astro
index 00367e5..3a916ea 100644
--- a/src/components/Subnavigation.astro
+++ b/src/components/Subnavigation.astro
@@ -11,7 +11,7 @@ import { Link } from '.';
{title}
@@ -25,7 +25,7 @@ import { Link } from '.';
{title}
diff --git a/src/components/Tag.tsx b/src/components/Tag.tsx
index 2f03694..05f585e 100644
--- a/src/components/Tag.tsx
+++ b/src/components/Tag.tsx
@@ -21,7 +21,7 @@ export const Tag: FunctionalComponent = ({
const classes = cx(
'capitalize border-3 relative inline-flex items-center justify-center rounded-25 border-2 border-shibui-350 bg-shibui-200 px-3 py-1 text-1 font-normal leading-none text-black mie-1 pbs-3 dark:border-shibui-750 dark:bg-shibui-950 dark:text-white min-w-[50px] print:hidden',
{
- '!bg-shibui-500 !text-white hover:!bg-shibui-700 dark:!border-shibui-500 dark:!bg-shibui-700 hover:dark:!bg-shibui-400':
+ '!bg-shibui-500 !text-white hover:!bg-shibui-700 focus:!bg-shibui-700 dark:!border-shibui-500 dark:!bg-shibui-700 hover:dark:!bg-shibui-400 focus:dark:!bg-shibui-400':
href,
'active [&.active]:!border-black/25 !text-white [&.active]:!bg-accent': active,
},
diff --git a/src/styles/global.css b/src/styles/global.css
index d7d25a2..744794e 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -163,6 +163,11 @@
img.image-no-border {
@apply border-0 bg-transparent shadow-none;
}
+
+ /** Swup */
+ main[tabindex='-1'] {
+ outline: none;
+ }
}
@layer components {
@@ -187,21 +192,36 @@
}
}
- .journal-card {
- @apply relative col-span-2 row-span-3 inline-block overflow-hidden rounded-4 border-1 border-black/25 hover:scale-105 dark:border-white/25 md:row-span-5;
+ .journal-card,
+ .journal-card-link {
+ @apply relative col-span-2 row-span-3 inline-block overflow-hidden rounded-4 border-1 border-black/25 outline outline-2 outline-offset-2 outline-transparent hover:scale-105 focus:scale-105 dark:border-white/25 md:row-span-5;
+ }
- & img,
- & picture {
- @apply !h-full w-full object-cover;
- }
+ .journal-card-link {
+ @apply relative block h-full w-full focus:scale-100;
+ }
- & img {
- @apply !h-full scale-100 blur-0 brightness-[80%] filter transition duration-300 ease-in-out dark:brightness-[50%];
- }
+ .journal-card:focus-within {
+ @apply outline-current;
+ }
- &:hover img {
- @apply scale-105 blur-sm brightness-[100%] dark:brightness-[70%];
- }
+ .journal-card img,
+ .journal-card picture,
+ .journal-card-link img,
+ .journal-card-link picture {
+ @apply !h-full w-full object-cover;
+ }
+
+ .journal-card img,
+ .journal-card-link img {
+ @apply !h-full scale-100 blur-0 brightness-[80%] filter transition duration-300 ease-in-out dark:brightness-[50%];
+ }
+
+ .journal-card:hover img,
+ .journal-card:focus img,
+ .journal-card-link:hover img,
+ .journal-card-link:focus img {
+ @apply scale-105 blur-sm brightness-[100%] dark:brightness-[70%];
}
/** YouTube Lite */