mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
Follow-up: Apply min-width to collapsed TOC
Bug: T316056 Change-Id: Ib9460cd5f5fa6d37a4aaf3c0dd583d9de46851ee
This commit is contained in:
parent
fd783b0499
commit
0d7a8d751e
|
@ -62,9 +62,10 @@
|
|||
// Shared collapsed TOC styles, applies across all collapsed cases (page title, floating, sticky header)
|
||||
.mixin-toc-collapsed() {
|
||||
margin: 0;
|
||||
// T316056 Remove TOC menu fixed width and apply max-width
|
||||
// T316056 Remove TOC menu fixed width and apply min/max-width
|
||||
// using min() so that the TOC menu doesn't fully cover the text even on small viewports
|
||||
width: auto;
|
||||
min-width: 200px;
|
||||
max-width: ~'min( @{max-width-collapsed-toc}, 75vw )'; // 51em
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue