diff --git a/site/src/routes/examples/_TableOfContents.svelte b/site/src/routes/examples/_TableOfContents.svelte index a3e8b23216..d23925a0c3 100644 --- a/site/src/routes/examples/_TableOfContents.svelte +++ b/site/src/routes/examples/_TableOfContents.svelte @@ -40,7 +40,7 @@ border-right: 1px solid var(--second); background-color: var(--second); color: white; - padding: 2em 2em 0 2em; + padding: 3rem 3rem 0 3rem; } .examples-toc li { @@ -49,13 +49,6 @@ margin: 0 0 4.8rem 0; } - a { - position: relative; - opacity: 0.7; - transition: opacity 0.2s; - color: white; - } - .section-title { display: block; padding: 0 0 .8rem 0; @@ -74,35 +67,43 @@ .example-title:hover { color: var(--flash); - opacity: 1 } - .active { - opacity: 1; + /* .active { font-weight: 600; - } + } */ - .row { - position: relative; - margin: 0.5em 0; + a { display: flex; + position: relative; + color: white; + border-bottom: none; + padding: 0.2rem 3rem; + margin: 0 -3rem; + /* margin: 0.5em 0; */ align-items: center; - justify-content: space-between; + justify-content: start; } - .info { - display: flex; - align-items: center; + a:hover { + color: var(--flash); + } + + a.active { + background: rgba(255, 255, 255, 0.1) calc(100% - 3rem) 50% no-repeat url(/icons/arrow-right.svg); + background-size: 1em 1em; + color: white; } .thumbnail { - background: white 50% 50% no-repeat; - background-size: contain; + background-color: white; + object-fit: contain; width: 5rem; height: 5rem; - border: 1px solid #ccc; + /* border: 1px solid #ccc; */ border-radius: 2px; box-shadow: 1px 1px 3px rgba(0,0,0,0.13); + margin: 0.2em 0.5em 0.2em 0; } @@ -114,25 +115,22 @@ {#each section.examples as example} - - - - - - {example.title} - - - {#if example.slug === active_section} - - {/if} - - + + + {example.title} + + {/each} {/each}