fix(docs-infra): fix styling of embedded Table-of-Contents (#34312)
This commit fixes the following issues: - Align text content with caret icon in embedded ToC header. - Fix display of expand/collapse button at the bottom of embeded ToC. These were accidentally broken in #32124, while fixing another ToC-related issue. Some CSS rules in `_toc.scss` (e.g. those for `.mat-icon` and `ul.toc-list`) were correctly moved out of the `.toc-inner > button` block, but others (e.g. `&.toc-heading` and `&.toc-more-items`) should not have been moved outside the `.toc-inner > button` block. _Before:_  _After:_  Closes #34300 PR Close #34312
This commit is contained in:
parent
f95e2c7e7e
commit
419b153b17
@ -50,37 +50,37 @@
|
||||
background: $lightgray;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.toc-heading {
|
||||
mat-icon.rotating-icon {
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
&.toc-heading {
|
||||
mat-icon.rotating-icon {
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
position: relative;
|
||||
left: -4px;
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
&:hover:not(.embedded) {
|
||||
color: $accentblue;
|
||||
}
|
||||
}
|
||||
|
||||
&.toc-more-items {
|
||||
color: $mediumgray;
|
||||
top: 10px;
|
||||
position: relative;
|
||||
left: -4px;
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
&:hover:not(.embedded) {
|
||||
color: $accentblue;
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
color: $accentblue;
|
||||
}
|
||||
|
||||
&.toc-more-items {
|
||||
color: $mediumgray;
|
||||
top: 10px;
|
||||
position: relative;
|
||||
&::after {
|
||||
content: 'expand_less';
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $accentblue;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: 'expand_less';
|
||||
}
|
||||
|
||||
&.collapsed::after {
|
||||
content: 'more_horiz';
|
||||
&.collapsed::after {
|
||||
content: 'more_horiz';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0 8px 0 0;
|
||||
|
||||
|
||||
@media (max-width: 800px) {
|
||||
width: auto;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user