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';
/** @type {import('./$types').PageServerLoad} */
export async function load({ url, parent }) {
let gists = [];
let next = null;

@ -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');
@ -176,7 +175,6 @@
.controls {
position: sticky;
background: white;
top: 1rem;
display: flex;
align-items: center;
@ -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 {
@ -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 {
@ -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;
}
@ -266,7 +264,7 @@
li span {
font-size: 12px;
color: rgba(0, 0, 0, 0.6);
color: var(--sk-text-3);
}
li label {

@ -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)

@ -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;
@ -91,7 +91,7 @@
text-decoration: none;
text-align: left;
border: none;
color: inherit;
color: var(--sk-text-2);
}
.menu button:hover,

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

@ -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,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');

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

Loading…
Cancel
Save