MediaWiki:Vector.css: Difference between revisions
(moved TOC limit and no-num markup here from MediaWiki:Common.css) |
m (we don't need this note) |
||
| Line 1: | Line 1: | ||
/* Fix the sidebar in place when scrolling, as long as we are not on a small screen (e.g. a phone) */ | /* Fix the sidebar in place when scrolling, as long as we are not on a small screen (e.g. a phone) */ | ||
@media (min-device-width:481px) | @media (min-device-width:481px) | ||
Revision as of 15:57, 2 January 2026
/* Fix the sidebar in place when scrolling, as long as we are not on a small screen (e.g. a phone) */
@media (min-device-width:481px)
{
div#mw-panel
{
position:fixed;
height:100%;
/* Prevent content overlay when sidewards scrolling */
background-color:#F6F6F6;
}
}
/* For small screens, fix the sidebar this way to avoid overlap when zooming */
@media (max-device-width:480px)
{
div#mw-panel
{
position:absolute;
}
}
/* Darken the background for code tags just a tiny bit
** so code stands out more (default is 249, 249, 249)
*/
code
{
background-color:rgb(245, 245, 245);
}
/* Raise size of text in diff views to 100% since
** Vector makes them 88% by default
*/
td.diff-addedline,
td.diff-deletedline,
td.diff-context
{
font-size:100%;
}
/* Allow limiting of which header levels are shown in a TOC;
<div class="toclimit-3">, for instance, will limit to
showing ==headings== and ===headings=== but no further
(as long as there are no =headings= on the page, which
there shouldn't be according to the MoS). Used by Template:
TOClimit.
*/
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul
{
display:none;
}
/* When <div class="nonumtoc"> is used on the table of contents,
the ToC will display without numbers. Used by Template:TOCnonum. */
.nonumtoc .tocnumber { display:none; }
.nonumtoc #toc ul,
.nonumtoc .toc ul
{
line-height:1.5em;
list-style:none;
margin:.3em 0 0;
padding:0;
}
.nonumtoc #toc ul ul,
.nonumtoc .toc ul ul
{
margin:0 0 0 2em;
}