File tree Expand file tree Collapse file tree 4 files changed +4
-48
lines changed Expand file tree Collapse file tree 4 files changed +4
-48
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,6 @@ declare global {
55 // interface PageData {}
66 // interface Platform {}
77 }
8-
9- // add these lines
10- interface ViewTransition {
11- updateCallbackDone : Promise < void > ;
12- ready : Promise < void > ;
13- finished : Promise < void > ;
14- skipTransition : ( ) => void ;
15- }
16-
17- interface Document {
18- startViewTransition ( updateCallback : ( ) => Promise < void > ) : ViewTransition ;
19- }
208}
219
2210export { } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2222 {#if ! post .draft }
2323 <article class ="post" data-pubdate ={post .date }>
2424 <a class ="no-underline" href ="/blog/ {post .slug }" title =" Read the article »" >
25- <h2 style:--name = "post-title- { post . slug } " >{post .title }</h2 >
26- <p class = "description" style:--name = "post-description- { post . slug } " >{post .description }</p >
25+ <h2 >{post .title }</h2 >
26+ <p >{post .description }</p >
2727 </a >
2828 </article >
2929 {/if }
4949 font-weight : 400 ;
5050 }
5151
52- @media (prefers-reduced-motion: no-preference) {
53- h2 ,
54- .description {
55- view-transition-name : var (--name );
56- }
57- }
58-
5952 .post :first-child {
6053 margin : 0 0 2rem 0 ;
6154 padding : 0 0 4rem 0 ;
Original file line number Diff line number Diff line change 2020</svelte:head >
2121
2222<article class =" post listify text" >
23- <h1 style:--name ="post-title- {$page .params .slug }" >{data .post .title }</h1 >
24- <p class ="standfirst" style:--name ="post-description- {$page .params .slug }" >
25- {data .post .description }
26- </p >
23+ <h1 >{data .post .title }</h1 >
24+ <p class ="standfirst" >{data .post .description }</p >
2725
2826 <p class =" byline" >
2927 <a href ={data .post .author .url }>{data .post .author .name }</a >
5452 margin : 0 0 1em 0 ;
5553 }
5654
57- @media (prefers-reduced-motion: no-preference) {
58- h1 ,
59- .standfirst {
60- view-transition-name : var (--name );
61- }
62- }
63-
6455 .byline {
6556 margin : 0 0 6rem 0 ;
6657 padding : 1.6rem 0 0 0 ;
You can’t perform that action at this time.
0 commit comments