mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-09-25 03:09:24 +00:00
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:
parent
c0d752cbe0
commit
e3896ab96d
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue