MediaWiki:Common.css: Difference between revisions
From M365Docs
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
margin: 0 0 1em 1.5em; | margin: 0 0 1em 1.5em; | ||
max-width: 320px; | max-width: 320px; | ||
position: sticky; | |||
top: 1em; | |||
max-height: calc(100vh - 2em); | |||
overflow-y: auto; | |||
} | |||
@media (max-width: 900px) { | |||
#toc, .toc { | |||
float: none; | |||
position: static; | |||
max-width: none; | |||
margin: 0 0 1em 0; | |||
} | |||
} | } | ||
Revision as of 07:26, 24 September 2026
/* CSS placed here will be applied to all skins */
.mw-prefixindex-list {
column-count: 1 !important;
columns: auto !important;
}
/* Sommaire flottant à droite du contenu */
#toc, .toc {
float: right;
clear: right;
margin: 0 0 1em 1.5em;
max-width: 320px;
position: sticky;
top: 1em;
max-height: calc(100vh - 2em);
overflow-y: auto;
}
@media (max-width: 900px) {
#toc, .toc {
float: none;
position: static;
max-width: none;
margin: 0 0 1em 0;
}
}