MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
Created page with "→All CSS here will be loaded for users of the Vector skin: →Set a maximum width for the content: #content { max-width: 900px; margin: 0 auto; →center it: padding: 0 20px; } →Optional: also constrain header and footer: #mw-head, #mw-panel, #footer { max-width: 1200px; margin: 0 auto; }" |
No edit summary |
||
| Line 1: | Line 1: | ||
/* All CSS here will be loaded for users of the Vector skin */ | /* All CSS here will be loaded for users of the Vector skin */ | ||
/* | /* Create a central wrapper */ | ||
#mw-page-base, #mw-head-base, #content, #mw-head, #mw-panel, #footer { | |||
max-width: 1200px; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | |||
/* Optional: Slight padding to keep text from hugging the edge */ | |||
#content { | #content { | ||
padding: 0 20px; | padding: 0 20px; | ||
} | } | ||
/* | /* Make sure the sidebar doesn't stay way off to the side */ | ||
#mw- | #mw-panel { | ||
position: relative; | |||
} | |||
/* Tabs (like View, Edit) also need to stay inside the container */ | |||
#p-cactions { | |||
max-width: 1200px; | max-width: 1200px; | ||
margin: | margin-left: auto; | ||
margin-right: auto; | |||
} | } | ||
Revision as of 13:47, 7 April 2025
/* All CSS here will be loaded for users of the Vector skin */
/* Create a central wrapper */
#mw-page-base, #mw-head-base, #content, #mw-head, #mw-panel, #footer {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
/* Optional: Slight padding to keep text from hugging the edge */
#content {
padding: 0 20px;
}
/* Make sure the sidebar doesn't stay way off to the side */
#mw-panel {
position: relative;
}
/* Tabs (like View, Edit) also need to stay inside the container */
#p-cactions {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}