File tree Expand file tree Collapse file tree 3 files changed +14
-17
lines changed
apps/svelte.dev/src/routes/blog Expand file tree Collapse file tree 3 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 7979 }
8080
8181 article {
82- margin : 2 em 0 ;
82+ margin : 0 0 4 rem 0 ;
8383
8484 /* we need to use :global because snippets don't currently cause a deopt */
8585 &.top {
122122
123123 .featured ,
124124 .feed {
125+ padding : 4rem 0 ;
126+ position : relative ;
127+
125128 &::before {
129+ position: absolute ;
130+ top : 0 ;
126131 font : var (--sk-font-ui-medium );
127132 text-transform : uppercase ;
128133 color : var (--sk-text-4 );
148153 }
149154
150155 .feed {
151- position : relative ;
152156 display : block ;
153- padding : 2em 0 ;
154157 margin : 0 ;
155158 list-style : none ;
156159
157160 &::before {
158161 content : ' Monthly updates' ;
159- position : absolute ;
160- top : 0 ;
161162 }
162163
163164 a {
Original file line number Diff line number Diff line change 2121
2222<style >
2323 .byline {
24- margin : 0 0 4rem 0 ;
2524 padding : 1rem 0 0 0 ;
2625 font : var (--sk-font-ui-small );
2726 text-transform : uppercase ;
Original file line number Diff line number Diff line change 2121 <meta name ="og:image" content ="https://svelte.dev/blog/ {$page .params .slug }/card.png" />
2222</svelte:head >
2323
24- <div class = " content " >
25- <article class = " post listify text " >
24+ <article >
25+ <header >
2626 <h1 >{data .metadata .title }</h1 >
2727 <p class ="standfirst" >{@html data .metadata .description }</p >
28-
2928 <Byline post ={data } />
29+ </header >
3030
31- <Text >
32- {@html data .body }
33- </Text >
34- </article >
35- </div >
31+ <Text >{@html data .body }</Text >
32+ </article >
3633
3734<style >
38- .post {
39- padding : var (--sk-page-padding-top ) var (--sk-page-padding-side );
35+ article {
36+ padding : var (--sk-page-padding-top ) var (--sk-page-padding-side ) var ( --sk-page-padding-bottom ) ;
4037 max-width : var (--sk-page-content-width );
4138 box-sizing : content-box ;
4239 margin : 0 auto ;
120117 }
121118
122119 @media (min-width : 960px ) {
123- .post :global {
120+ article :global {
124121 .max {
125122 width : 100vw ;
126123 /* padding: 0 var(--sk-page-padding-side); */
You can’t perform that action at this time.
0 commit comments