MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* ====================================================== */ | ||
/* MINIMAL UI FOR PRIVATE WIKI - ALL PAGES */ | |||
/* ====================================================== */ | |||
/* ------------------------------ */ | |||
/* Hide sidebar, all panels, and menus */ | |||
/* | |||
/* Hide | |||
#mw-panel, | #mw-panel, | ||
.vector-menu-content, | .vector-menu-content, | ||
| Line 45: | Line 13: | ||
#p-cactions, | #p-cactions, | ||
#p-personal, | #p-personal, | ||
#p-lang { | #p-lang, | ||
#p-views, | |||
.mw-ui-portlet, | |||
.vector-menu { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* Hide headings / labels inside sidebar */ | ||
# | #mw-panel h3, | ||
#mw-panel .portal h3, | |||
#mw-panel .vector-menu-heading, | |||
#mw-panel .vector-menu-content, | |||
#p-tb h3, | |||
#p-cactions h3, | |||
#p-personal h3 { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* ------------------------------ */ | ||
/* Hide footer and indicators */ | |||
#footer, | |||
.mw-footer, | |||
#siteSub, | #siteSub, | ||
#contentSub, | #contentSub, | ||
| Line 62: | Line 42: | ||
} | } | ||
/* | /* ------------------------------ */ | ||
#ca-view, #ca-edit, .vectorMenu, .mw-portlet { | /* Hide page tabs / actions / toolbox */ | ||
#ca-view, | |||
#ca-edit, | |||
.vectorMenu, | |||
.mw-portlet { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* ------------------------------ */ | ||
#search, #searchInput, .vector-search-box { | /* Hide search box */ | ||
#search, | |||
#searchInput, | |||
.vector-search-box { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* ------------------------------ */ | ||
# | /* Main content container - optional: center on screen */ | ||
display: | #content, | ||
#mw-content-text { | |||
max-width: 900px; | |||
margin: 40px auto; | |||
padding: 0 20px; | |||
} | |||
/* Optional: center content for Main Page only */ | |||
body.page-Main_Page #content, | |||
body.page-Main_Page #mw-content-text { | |||
text-align: center; | |||
margin-top: 100px; | |||
} | |||
/* Optional: highlight "Request Account" link on Main Page */ | |||
body.page-Main_Page a[href*="Request_account"] { | |||
display: inline-block; | |||
padding: 12px 20px; | |||
background-color: #0074D9; | |||
color: #fff !important; | |||
text-decoration: none; | |||
font-weight: bold; | |||
border-radius: 6px; | |||
font-size: 1.2em; | |||
} | |||
body.page-Main_Page a[href*="Request_account"]:hover { | |||
background-color: #005fa3; | |||
} | } | ||
Revision as of 14:33, 23 January 2026
/* ====================================================== */
/* MINIMAL UI FOR PRIVATE WIKI - ALL PAGES */
/* ====================================================== */
/* ------------------------------ */
/* Hide sidebar, all panels, and menus */
#mw-panel,
.vector-menu-content,
.portal,
#p-navigation,
#p-interaction,
#p-tb,
#p-cactions,
#p-personal,
#p-lang,
#p-views,
.mw-ui-portlet,
.vector-menu {
display: none !important;
}
/* Hide headings / labels inside sidebar */
#mw-panel h3,
#mw-panel .portal h3,
#mw-panel .vector-menu-heading,
#mw-panel .vector-menu-content,
#p-tb h3,
#p-cactions h3,
#p-personal h3 {
display: none !important;
}
/* ------------------------------ */
/* Hide footer and indicators */
#footer,
.mw-footer,
#siteSub,
#contentSub,
.breadcrumb,
.mw-indicators {
display: none !important;
}
/* ------------------------------ */
/* Hide page tabs / actions / toolbox */
#ca-view,
#ca-edit,
.vectorMenu,
.mw-portlet {
display: none !important;
}
/* ------------------------------ */
/* Hide search box */
#search,
#searchInput,
.vector-search-box {
display: none !important;
}
/* ------------------------------ */
/* Main content container - optional: center on screen */
#content,
#mw-content-text {
max-width: 900px;
margin: 40px auto;
padding: 0 20px;
}
/* Optional: center content for Main Page only */
body.page-Main_Page #content,
body.page-Main_Page #mw-content-text {
text-align: center;
margin-top: 100px;
}
/* Optional: highlight "Request Account" link on Main Page */
body.page-Main_Page a[href*="Request_account"] {
display: inline-block;
padding: 12px 20px;
background-color: #0074D9;
color: #fff !important;
text-decoration: none;
font-weight: bold;
border-radius: 6px;
font-size: 1.2em;
}
body.page-Main_Page a[href*="Request_account"]:hover {
background-color: #005fa3;
}