tweak styles

pull/2206/head
Rich Harris 7 years ago
parent 4d2797d24d
commit 3511d0fa34

@ -78,6 +78,12 @@
margin: 0 0 4.8rem 0; margin: 0 0 4.8rem 0;
} }
a {
position: relative;
opacity: 0.7;
transition: opacity 0.2s;
}
.section { .section {
display: block; display: block;
padding: 0 0 .8rem 0; padding: 0 0 .8rem 0;
@ -90,12 +96,25 @@
display: block; display: block;
font-size: 1.6rem; font-size: 1.6rem;
font-family: var(--font); font-family: var(--font);
padding: 0.3em 0; padding: 0 0 0.6em 0;
} }
.section:hover, .section:hover,
.subsection:hover { color: var(--flash) } .subsection:hover {
.active { color: var(--prime) } color: var(--flash);
opacity: 1
}
.active {
opacity: 1;
/* font-weight: 700; */
}
.icon-container {
position: absolute;
top: -.3rem;
right: 3.2rem;
}
</style> </style>
<ul <ul
@ -110,7 +129,9 @@
{section.metadata.title} {section.metadata.title}
{#if section.slug === active_section} {#if section.slug === active_section}
<Icon name="arrow-right" /> <div class="icon-container">
<Icon name="arrow-right" />
</div>
{/if} {/if}
</a> </a>
@ -120,7 +141,9 @@
{subsection.title} {subsection.title}
{#if subsection.slug === active_section} {#if subsection.slug === active_section}
<Icon name="arrow-right" /> <div class="icon-container">
<Icon name="arrow-right" />
</div>
{/if} {/if}
</a> </a>
{/each} {/each}

@ -166,7 +166,7 @@ a:focus {
:root { :root {
--nav-h: 6rem; --nav-h: 6rem;
--top-offset: 6rem; --top-offset: 6rem;
--sidebar-w: 24rem; --sidebar-w: 30rem;
--main-width: 80rem; --main-width: 80rem;
--code-w: 72em; --code-w: 72em;
--side-nav: 1.6rem; --side-nav: 1.6rem;

Loading…
Cancel
Save