Skip to content

Commit 107f104

Browse files
committed
docs(css[structure]): move view transitions section after image rules
why: The view transitions block was inserted between the "Image layout shift prevention" section header and its rules, orphaning the comment. what: - Move view transitions comment + rules to end of file - Keep image section header contiguous with its img/badge rules
1 parent b733808 commit 107f104

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

β€Ždocs/_static/css/custom.cssβ€Ž

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,6 @@ article {
198198
* content-visibility and badge-specific height to prevent CLS.
199199
* ────────────────────────────────────────────────────────── */
200200

201-
/* ── View Transitions (SPA navigation) ────────────────────
202-
* Crossfade between pages during SPA navigation.
203-
* Browsers without View Transitions API get instant swap.
204-
* ────────────────────────────────────────────────────────── */
205-
::view-transition-old(root),
206-
::view-transition-new(root) {
207-
animation-duration: 150ms;
208-
}
209-
210201
img {
211202
content-visibility: auto;
212203
}
@@ -244,3 +235,12 @@ img[src*="codecov.io"] {
244235
border-radius: 3px;
245236
background: var(--color-background-secondary);
246237
}
238+
239+
/* ── View Transitions (SPA navigation) ────────────────────
240+
* Crossfade between pages during SPA navigation.
241+
* Browsers without View Transitions API get instant swap.
242+
* ────────────────────────────────────────────────────────── */
243+
::view-transition-old(root),
244+
::view-transition-new(root) {
245+
animation-duration: 150ms;
246+
}

0 commit comments

Comments
Β (0)