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: | ||
/* ─── Flat Dark Theme | /* ─── Flat Dark Theme with Action Tabs & Fixed Sidebar ───────────────── */ | ||
/* 1) Global reset */ | /* 1) Global reset */ | ||
| Line 5: | Line 5: | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
border: none !important; | |||
box-shadow: none !important; | box-shadow: none !important; | ||
background: none !important; | |||
border-radius: 0 !important; | border-radius: 0 !important; | ||
} | } | ||
/* 2) Base body | /* 2) Base typography & body */ | ||
body, .mw-body, .mw-page-container { | body, .mw-body, .mw-page-container { | ||
background | background: #000 !important; | ||
color: #fff !important; | color: #fff !important; | ||
font-family: Arial, sans-serif !important; | font-family: Arial, sans-serif !important; | ||
font-size: 15px !important; | font-size: 15px !important; | ||
line-height: 1.6 !important; | line-height: 1.6 !important; | ||
/* reserve space for sidebar and top tabs */ | |||
padding-left: 200px !important; | |||
padding-top: 40px !important; | |||
} | } | ||
/* 3) | /* 3) Page action tabs (Read/Edit/View source/History) */ | ||
#p-views { | |||
position: fixed; | position: fixed !important; | ||
top: 0; left: | top: 0; left: 200px; right: 0; | ||
background | background: #111 !important; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #333 !important; | ||
z-index: | z-index: 800 !important; | ||
} | } | ||
#p-views ul { | |||
margin: 0 | display: flex !important; | ||
list-style: none !important; | |||
margin: 0 !important; | |||
padding: 0 10px !important; | |||
} | } | ||
#p-views li { | |||
margin-right: 8px !important; | |||
} | } | ||
#p-views li a { | |||
display: block !important; | |||
padding: 10px 12px !important; | padding: 10px 12px !important; | ||
color: #ff66cc !important; | color: #ff66cc !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
#p-views li a:hover { | |||
background | background: #222 !important; | ||
} | } | ||
/* 4) | /* 4) Fixed sidebar */ | ||
#mw-panel { | #mw-panel { | ||
position: fixed !important; | position: fixed !important; | ||
top: 40px; bottom: 0; left: 0; | top: 40px; bottom: 0; left: 0; | ||
width: | width: 200px !important; | ||
background | background: #111 !important; | ||
overflow-y: auto !important; | overflow-y: auto !important; | ||
padding: 10px !important; | padding: 10px !important; | ||
z-index: | z-index: 700 !important; | ||
} | } | ||
/* Push content right of sidebar */ | |||
.mw-body { | .mw-body { | ||
margin-left: | margin-left: 200px !important; | ||
} | } | ||
/* 5) Sidebar headings & links */ | |||
#mw-panel .portal h3 { | #mw-panel .portal h3 { | ||
color: #ff66cc !important; | color: #ff66cc !important; | ||
font-size: 14px !important; | |||
margin-bottom: 8px !important; | margin-bottom: 8px !important; | ||
border-bottom: 1px solid #333 !important; | |||
border-bottom: 1px solid # | |||
padding-bottom: 4px !important; | padding-bottom: 4px !important; | ||
} | } | ||
| Line 71: | Line 79: | ||
#mw-panel .portal ul li a { | #mw-panel .portal ul li a { | ||
display: block !important; | display: block !important; | ||
color: #fff !important; | |||
padding: 4px 0 !important; | padding: 4px 0 !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
| Line 79: | Line 87: | ||
} | } | ||
/* | /* 6) Main content area */ | ||
#content, #bodyContent | #content, #bodyContent { | ||
background: transparent !important; | background: transparent !important; | ||
border: none !important; | border: none !important; | ||
padding: 60px 20px 20px 20px !important; /* top | padding: 60px 20px 20px 20px !important; /* top padding = tabs height + small gap */ | ||
} | } | ||
/* | /* 7) Headings without underlines */ | ||
h1, h2, h3, h4, h5, h6 { | h1, h2, h3, h4, h5, h6 { | ||
color: #fff !important; | color: #fff !important; | ||
background: none !important; | background: none !important; | ||
border | border: none !important; | ||
margin: 1em 0 0.5em 0 !important; | margin: 1em 0 0.5em 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
/* | /* 8) Pink links */ | ||
a, a:link, a:visited { | a, a:link, a:visited { | ||
color: #ff66cc !important; | color: #ff66cc !important; | ||
| Line 101: | Line 109: | ||
} | } | ||
a:hover { | a:hover { | ||
text-decoration: underline !important; | text-decoration: underline !important; | ||
} | } | ||
/* | /* 9) Tables & infoboxes transparent */ | ||
table, th, td, .infobox, .navbox, .wikitable { | table, th, td, .infobox, .navbox, .wikitable { | ||
background: transparent !important; | background: transparent !important; | ||
| Line 112: | Line 119: | ||
} | } | ||
/* | /* 10) Forms & buttons */ | ||
input, textarea, select, button { | input, textarea, select, button { | ||
background | background: #111 !important; | ||
color: #fff !important; | color: #fff !important; | ||
border: 1px solid #222 !important; | border: 1px solid #222 !important; | ||
| Line 121: | Line 128: | ||
} | } | ||
/* 11) Editor textarea & CodeMirror */ | |||
/* 11) | |||
textarea#wpTextbox1, .CodeMirror, .ace_editor { | textarea#wpTextbox1, .CodeMirror, .ace_editor { | ||
background: #111 !important; | background: #111 !important; | ||
Revision as of 20:32, 1 July 2025
/* ─── Flat Dark Theme with Action Tabs & Fixed Sidebar ───────────────── */
/* 1) Global reset */
* {
margin: 0 !important;
padding: 0 !important;
border: none !important;
box-shadow: none !important;
background: none !important;
border-radius: 0 !important;
}
/* 2) Base typography & body */
body, .mw-body, .mw-page-container {
background: #000 !important;
color: #fff !important;
font-family: Arial, sans-serif !important;
font-size: 15px !important;
line-height: 1.6 !important;
/* reserve space for sidebar and top tabs */
padding-left: 200px !important;
padding-top: 40px !important;
}
/* 3) Page action tabs (Read/Edit/View source/History) */
#p-views {
position: fixed !important;
top: 0; left: 200px; right: 0;
background: #111 !important;
border-bottom: 1px solid #333 !important;
z-index: 800 !important;
}
#p-views ul {
display: flex !important;
list-style: none !important;
margin: 0 !important;
padding: 0 10px !important;
}
#p-views li {
margin-right: 8px !important;
}
#p-views li a {
display: block !important;
padding: 10px 12px !important;
color: #ff66cc !important;
text-decoration: none !important;
}
#p-views li a:hover {
background: #222 !important;
}
/* 4) Fixed sidebar */
#mw-panel {
position: fixed !important;
top: 40px; bottom: 0; left: 0;
width: 200px !important;
background: #111 !important;
overflow-y: auto !important;
padding: 10px !important;
z-index: 700 !important;
}
/* Push content right of sidebar */
.mw-body {
margin-left: 200px !important;
}
/* 5) Sidebar headings & links */
#mw-panel .portal h3 {
color: #ff66cc !important;
font-size: 14px !important;
margin-bottom: 8px !important;
border-bottom: 1px solid #333 !important;
padding-bottom: 4px !important;
}
#mw-panel .portal ul {
list-style: none !important;
padding-left: 0 !important;
}
#mw-panel .portal ul li a {
display: block !important;
color: #fff !important;
padding: 4px 0 !important;
text-decoration: none !important;
}
#mw-panel .portal ul li a:hover {
text-decoration: underline !important;
}
/* 6) Main content area */
#content, #bodyContent {
background: transparent !important;
border: none !important;
padding: 60px 20px 20px 20px !important; /* top padding = tabs height + small gap */
}
/* 7) Headings without underlines */
h1, h2, h3, h4, h5, h6 {
color: #fff !important;
background: none !important;
border: none !important;
margin: 1em 0 0.5em 0 !important;
padding: 0 !important;
}
/* 8) Pink links */
a, a:link, a:visited {
color: #ff66cc !important;
text-decoration: none !important;
}
a:hover {
text-decoration: underline !important;
}
/* 9) Tables & infoboxes transparent */
table, th, td, .infobox, .navbox, .wikitable {
background: transparent !important;
border: none !important;
color: #fff !important;
}
/* 10) Forms & buttons */
input, textarea, select, button {
background: #111 !important;
color: #fff !important;
border: 1px solid #222 !important;
padding: 6px 8px !important;
font-family: Arial, sans-serif !important;
}
/* 11) Editor textarea & CodeMirror */
textarea#wpTextbox1, .CodeMirror, .ace_editor {
background: #111 !important;
color: #fff !important;
font-family: Consolas, monospace !important;
}
/* 12) Hide logos & footer icons */
#p-logo, .mw-wiki-logo,
#footer, #footer-info, #footer-icons,
.mw-footer-logo, .printfooter,
.ccicons, .license {
display: none !important;
}