diff --git a/src/app.css b/src/app.css index 6f594e5..f358ea7 100644 --- a/src/app.css +++ b/src/app.css @@ -1,4 +1,4 @@ -@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap"); +@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&family=Source+Code+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); * { box-sizing: inherit; @@ -34,6 +34,8 @@ body { } :root { + --main-font: "Manrope", sans-serif; + --mono-font: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; --white: #fff; --accent-color: #9fd5ff; --accent-color-two: hsl(207, 65%, 90%); diff --git a/src/lib/components/atoms/DocsNavNode.svelte b/src/lib/components/atoms/DocsNavNode.svelte index f9123a9..138ce45 100644 --- a/src/lib/components/atoms/DocsNavNode.svelte +++ b/src/lib/components/atoms/DocsNavNode.svelte @@ -5,25 +5,51 @@
  • -
    - {info.title} +
  • + diff --git a/src/lib/components/atoms/Search.svelte b/src/lib/components/atoms/Search.svelte index a7bbb56..0b6f34f 100644 --- a/src/lib/components/atoms/Search.svelte +++ b/src/lib/components/atoms/Search.svelte @@ -1,30 +1,26 @@ - -
    Search {#if searchTerm} Close (searchTerm = null)} - on:keypress={() => (searchTerm = null)} + alt="Clear" + on:click={clear} + on:keypress={clear} transition:fade|local={{ easing: quintOut, duration: 250 }} /> {/if} diff --git a/src/lib/components/molecules/DocsNavTree.svelte b/src/lib/components/molecules/DocsNavTree.svelte index abca754..1e347c8 100644 --- a/src/lib/components/molecules/DocsNavTree.svelte +++ b/src/lib/components/molecules/DocsNavTree.svelte @@ -1,39 +1,37 @@ {#if nested} - - + + {/if}
      - {#if !nested} - - - {/if} + {#if !nested} + + + {/if} - {#each tree.nodes as node} - {#if is_tree(node)} - - - {:else} - - {/if} - {/each} + {#each tree.nodes as node} + {#if is_tree(node)} + + + {:else} + + {/if} + {/each}
    diff --git a/src/lib/documentation.scss b/src/lib/documentation.scss index d4898ca..75df594 100644 --- a/src/lib/documentation.scss +++ b/src/lib/documentation.scss @@ -1,29 +1,44 @@ #markup-content { /* Defaults for text */ - color: var(--white); + color: var(--accent-color-two); font-weight: 300; font-size: 1rem; - letter-spacing: 0.02rem; - padding: 100px 30px 0px 30px; + line-height: 1.75rem; + letter-spacing: 0.03rem !important; + + + a { text-decoration: none; - color: var(--white); - border-bottom: 1.5px solid var(--accent-color); - padding: 0px 5px; - transition: all 0.4s var(--bezier-one); + color: var(--accent-color); + border-bottom: 1.5px solid var(--accent-low-opacity); + padding: 0px ; } - a:hover { - background-color: var(--accent-color); - border-radius: 6px; - color: var(--grey-four); - } + code { + background-color: var(--grey-one); + border-radius: 8px; + padding: 0.2rem 0.5rem; + font-size: 0.8rem; + font-family: var(--mono-font); + font-weight: 300; + flex-wrap: wrap; + line-height: 1.25rem; + } + + + + pre code { + font-size: 0.75rem; background-color: var(--grey-six); - border-radius: 4px; - padding: 2px; + white-space: pre; + display: block; + flex-wrap: wrap; + padding: 0.5rem 1rem; + margin: 1rem 0; } h5 { @@ -34,9 +49,45 @@ color: var(--accent-color); } + h1, h2, h3, h4, h5 { + margin-bottom: 1rem; + } + + h1 { + font-size: 2.25rem; + font-weight: 600; + letter-spacing: -0.02rem; + color: var(--accent-color-two); + border-bottom: 1px solid var(--grey-three); + padding-bottom: 1rem; + margin-bottom: 1rem; + } + + h2 { + font-size: 1.5rem; + letter-spacing: -0.02rem; + font-weight: 600; + color: var(--accent-color-two); + border-bottom: 1px solid var(--grey-three); + padding-bottom: 1rem; + margin-top: 2rem; + } + + h3 { + margin-top: 1rem; + margin-bottom: 0.5rem; + } + + li { + margin-left: 1rem; + margin-bottom: 0.5rem; + } + /* Markup processors output this for bold text, but css spec is goofy aah */ strong { font-weight: bold; + letter-spacing: 0.01rem; + } ul { diff --git a/src/routes/docs/+layout.svelte b/src/routes/docs/+layout.svelte index e8c08e2..82a38f6 100644 --- a/src/routes/docs/+layout.svelte +++ b/src/routes/docs/+layout.svelte @@ -5,20 +5,28 @@ import { fly } from 'svelte/transition'; import { quintOut } from 'svelte/easing'; + import Footer from '$lib/components/molecules/Footer.svelte'; export let data: PageData; -
    +
    +