Compare commits

...

2 Commits

Author SHA1 Message Date
453dad1e0d add feed link to app.html 2023-09-23 20:20:35 -07:00
7b3ae4dea8 hide TOC on narrow screens 2023-09-23 20:03:00 -07:00
6 changed files with 13 additions and 10 deletions

View File

@ -6,6 +6,7 @@
<link rel="preload" href="/Baskerville-Regular.woff2" as="font" type="font/woff2" /> <link rel="preload" href="/Baskerville-Regular.woff2" as="font" type="font/woff2" />
<link rel="stylesheet" href="/style.css" /> <link rel="stylesheet" href="/style.css" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" /> <link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="alternate" type="application/atom+xml" href="/feed">
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
%sveltekit.head% %sveltekit.head%
</head> </head>

View File

@ -102,7 +102,9 @@
</div> </div>
<div class="left-gutter"> <div class="left-gutter">
{#if toc?.length !== 0}
<Toc items={toc} /> <Toc items={toc} />
{/if}
</div> </div>
<div class="post"> <div class="post">

View File

@ -37,8 +37,10 @@
<style> <style>
#toc { #toc {
display: none;
position: sticky; position: sticky;
top: 1.5rem; top: 1.5rem;
margin-left: 1rem;
margin-right: 2rem; margin-right: 2rem;
max-width: 14rem; max-width: 14rem;
@ -49,6 +51,10 @@
animation-fill-mode: forwards; animation-fill-mode: forwards;
} }
@media(min-width: 1300px) {
#toc { display: block }
}
@keyframes fade-in { @keyframes fade-in {
from {opacity: 0} from {opacity: 0}
to {opacity: 1} to {opacity: 1}

View File

@ -1,7 +1,5 @@
<style> <style>
.header { .header {
grid-column-start: 1;
grid-column-end: 4;
background-color: #4f5f68; background-color: #4f5f68;
} }
@ -13,10 +11,10 @@
} }
nav a { nav a {
color: white;
width: 8rem; width: 8rem;
min-width: 6rem; min-width: 6rem;
font-size: 1.5rem; font-size: 1.5rem;
color: white;
text-decoration: none; text-decoration: none;
text-align: center; text-align: center;
padding: 0.25rem 0; padding: 0.25rem 0;

View File

@ -1,6 +1,8 @@
import { tag, text, serialize } from '$lib/xml.js'; import { tag, text, serialize } from '$lib/xml.js';
import { postData } from '../_posts/all.js'; import { postData } from '../_posts/all.js';
export const prerender = true;
export function GET() { export function GET() {
return new Response(renderFeed(), { return new Response(renderFeed(), {

View File

@ -74,10 +74,6 @@ p {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
/*ul, ol {
margin: 0.5rem 0;
}*/
code { code {
background: #eee; background: #eee;
border-radius: 0.2rem; border-radius: 0.2rem;
@ -89,5 +85,3 @@ code {
pre > code { pre > code {
font-size: 0.8rem; font-size: 0.8rem;
} }
/* TESTING */