{translation.name}
{/* ------------------------------------------- CSS -------------------------------------------- */} @@ -39,12 +40,30 @@ switch (parentPage.collection) { a { display: flex; place-items: center; + gap: 0.5em; - & > span { - background-color: var(--color-base-250); + & > p { + text-decoration: underline dotted 0.1em; + text-decoration-color: transparent; + + transition-duration: 150ms; + transition-property: text-decoration-color, color; + } + + &:hover > p { + color: var(--color-base-750); + text-decoration-color: var(--color-base-650); + } + + &:active > p { + color: var(--color-base-650); + text-decoration-color: var(--color-base-550); + } + + & > div { + background-color: var(--color-base-300); border-radius: 9999px; padding: 0.5em 0.6em; - margin-right: 0.5em; font-size: 80%; } } diff --git a/src/components/AppLayout/components/Topbar/components/ParentPagesButton.astro b/src/components/AppLayout/components/Topbar/components/ParentPagesButton.astro index 74fae03..3e52b9e 100644 --- a/src/components/AppLayout/components/Topbar/components/ParentPagesButton.astro +++ b/src/components/AppLayout/components/Topbar/components/ParentPagesButton.astro @@ -4,6 +4,7 @@ import type { ParentPage } from "src/shared/payload/payload-sdk"; import ParentPageLink from "./ParentPageLink.astro"; import { Icon } from "astro-icon/components"; import { getI18n } from "src/i18n/i18n"; +import ReturnToButton from "./ReturnToButton.astro"; interface Props { parentPages: ParentPage[]; @@ -16,23 +17,29 @@ const { t } = await getI18n(Astro.locals.currentLocale); {/* ------------------------------------------- HTML ------------------------------------------- */} -This content is part of these pages:
- {parentPages.map((parentPage) =>- { - t("header.nav.parentPages.label", { - count: parentPages.length, - }) - } -
-{t("header.nav.parentPages.tooltip")}
+ {parentPages.map((parentPage) => ( ++ {t("header.nav.parentPages.label", { + count: parentPages.length, + })} +
++ {collectionLabel} + {translation.name} +
+