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 {
5
5
// interface PageData {}
6
6
// interface Platform {}
7
7
}
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
- }
20
8
}
21
9
22
10
export { } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
22
{#if ! post .draft }
23
23
<article class ="post" data-pubdate ={post .date }>
24
24
<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 >
27
27
</a >
28
28
</article >
29
29
{/if }
49
49
font-weight : 400 ;
50
50
}
51
51
52
- @media (prefers-reduced-motion: no-preference) {
53
- h2 ,
54
- .description {
55
- view-transition-name : var (--name );
56
- }
57
- }
58
-
59
52
.post :first-child {
60
53
margin : 0 0 2rem 0 ;
61
54
padding : 0 0 4rem 0 ;
Original file line number Diff line number Diff line change 20
20
</svelte:head >
21
21
22
22
<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 >
27
25
28
26
<p class =" byline" >
29
27
<a href ={data .post .author .url }>{data .post .author .name }</a >
54
52
margin : 0 0 1em 0 ;
55
53
}
56
54
57
- @media (prefers-reduced-motion: no-preference) {
58
- h1 ,
59
- .standfirst {
60
- view-transition-name : var (--name );
61
- }
62
- }
63
-
64
55
.byline {
65
56
margin : 0 0 6rem 0 ;
66
57
padding : 1.6rem 0 0 0 ;
You can’t perform that action at this time.
0 commit comments