From 9e5e8d7d3f12611ccdd7fa621db49435f7ebe9d8 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sat, 2 Mar 2019 09:05:26 -0500 Subject: [PATCH] tweak link --- site/src/routes/tutorial/[slug]/index.svelte | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/site/src/routes/tutorial/[slug]/index.svelte b/site/src/routes/tutorial/[slug]/index.svelte index 3c81b4356d..514853177c 100644 --- a/site/src/routes/tutorial/[slug]/index.svelte +++ b/site/src/routes/tutorial/[slug]/index.svelte @@ -50,7 +50,7 @@ const tutorial_repo_link = 'https://github.com/sveltejs/svelte/tree/restructure-docs/site/content/tutorial'; $: selected = lookup.get(slug); - $: improve_link = `${tutorial_repo_link}/${selected.chapter.section_dir}/${selected.chapter.chapter_dir}/text.md`; + $: improve_link = `${tutorial_repo_link}/${selected.chapter.section_dir}/${selected.chapter.chapter_dir}`; // TODO once reactive values are fixed // $: app = { @@ -187,20 +187,18 @@ } .improve-chapter { - text-align: center; padding: 1em 0 .5em 0; } - .improve-chapter > a { - font-size: 0.6em; + .improve-chapter a { + font-size: 14px; text-decoration: none; - border-radius: 0.7em; - background: rgba(255,255,255,0.1); - padding: 0.2em 0.7em; + opacity: 0.3; + padding: 0 0.1em; } - .improve-chapter > a:hover { - background: rgba(255,255,255,0.2); + .improve-chapter a:hover { + opacity: 1; } @@ -228,7 +226,7 @@
- Improve this Tutorial + Edit this chapter
@@ -236,5 +234,4 @@
-