diff --git a/aio/src/app/embedded/toc/toc.component.html b/aio/src/app/embedded/toc/toc.component.html
index df1b891bc7..81c026a4f5 100644
--- a/aio/src/app/embedded/toc/toc.component.html
+++ b/aio/src/app/embedded/toc/toc.component.html
@@ -13,7 +13,7 @@
-
+
- = primaryMax" [class.active]="i === activeIndex">
diff --git a/aio/src/styles/2-modules/_toc.scss b/aio/src/styles/2-modules/_toc.scss
index fe4e364472..256fda2c1c 100644
--- a/aio/src/styles/2-modules/_toc.scss
+++ b/aio/src/styles/2-modules/_toc.scss
@@ -109,59 +109,71 @@ aio-toc {
width: auto;
}
- }
-
- ul.toc-list li {
- box-sizing: border-box;
- font-size: 12px;
- line-height: 16px;
- padding: 3px 0 3px 12px;
- position: relative;
- transition: all 0.3s ease-in-out;
-
- &.h1:after {
- content: '';
- display: block;
- height: 1px;
- width: 40%;
- margin: 7px 0 4px 0;
- background: #DBDBDB;
- clear: both;
- }
-
- &.h1, &.h2, &.h3 {
- border-left: 1px solid $blue;
- }
-
- &.h3 {
- padding-left: 24px;
- }
-
- a {
- font-size: inherit;
- color: lighten($darkgray, 10);
- display:table-cell;
- overflow: visible;
+ li {
+ box-sizing: border-box;
font-size: 12px;
- display: table-cell;
+ line-height: 16px;
+ padding: 3px 0 3px 12px;
+ position: relative;
+ transition: all 0.3s ease-in-out;
- &:hover {
+ &.h1:after {
+ content: '';
+ display: block;
+ height: 1px;
+ width: 40%;
+ margin: 7px 0 4px 0;
+ background: #DBDBDB;
+ clear: both;
+ }
+
+ &.h3 {
+ padding-left: 24px;
+ }
+
+ a {
+ font-size: inherit;
+ color: lighten($darkgray, 10);
+ display:table-cell;
+ overflow: visible;
+ font-size: 12px;
+ display: table-cell;
+ }
+
+ &:hover a {
color: $accentblue;
}
+
+ &.active {
+ a {
+ color: $blue;
+ font-weight: 500;
+ }
+
+ &:before {
+ content: '';
+ border-radius: 50%;
+ left: -4px;
+ top: 12px;
+ background: $blue;
+ position: absolute;
+ width: 6px;
+ height: 6px;
+ }
+ }
}
- &.active {
- a {
- color: $blue;
- font-weight: 500;
+ &:not(.embedded) li {
+ &.h1, &.h2, &.h3 {
+ border-left: 1px solid $lightgray;
}
- &:before {
+ &:not(.active):hover:before {
content: '';
border-radius: 50%;
left: -4px;
top: 12px;
- background: $blue;
+ background: $lightgray;
position: absolute;
width: 6px;
height: 6px;