From 3511d0fa34c69d1dadd2001042f4a4ccd009b6fc Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 13 Mar 2019 10:48:54 -0400 Subject: [PATCH] tweak styles --- site/src/routes/docs/_GuideContents.svelte | 33 ++++++++++++++++++---- site/static/global.css | 2 +- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/site/src/routes/docs/_GuideContents.svelte b/site/src/routes/docs/_GuideContents.svelte index e7e5c08551..a681d823d2 100644 --- a/site/src/routes/docs/_GuideContents.svelte +++ b/site/src/routes/docs/_GuideContents.svelte @@ -78,6 +78,12 @@ margin: 0 0 4.8rem 0; } + a { + position: relative; + opacity: 0.7; + transition: opacity 0.2s; + } + .section { display: block; padding: 0 0 .8rem 0; @@ -90,12 +96,25 @@ display: block; font-size: 1.6rem; font-family: var(--font); - padding: 0.3em 0; + padding: 0 0 0.6em 0; } .section:hover, - .subsection:hover { color: var(--flash) } - .active { color: var(--prime) } + .subsection:hover { + color: var(--flash); + opacity: 1 + } + + .active { + opacity: 1; + /* font-weight: 700; */ + } + + .icon-container { + position: absolute; + top: -.3rem; + right: 3.2rem; + }