feat: add view transition CSS rule

This commit is contained in:
madrilene 2025-11-05 13:31:24 +01:00
parent 04ec6b61c6
commit 236bc76d12
2 changed files with 5 additions and 2 deletions

View file

@ -20,8 +20,6 @@
<meta name="format-detection" content="telephone=no" /> <meta name="format-detection" content="telephone=no" />
<!-- supports both dark and light color schemes, page author prefers light as default. --> <!-- supports both dark and light color schemes, page author prefers light as default. -->
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
<!-- activates page transitions -->
<meta name="view-transition" content="same-origin" />
<!-- Helps prevent duplicate content issues --> <!-- Helps prevent duplicate content issues -->
<link rel="canonical" href="{{ meta.url }}{{ page.url }}" /> <link rel="canonical" href="{{ meta.url }}{{ page.url }}" />
<!-- Links to information about the author(s) of the document --> <!-- Links to information about the author(s) of the document -->

View file

@ -151,3 +151,8 @@ html:has(dialog[open]:modal) {
transition-duration: 0.01ms !important; transition-duration: 0.01ms !important;
} }
} }
/* View transition */
@view-transition {
navigation: auto;
}