TOC with bold text.

The width of the active link is increased via calc to reduce the
chances that the line will wrap because of the bold text.

Bug: T314670
Change-Id: I58aa72871b7d80c8342df60478894dafcf448ae7
This commit is contained in:
Jan Drewniak 2022-07-18 11:28:09 -04:00 committed by Jdrewniak
parent c0d752cbe0
commit e3896ab96d

View file

@ -44,11 +44,15 @@
.sidebar-toc-link {
word-break: break-word;
color: @color-link;
display: block;
}
.sidebar-toc-list-item-active > .sidebar-toc-link {
// Highlight active section
color: @color-base;
font-weight: bold;
// increase width to prevent line wrapping due to bold text
width: ~'calc( 100% + @{sidebar-toc-right-padding} )';
}
.sidebar-toc-text {