Skip to content

Commit

Permalink
fix: Apps styles (#8797)
Browse files Browse the repository at this point in the history
* Push

* Remove reference to $types
  • Loading branch information
PuruVJ authored Jun 22, 2023
1 parent 23fc113 commit 980b325
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 14 deletions.
1 change: 0 additions & 1 deletion sites/svelte.dev/src/routes/(authed)/apps/+page.server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as gist from '$lib/db/gist';

/** @type {import('./$types').PageServerLoad} */
export async function load({ url, parent }) {
let gists = [];
let next = null;
Expand Down
10 changes: 4 additions & 6 deletions sites/svelte.dev/src/routes/(authed)/apps/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import { ago } from '$lib/time';
import { goto, invalidateAll } from '$app/navigation';
/** @type {import('./$types').PageData} */
export let data;
const { login, logout } = getContext('app');
Expand Down Expand Up @@ -176,7 +175,6 @@
.controls {
position: sticky;
background: white;
top: 1rem;
display: flex;
align-items: center;
Expand All @@ -186,7 +184,7 @@
font-size: 1.6rem;
z-index: 2;
justify-content: space-between;
outline: 1rem solid white;
outline: 1rem solid var(--sk-back-1);
}
.controls::after {
Expand All @@ -195,7 +193,7 @@
width: 100%;
bottom: -2rem;
height: 2rem;
background: linear-gradient(to bottom, white 0%, white 50%, transparent);
background: linear-gradient(to bottom, var(--sk-back-1) 0%, var(--sk-back-1) 50%, transparent);
}
.controls form {
Expand All @@ -216,7 +214,7 @@
padding: 0.5rem 1rem;
line-height: 1;
display: flex;
border: 1px solid #eee;
border: 1px solid var(--sk-back-5);
border-radius: var(--sk-border-radius);
z-index: 2;
}
Expand Down Expand Up @@ -266,7 +264,7 @@
li span {
font-size: 12px;
color: rgba(0, 0, 0, 0.6);
color: var(--sk-text-3);
}
li label {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export async function GET({ params }) {
});
}

/** @type {import('./$types.js').EntryGenerator} */
export async function entries() {
return get_examples_list(examples_data)
.map(({ examples }) => examples)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
min-width: 10em;
top: 3rem;
right: -1.6rem;
background-color: var(--sk-theme-2);
background-color: var(--sk-back-2);
padding: 0.8rem 1.6rem;
z-index: 99;
text-align: left;
Expand All @@ -91,7 +91,7 @@
text-decoration: none;
text-align: left;
border: none;
color: inherit;
color: var(--sk-text-2);
}
.menu button:hover,
Expand Down
1 change: 0 additions & 1 deletion sites/svelte.dev/src/routes/content.json/+server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { json } from '@sveltejs/kit';

export const prerender = true;

/** @type {import('./$types').RequestHandler} */
export function GET() {
return json({
blocks: content()
Expand Down
1 change: 0 additions & 1 deletion sites/svelte.dev/src/routes/examples/+page.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { redirect } from '@sveltejs/kit';

export const prerender = true;

/** @type {import('./$types').PageLoad} */
export function load() {
throw redirect(301, 'examples/hello-world');
}
1 change: 0 additions & 1 deletion sites/svelte.dev/src/routes/search/+page.server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { init, inited, search } from '@sveltejs/site-kit/search';

/** @type {import('./$types').PageServerLoad} */
export async function load({ url, fetch }) {
if (!inited) {
const res = await fetch('/content.json');
Expand Down
1 change: 0 additions & 1 deletion sites/svelte.dev/src/routes/search/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script>
import { SearchResults } from '@sveltejs/site-kit/search';
/** @type {import('./$types').PageData} */
export let data;
</script>

Expand Down

0 comments on commit 980b325

Please sign in to comment.