MediaWiki:Common.css
Nota: Após publicar, você pode ter que limpar o "cache" do seu navegador para ver as alterações.
- Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
- Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
- Edge: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5.
- Opera: Pressione Ctrl-F5.
/* =========================================================
🌙 DARK THEME GLOBAL (WIKI)
========================================================= */
body,
#content,
.mw-body,
#mw-head,
#footer {
background-color: #202225 !important;
color: #ffffff !important;
border: none !important;
box-shadow: none !important;
}
/* =========================================================
✨ TRANSIÇÕES SUAVES
========================================================= */
a,
button,
input,
select,
textarea,
#mw-panel a,
.vector-menu-tabs a,
#p-personal a {
transition: all 0.2s ease-in-out !important;
}
/* =========================================================
🔗 LINKS
========================================================= */
a, a:visited, a:link {
color: #ffffff !important;
text-decoration: none;
}
a:hover {
color: #dddddd !important;
opacity: 0.85;
}
/* =========================================================
📂 SIDEBAR
========================================================= */
#mw-panel,
#mw-panel .portal,
#mw-panel .body,
#mw-panel .vector-menu-content {
background-color: #2c2f33 !important;
border: none !important;
}
#mw-panel a {
display: block;
background-color: #2c2f33 !important;
color: #ffffff !important;
padding: 6px 10px;
border-radius: 4px;
border: none !important;
}
#mw-panel a:hover {
background-color: #23272a !important;
transform: translateX(4px);
}
/* =========================================================
🔝 TOPO (BOTÕES)
========================================================= */
.vector-menu-tabs,
.vector-menu-tabs ul,
.vector-menu-tabs li,
.vector-menu-tabs a,
.vector-menu-tabs li a,
.vector-menu-tabs li.selected a,
#p-personal,
#p-personal a,
.mw-portlet,
.vector-menu {
background-color: #202225 !important;
color: #ffffff !important;
border: none !important;
}
.vector-menu-tabs a:hover,
#p-personal a:hover {
background-color: #2c2f33 !important;
transform: translateY(-1px);
}
.vector-menu-tabs li.selected a {
background-color: #2c2f33 !important;
}
/* =========================================================
🔘 BOTÕES / INPUTS
========================================================= */
button,
input,
select,
textarea {
background-color: #2c2f33 !important;
color: #ffffff !important;
border: none !important;
}
button:hover,
input:hover,
select:hover {
background-color: #23272a !important;
transform: scale(1.03);
}
/* =========================================================
📊 TABELAS
========================================================= */
table,
.wikitable {
background-color: #2c2f33 !important;
color: #ffffff !important;
border: 1px solid #444 !important;
}
th {
background-color: #23272a !important;
}
td {
background-color: #2c2f33 !important;
}
/* =========================================================
📦 INFOBOX / NAVBOX
========================================================= */
.infobox,
.navbox {
background-color: #2c2f33 !important;
color: #ffffff !important;
}
/* =========================================================
📑 ÍNDICE (TOC COMPLETO)
========================================================= */
#toc,
.toc,
.toc ul,
.toc li,
.tocnumber,
.toctext {
background-color: #2c2f33 !important;
color: #ffffff !important;
}
#toc {
border: 1px solid #444 !important;
}
#toc a {
color: #ffffff !important;
}
#toc a:hover {
background-color: #23272a !important;
}
/* =========================================================
📝 TEXTO E TÍTULOS
========================================================= */
h1, h2, h3, h4, h5, h6,
.mw-headline,
p, span, li {
color: #ffffff !important;
}
/* =========================================================
🚫 REMOVE BRANCOS INLINE
========================================================= */
[style*="background:#fff"],
[style*="background: white"],
[style*="background-color:#fff"],
[style*="background-color: white"] {
background-color: #2c2f33 !important;
color: #ffffff !important;
}
/* =========================================================
🧠 IMPORTANTE: NÃO QUEBRAR EDIÇÃO
========================================================= */
/* NÃO aplica dark na edição */
body.action-edit,
body.action-submit {
background-color: #ffffff !important;
color: #000000 !important;
}
/* textarea edição */
body.action-edit textarea,
body.action-submit textarea {
background-color: #ffffff !important;
color: #000000 !important;
border: 1px solid #ccc !important;
}
/* editor visual */
body.action-edit .ve-ui-surface,
body.action-edit .ve-ce-attachedRootNode {
background-color: #ffffff !important;
color: #000000 !important;
}
/* toolbar */
body.action-edit .oo-ui-toolbar,
body.action-edit .ve-ui-toolbar {
background-color: #f0f0f0 !important;
}
/* inputs na edição */
body.action-edit input,
body.action-edit select,
body.action-edit button {
background-color: #ffffff !important;
color: #000000 !important;
border: 1px solid #ccc !important;
}
/* links na edição */
body.action-edit a {
color: #0645ad !important;
}