refactor(docs-infra): scope TOC styles to the `<aio-toc>` element (#40704)

This commit ensures that all styles for the TOC (which are defined in
`_toc.scss`) only apply to elements inside an `<aio-toc>` element. This
will prevent the styles accidentally taking effect on a different part
of the app.

PR Close #40704
This commit is contained in:
George Kalpakas 2021-02-05 12:49:09 +02:00 committed by Alex Rickabaugh
parent 67257aa64b
commit 3224c52503
1 changed files with 169 additions and 168 deletions

View File

@ -8,6 +8,7 @@
overflow-x: hidden;
}
aio-toc {
.toc-inner {
@include font-size(13);
overflow-y: visible;
@ -189,7 +190,7 @@
}
// Alternative TOC View for Smaller Screens
aio-toc.embedded {
&.embedded {
@media (min-width: 801px) {
display: none;
}
@ -207,5 +208,5 @@ aio-toc.embedded {
}
}
}
}
}