fix: Apps styles (#8797)

* Push

* Remove reference to $types
pull/8799/head
Puru Vijay 2 years ago committed by GitHub
parent 23fc113d31
commit 980b325989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,5 @@
import * as gist from '$lib/db/gist'; import * as gist from '$lib/db/gist';
/** @type {import('./$types').PageServerLoad} */
export async function load({ url, parent }) { export async function load({ url, parent }) {
let gists = []; let gists = [];
let next = null; let next = null;

@ -4,7 +4,6 @@
import { ago } from '$lib/time'; import { ago } from '$lib/time';
import { goto, invalidateAll } from '$app/navigation'; import { goto, invalidateAll } from '$app/navigation';
/** @type {import('./$types').PageData} */
export let data; export let data;
const { login, logout } = getContext('app'); const { login, logout } = getContext('app');
@ -176,7 +175,6 @@
.controls { .controls {
position: sticky; position: sticky;
background: white;
top: 1rem; top: 1rem;
display: flex; display: flex;
align-items: center; align-items: center;
@ -186,7 +184,7 @@
font-size: 1.6rem; font-size: 1.6rem;
z-index: 2; z-index: 2;
justify-content: space-between; justify-content: space-between;
outline: 1rem solid white; outline: 1rem solid var(--sk-back-1);
} }
.controls::after { .controls::after {
@ -195,7 +193,7 @@
width: 100%; width: 100%;
bottom: -2rem; bottom: -2rem;
height: 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 { .controls form {
@ -216,7 +214,7 @@
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
line-height: 1; line-height: 1;
display: flex; display: flex;
border: 1px solid #eee; border: 1px solid var(--sk-back-5);
border-radius: var(--sk-border-radius); border-radius: var(--sk-border-radius);
z-index: 2; z-index: 2;
} }
@ -266,7 +264,7 @@
li span { li span {
font-size: 12px; font-size: 12px;
color: rgba(0, 0, 0, 0.6); color: var(--sk-text-3);
} }
li label { li label {

@ -94,7 +94,6 @@ export async function GET({ params }) {
}); });
} }
/** @type {import('./$types.js').EntryGenerator} */
export async function entries() { export async function entries() {
return get_examples_list(examples_data) return get_examples_list(examples_data)
.map(({ examples }) => examples) .map(({ examples }) => examples)

@ -72,7 +72,7 @@
min-width: 10em; min-width: 10em;
top: 3rem; top: 3rem;
right: -1.6rem; right: -1.6rem;
background-color: var(--sk-theme-2); background-color: var(--sk-back-2);
padding: 0.8rem 1.6rem; padding: 0.8rem 1.6rem;
z-index: 99; z-index: 99;
text-align: left; text-align: left;
@ -91,7 +91,7 @@
text-decoration: none; text-decoration: none;
text-align: left; text-align: left;
border: none; border: none;
color: inherit; color: var(--sk-text-2);
} }
.menu button:hover, .menu button:hover,

@ -3,7 +3,6 @@ import { json } from '@sveltejs/kit';
export const prerender = true; export const prerender = true;
/** @type {import('./$types').RequestHandler} */
export function GET() { export function GET() {
return json({ return json({
blocks: content() blocks: content()

@ -2,7 +2,6 @@ import { redirect } from '@sveltejs/kit';
export const prerender = true; export const prerender = true;
/** @type {import('./$types').PageLoad} */
export function load() { export function load() {
throw redirect(301, 'examples/hello-world'); throw redirect(301, 'examples/hello-world');
} }

@ -1,6 +1,5 @@
import { init, inited, search } from '@sveltejs/site-kit/search'; import { init, inited, search } from '@sveltejs/site-kit/search';
/** @type {import('./$types').PageServerLoad} */
export async function load({ url, fetch }) { export async function load({ url, fetch }) {
if (!inited) { if (!inited) {
const res = await fetch('/content.json'); const res = await fetch('/content.json');

@ -1,7 +1,6 @@
<script> <script>
import { SearchResults } from '@sveltejs/site-kit/search'; import { SearchResults } from '@sveltejs/site-kit/search';
/** @type {import('./$types').PageData} */
export let data; export let data;
</script> </script>

Loading…
Cancel
Save