mediawiki-skins-Vector/resources/skins.vector.styles/layouts/gradeC.less
Jon Robson 664b6c5cc5 [Grid] Vector 2022 layout uses CSS grid
It gracefully degrades to a single column
layout on grade C browsers, IE11, and Safari 9.

Bug: T303484
Change-Id: Iaa3c1bee146dc39b1259a1ce712a29c6b22305d1
2022-06-07 17:23:08 +00:00

18 lines
459 B
Plaintext

//
// No grid support behaviour
//
// If there is no display grid support we remove the table of contents
// On IE11 this leaves a clean single column grid.
// To be revisited when table of contents is collapsible in which situation we should be able to
// force it as sticky.
.vector-layout-grid .mw-table-of-contents-container {
display: none;
}
@supports ( display: grid ) {
.vector-layout-grid .mw-table-of-contents-container {
display: block;
}
}