fix(aio): make the ToC left hand-side bar shorter (#17280)

Make the ToC left hand-side bar shorter, so that it starts at the initial bullet
and ends at the final bullet.

Fixes #17221
This commit is contained in:
George Kalpakas 2017-06-08 10:56:00 +03:00 committed by Igor Minar
parent 33ba3e31ed
commit 8be2e4c325
1 changed files with 26 additions and 13 deletions

View File

@ -148,12 +148,11 @@ aio-toc {
a {
color: $blue;
font-weight: 500;
}
&:before {
content: '';
border-radius: 50%;
left: -4px;
left: -3px;
top: 12px;
background: $blue;
position: absolute;
@ -162,16 +161,30 @@ aio-toc {
}
}
}
&:not(.embedded) li {
&.h1, &.h2, &.h3 {
border-left: 1px solid $lightgray;
}
&:not(.active):hover:before {
&:not(.embedded) li {
&:before {
border-left: 1px solid $lightgray;
bottom: 0;
content: '';
left: 0;
position: absolute;
top: 0;
}
&:first-child:before {
top: 13px;
}
&:last-child:before {
bottom: calc(100% - 14px);
}
&:not(.active):hover a:before {
content: '';
border-radius: 50%;
left: -4px;
left: -3px;
top: 12px;
background: $lightgray;
position: absolute;