feat(aio): TOC float right + service refactor

TOC appears in right panel when wide and hides embedded TOC
Right TOC panel height adjusts dynamically during scroll
Refactored `TocService` and its tests for clarity.
This commit is contained in:
Stefanie Fluin
2017-05-02 10:13:10 -07:00
committed by Pete Bacon Darwin
parent 566dab1140
commit 799be9c98a
10 changed files with 222 additions and 79 deletions

View File

@ -1,9 +1,9 @@
.toc-container {
width: 18%;
position: fixed;
top: 84px;
top: 96px;
right: 0;
bottom: 18px;
bottom: 32px;
overflow-y: auto;
overflow-x: hidden;
@ -13,6 +13,20 @@
}
}
aio-toc {
&.embedded {
@media (min-width: 801px) {
display: none;
}
}
&:not(.embedded) {
@media (max-width: 800px) {
display: none;
}
}
}
aio-toc > div {
font-size: 13px;
overflow-y: visible;
@ -87,7 +101,7 @@ aio-toc > div {
@media (max-width: 800px) {
width: auto;
}
}
ul.toc-list li {
@ -141,6 +155,6 @@ aio-toc > div {
}
}
aio-toc > div.closed li.secondary {
aio-toc.embedded > div.closed li.secondary {
display: none;
}