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:
parent
67257aa64b
commit
3224c52503
@ -8,7 +8,8 @@
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.toc-inner {
|
||||
aio-toc {
|
||||
.toc-inner {
|
||||
@include font-size(13);
|
||||
overflow-y: visible;
|
||||
padding: 4px 0 0 10px;
|
||||
@ -186,10 +187,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Alternative TOC View for Smaller Screens
|
||||
aio-toc.embedded {
|
||||
// Alternative TOC View for Smaller Screens
|
||||
&.embedded {
|
||||
@media (min-width: 801px) {
|
||||
display: none;
|
||||
}
|
||||
@ -207,5 +208,5 @@ aio-toc.embedded {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user