Skip to content

Commit 980b325

Browse files
authored
fix: Apps styles (#8797)
* Push * Remove reference to $types
1 parent 23fc113 commit 980b325

File tree

8 files changed

+6
-14
lines changed

8 files changed

+6
-14
lines changed

sites/svelte.dev/src/routes/(authed)/apps/+page.server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as gist from '$lib/db/gist';
22

3-
/** @type {import('./$types').PageServerLoad} */
43
export async function load({ url, parent }) {
54
let gists = [];
65
let next = null;

sites/svelte.dev/src/routes/(authed)/apps/+page.svelte

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import { ago } from '$lib/time';
55
import { goto, invalidateAll } from '$app/navigation';
66
7-
/** @type {import('./$types').PageData} */
87
export let data;
98
109
const { login, logout } = getContext('app');
@@ -176,7 +175,6 @@
176175
177176
.controls {
178177
position: sticky;
179-
background: white;
180178
top: 1rem;
181179
display: flex;
182180
align-items: center;
@@ -186,7 +184,7 @@
186184
font-size: 1.6rem;
187185
z-index: 2;
188186
justify-content: space-between;
189-
outline: 1rem solid white;
187+
outline: 1rem solid var(--sk-back-1);
190188
}
191189
192190
.controls::after {
@@ -195,7 +193,7 @@
195193
width: 100%;
196194
bottom: -2rem;
197195
height: 2rem;
198-
background: linear-gradient(to bottom, white 0%, white 50%, transparent);
196+
background: linear-gradient(to bottom, var(--sk-back-1) 0%, var(--sk-back-1) 50%, transparent);
199197
}
200198
201199
.controls form {
@@ -216,7 +214,7 @@
216214
padding: 0.5rem 1rem;
217215
line-height: 1;
218216
display: flex;
219-
border: 1px solid #eee;
217+
border: 1px solid var(--sk-back-5);
220218
border-radius: var(--sk-border-radius);
221219
z-index: 2;
222220
}
@@ -266,7 +264,7 @@
266264
267265
li span {
268266
font-size: 12px;
269-
color: rgba(0, 0, 0, 0.6);
267+
color: var(--sk-text-3);
270268
}
271269
272270
li label {

sites/svelte.dev/src/routes/(authed)/repl/[id].json/+server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export async function GET({ params }) {
9494
});
9595
}
9696

97-
/** @type {import('./$types.js').EntryGenerator} */
9897
export async function entries() {
9998
return get_examples_list(examples_data)
10099
.map(({ examples }) => examples)

sites/svelte.dev/src/routes/(authed)/repl/[id]/UserMenu.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
min-width: 10em;
7373
top: 3rem;
7474
right: -1.6rem;
75-
background-color: var(--sk-theme-2);
75+
background-color: var(--sk-back-2);
7676
padding: 0.8rem 1.6rem;
7777
z-index: 99;
7878
text-align: left;
@@ -91,7 +91,7 @@
9191
text-decoration: none;
9292
text-align: left;
9393
border: none;
94-
color: inherit;
94+
color: var(--sk-text-2);
9595
}
9696
9797
.menu button:hover,

sites/svelte.dev/src/routes/content.json/+server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { json } from '@sveltejs/kit';
33

44
export const prerender = true;
55

6-
/** @type {import('./$types').RequestHandler} */
76
export function GET() {
87
return json({
98
blocks: content()

sites/svelte.dev/src/routes/examples/+page.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { redirect } from '@sveltejs/kit';
22

33
export const prerender = true;
44

5-
/** @type {import('./$types').PageLoad} */
65
export function load() {
76
throw redirect(301, 'examples/hello-world');
87
}

sites/svelte.dev/src/routes/search/+page.server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { init, inited, search } from '@sveltejs/site-kit/search';
22

3-
/** @type {import('./$types').PageServerLoad} */
43
export async function load({ url, fetch }) {
54
if (!inited) {
65
const res = await fetch('/content.json');

sites/svelte.dev/src/routes/search/+page.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script>
22
import { SearchResults } from '@sveltejs/site-kit/search';
33
4-
/** @type {import('./$types').PageData} */
54
export let data;
65
</script>
76

0 commit comments

Comments
 (0)