diff --git a/site/content/guide/00-introduction.md b/site/content/guide/00-introduction.md index 04ec1b7a8c..f193f32217 100644 --- a/site/content/guide/00-introduction.md +++ b/site/content/guide/00-introduction.md @@ -17,7 +17,7 @@ You can build your entire app with Svelte, or you can add it incrementally to an ### Understanding Svelte components -In Svelte, an application is composed from one or more _components_. A component is a reusable self-contained block of code that encapsulates markup, styles and behaviours that belong together, written into an `.html` file. Here's a simple example: +In Svelte, an application is composed from one or more *components*. A component is a reusable self-contained block of code that encapsulates markup, styles and behaviours that belong together, written into an `.html` file. Here's a simple example: ```html diff --git a/site/src/components/icon.html b/site/src/components/icon.html index e470534358..366b923911 100644 --- a/site/src/components/icon.html +++ b/site/src/components/icon.html @@ -9,8 +9,7 @@ diff --git a/site/src/routes/guide/index.html b/site/src/routes/guide/index.html index c0eb8be74d..637237ee97 100644 --- a/site/src/routes/guide/index.html +++ b/site/src/routes/guide/index.html @@ -72,29 +72,6 @@ }); - - Learn Svelte - - -
- {#each sections as section} -
-

- {section.metadata.title} - - - - -

- {@html section.html} -
- {/each} -
- - - + + + Learn Svelte + + +
+ {#each sections as section} +
+

+ {section.metadata.title} + + + + +

+ {@html section.html} +
+ {/each} +
+ + \ No newline at end of file diff --git a/site/src/routes/repl/_components/Input/ComponentSelector.html b/site/src/routes/repl/_components/Input/ComponentSelector.html index 7eeef3dfbb..32be6074b1 100644 --- a/site/src/routes/repl/_components/Input/ComponentSelector.html +++ b/site/src/routes/repl/_components/Input/ComponentSelector.html @@ -202,7 +202,7 @@ - + {/if} diff --git a/site/src/routes/repl/_components/Repl.html b/site/src/routes/repl/_components/Repl.html index c36cb195da..1f0ef55964 100644 --- a/site/src/routes/repl/_components/Repl.html +++ b/site/src/routes/repl/_components/Repl.html @@ -7,7 +7,7 @@ import Input from './Input/index.html'; import Output from './Output/index.html'; - export let version; + export let version = 'alpha'; // TODO change this to latest when the time comes export let app; let component_store = writable([]); diff --git a/site/static/global.css b/site/static/global.css index 3d86cbc054..d7060ea48f 100644 --- a/site/static/global.css +++ b/site/static/global.css @@ -89,7 +89,7 @@ a:focus { --nav-h: 6rem; --top-offset: 6rem; --sidebar-w: 24rem; - --code-w: 48em; + --code-w: 72em; --side-nav: 4.8rem; --side-page: var(--side-nav); @@ -126,7 +126,7 @@ a:focus { --h3: 2.4rem; --h2: 3rem; --h1: 3.2rem; - --linemax: 32em; /* max line-length */ + --linemax: 42em; /* max line-length */ --lh: calc(4/2.2); /* base line-height */ } @@ -158,7 +158,7 @@ p { .b, b, strong { font-weight: 500 } i, em { - color: var(--prime); + /* color: var(--prime); */ font-style: normal; } @@ -202,8 +202,11 @@ blockquote { padding: 2rem 2.4rem 1.8rem 2.4rem; border-radius: var(--border-r); font-family: var(--font); + max-width: var(--linemax); +} + +blockquote p { font-size: var(--h5); - max-width: 38.3em; } blockquote :last-child { @@ -399,7 +402,7 @@ table span { .open-in-repl { position: absolute; - margin-top: 5.4rem; + margin-top: 4rem; margin-left: -2.5rem; width: 3.6rem; height: 3.6rem; diff --git a/site/static/prism.css b/site/static/prism.css index 2cb2978996..3177b7ecf7 100644 --- a/site/static/prism.css +++ b/site/static/prism.css @@ -36,7 +36,7 @@ pre[class*='language-'] { /* code-blocks ---------------------------- */ pre[class*='language-'] { overflow: auto; - padding: 3.2rem 4rem; + padding: 1.5rem 2rem; margin: .8rem 0 2.4rem; max-width: var(--code-w); border-radius: var(--border-r);