MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* Dark | /* ─── Flat Dark Theme (white text only) ───────────────── */ | ||
/* 1) Global reset & base */ | |||
* { | |||
box-shadow: none !important; | |||
border: none !important; | |||
border-radius: 0 !important; | |||
background: none !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
body, .mw-body, .mw-page-container { | body, .mw-body, .mw-page-container { | ||
background: # | background-color: #000000 !important; | ||
color: # | color: #ffffff !important; | ||
font-family: Arial, sans-serif !important; | font-family: Arial, sans-serif !important; | ||
font-size: 15px !important; | |||
line-height: 1.5 !important; | |||
} | |||
/* 2) Hide all logos & icons */ | |||
#p-logo, .mw-wiki-logo, | |||
#footer, #footer-info, #footer-icons, | |||
.mw-footer-logo, .printfooter, | |||
.ccicons, .license { | |||
display: none !important; | |||
} | |||
/* 3) Remove panels/boxes backgrounds & borders */ | |||
#mw-panel, #p-navigation, #p-tb, | |||
#mw-head, .vector-menu-content, .vector-menu-tabs, | |||
.mw-portlet, .portal, .vector-menu { | |||
background: none !important; | |||
border: none !important; | |||
} | } | ||
/* 4) Sidebar fixed & full height (optional) */ | |||
#mw-panel { | |||
position: fixed !important; | |||
top: 0; bottom: 0; left: 0; | |||
width: 160px; | |||
overflow-y: auto; | |||
padding-top: 20px !important; | |||
} | |||
.mw-body { | |||
margin-left: 170px !important; | |||
} | |||
/* 5) Headings – white, no borders */ | |||
h1, h2, h3, h4, h5, h6 { | |||
color: #ffffff !important; | |||
background: none !important; | |||
border: none !important; | |||
padding-bottom: 4px !important; | |||
margin-top: 1em !important; | |||
} | |||
/* 6) Links – white, underline on hover */ | |||
a, a:link, a:visited { | a, a:link, a:visited { | ||
color: | color: #ffffff !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
a:hover { | a:hover { | ||
color: #ffffff !important; | |||
text-decoration: underline !important; | text-decoration: underline !important; | ||
} | } | ||
/* 7) Tables & boxes – transparent */ | |||
table, th, td, .infobox, .navbox, .metadata { | |||
background: none !important; | |||
border: none !important; | |||
color: #ffffff !important; | |||
} | } | ||
/* 8) Forms & buttons – dark grey background, white text */ | |||
input, textarea, select, button { | input, textarea, select, button { | ||
background: # | background-color: #111111 !important; | ||
color: # | color: #ffffff !important; | ||
border: | border: none !important; | ||
font-family: Arial, sans-serif !important; | |||
padding: 6px 8px !important; | |||
} | |||
/* 9) CodeMirror / VisualEditor area – white text on black */ | |||
.CodeMirror, .mw-editsection, textarea#wpTextbox1 { | |||
background: #000000 !important; | |||
color: #ffffff !important; | |||
font-family: Consolas, monospace !important; | |||
} | |||
/* 10) Separator lines (if any) – subtle grey */ | |||
hr, #toc, .mw-headline { | |||
border-color: #333333 !important; | |||
} | } | ||
Revision as of 20:03, 1 July 2025
/* ─── Flat Dark Theme (white text only) ───────────────── */
/* 1) Global reset & base */
* {
box-shadow: none !important;
border: none !important;
border-radius: 0 !important;
background: none !important;
margin: 0 !important;
padding: 0 !important;
}
body, .mw-body, .mw-page-container {
background-color: #000000 !important;
color: #ffffff !important;
font-family: Arial, sans-serif !important;
font-size: 15px !important;
line-height: 1.5 !important;
}
/* 2) Hide all logos & icons */
#p-logo, .mw-wiki-logo,
#footer, #footer-info, #footer-icons,
.mw-footer-logo, .printfooter,
.ccicons, .license {
display: none !important;
}
/* 3) Remove panels/boxes backgrounds & borders */
#mw-panel, #p-navigation, #p-tb,
#mw-head, .vector-menu-content, .vector-menu-tabs,
.mw-portlet, .portal, .vector-menu {
background: none !important;
border: none !important;
}
/* 4) Sidebar fixed & full height (optional) */
#mw-panel {
position: fixed !important;
top: 0; bottom: 0; left: 0;
width: 160px;
overflow-y: auto;
padding-top: 20px !important;
}
.mw-body {
margin-left: 170px !important;
}
/* 5) Headings – white, no borders */
h1, h2, h3, h4, h5, h6 {
color: #ffffff !important;
background: none !important;
border: none !important;
padding-bottom: 4px !important;
margin-top: 1em !important;
}
/* 6) Links – white, underline on hover */
a, a:link, a:visited {
color: #ffffff !important;
text-decoration: none !important;
}
a:hover {
color: #ffffff !important;
text-decoration: underline !important;
}
/* 7) Tables & boxes – transparent */
table, th, td, .infobox, .navbox, .metadata {
background: none !important;
border: none !important;
color: #ffffff !important;
}
/* 8) Forms & buttons – dark grey background, white text */
input, textarea, select, button {
background-color: #111111 !important;
color: #ffffff !important;
border: none !important;
font-family: Arial, sans-serif !important;
padding: 6px 8px !important;
}
/* 9) CodeMirror / VisualEditor area – white text on black */
.CodeMirror, .mw-editsection, textarea#wpTextbox1 {
background: #000000 !important;
color: #ffffff !important;
font-family: Consolas, monospace !important;
}
/* 10) Separator lines (if any) – subtle grey */
hr, #toc, .mw-headline {
border-color: #333333 !important;
}