Permalink
Browse files

feat(docs): Hide TOC sub-sections when not `active`

  • Loading branch information...
tmorehouse committed Sep 19, 2017
1 parent 6db094d commit 9d5a6266715c4e21c0af0e839aaa237af45dfe4c
Showing with 21 additions and 11 deletions.
  1. +21 −11 docs/nuxt/components/toc.vue
@@ -24,19 +24,29 @@
</template>
<style scoped>
.m-toc.section-nav .nav-link {
line-height: 1.2;
}
.m-toc.section-nav .nav-link {
line-height: 1.2;
}
.m-toc.section-nav .toc-entry a {
padding-left: 12px;
padding-left: 0.75rem;
}
.m-toc.section-nav .toc-entry a {
padding-left: 12px;
padding-left: 0.75rem;
}
.m-toc.section-nav .nav-link.active {
color: #563d7c;
background: transparent;
}
.m-toc.section-nav .nav-link.active {
color: #563d7c;
background: transparent;
}
.m-toc.section-nav > .nav-item + .nav,
.m-toc.section-nav > .nav-link + .nav {
display: none;
}
.m-toc.section-nav > .nav-item.active + .nav,
.m-toc.section-nav > .nav-link.active + .nav {
display: flex !important;
}
</style>
<script>

0 comments on commit 9d5a626

Please sign in to comment.