MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 142: | Line 142: | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
} | } | ||
} | |||
#mw-prefsection-appearance { | |||
display: none; | |||
} | } | ||
Latest revision as of 16:30, 23 January 2026
/* ====================================================== */
/* MINIMAL UI FOR PRIVATE WIKI */
/* Vector skin */
/* ====================================================== */
/* ------------------------------ */
/* SIDEBAR: fully hidden */
#mw-panel,
#p-navigation,
#p-interaction,
#p-lang,
.portal {
display: none !important;
}
/* ------------------------------ */
/* PERSONAL MENU (LOGIN) */
/* Keep original top-right position */
#p-personal {
display: block !important;
position: relative !important;
}
#p-personal h3 {
display: none !important;
}
/* ------------------------------ */
/* PAGE ACTIONS: edit / history / etc */
/* Visible for logged-in users */
#p-views,
#p-cactions {
display: block !important;
}
#p-views h3,
#p-cactions h3 {
display: none !important;
}
#p-views ul,
#p-cactions ul {
display: flex;
gap: 12px;
}
/* ------------------------------ */
/* HIDE EDIT / HISTORY FOR ANONYMOUS USERS */
.mw-anon-user #p-views,
.mw-anon-user #p-cactions {
display: none !important;
}
/* Hide section edit links for anon users */
.mw-anon-user .mw-editsection {
display: none !important;
}
/* ------------------------------ */
/* TOOLBOX + SEARCH: hidden */
#p-tb,
#search,
#searchInput,
.vector-search-box {
display: none !important;
}
/* ------------------------------ */
/* FOOTER + NOISE */
#footer,
.mw-footer,
#siteSub,
#contentSub,
.breadcrumb,
.mw-indicators {
display: none !important;
}
/* ------------------------------ */
/* CONTENT: FULL WIDTH, SMALL MARGINS */
#content {
max-width: none !important;
margin: 16px 20px !important;
padding: 0 !important;
}
#mw-content-text {
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
}
.mw-parser-output {
line-height: 1.6;
}
/* ------------------------------ */
/* MAIN PAGE (LANDING) */
body.page-Main_Page #content {
margin-top: 80px !important;
}
body.page-Main_Page #mw-content-text {
text-align: center;
}
/* Optional: highlight Request Account link */
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.1em;
}
body.page-Main_Page a[href*="Request_account"]:hover {
background-color: #005fa3;
}
/* ------------------------------ */
/* LINKS: minimal look */
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* ------------------------------ */
/* MOBILE SAFETY */
@media (max-width: 720px) {
#content {
margin: 12px !important;
}
#p-views ul,
#p-cactions ul {
flex-wrap: wrap;
}
}
#mw-prefsection-appearance {
display: none;
}