MediaWiki:Common.css: Difference between revisions
Appearance
Taurussmith (talk | contribs) No edit summary |
Taurussmith (talk | contribs) No edit summary |
||
| Line 22: | Line 22: | ||
font-size: 90%; | font-size: 90%; | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
} | } | ||
/* sidebar */ | /* sidebar */ | ||
.vector-sidebar-container { | .vector-sidebar-container { | ||
background-color: #0f1115 !important; | background-color: #0f1115 !important; | ||
} | } | ||
| Line 135: | Line 116: | ||
display:flex; | display:flex; | ||
gap:10px; | gap:10px; | ||
} | } | ||
| Line 407: | Line 374: | ||
background: #ffffff; | background: #ffffff; | ||
color: #202122; | color: #202122; | ||
} | } | ||
| Line 442: | Line 402: | ||
border-bottom: 1px solid #444; | border-bottom: 1px solid #444; | ||
} | } | ||
} | |||
:root { | |||
color-scheme: light dark; | |||
} | } | ||
Revision as of 07:16, 14 March 2026
/* CSS placed here will be applied to all skins */
/* Remove underline from links */
a {
text-decoration: none;
}
/* Show underline only when hovering */
a:hover {
text-decoration: underline;
}
.search-shortdesc {
font-size: 12px;
color: #54595d;
margin-top: 2px;
}
.infobox {
float: right;
width: 270px;
border: 1px solid #a2a9b1;
background: #f8f9fa;
color: #202122;
font-size: 90%;
margin: 0 0 1em 1em;
}
/* sidebar */
.vector-sidebar-container {
background-color: #0f1115 !important;
}
/* links */
a {
color: #6ea8ff !important;
}
.infobox th {
background: #eaecf0;
color: #202122;
text-align: left;
padding: 4px;
}
.infobox td {
color: #202122;
padding: 4px;
}
.infobox a {
color: #0645ad;
}
/* Replace default protection lock */
.mw-indicators .mw-indicator {
background-image: url("/wiki/File:Padlock-full.png");
background-size: 20px 20px;
background-repeat: no-repeat;
width: 20px;
height: 20px;
}
.mw-indicators img {
display: none;
}
/* Hide MediaWiki protection indicator */
.mw-indicators {
display: none !important;
}
/* Replace MediaWiki protection lock with F padlock */
.mw-indicator img {
display: none;
}
.mw-indicator {
width:20px;
height:20px;
background-image:url("/images/9/91/Padlock-full.png");
background-size:20px 20px;
background-repeat:no-repeat;
}
/* Replace protection lock icon */
.mw-indicators img {
display:none !important;
}
.mw-indicators::before {
content:"";
display:inline-block;
width:20px;
height:20px;
background-image:url("/images/9/91/Padlock-full.png");
background-size:contain;
background-repeat:no-repeat;
}
/* Replace the protection indicator icon */
.mw-indicators img {
display:none;
}
.mw-indicators {
width:20px;
height:20px;
background-image:url("/images/9/91/Padlock-full.png");
background-repeat:no-repeat;
background-size:20px 20px;
}
.mp-box {
border:1px solid #a2a9b1;
padding:10px;
margin-bottom:10px;
background:#f8f9fa;
}
#mp-upper {
display:flex;
gap:10px;
}
/* Sidebar */
.vector-sidebar {
background-color: #0f1115 !important;
}
/* Page content boxes */
.mw-parser-output > div,
.mw-parser-output table {
background-color: #161b22 !important;
}
/* Links */
a {
color: #6ea8ff !important;
}
/* Borders */
hr, .mw-body, .vector-page-titlebar {
border-color: #2b3137 !important;
}
.infobox,
.infobox td,
.infobox th {
background-color: #1e1e1e;
color: #ffffff;
}
.infobox a {
color: #4da3ff;
}
.infobox th {
background-color: #2a2a2a;
}
.infobox {
background:#1f2328;
color:#ffffff;
border:1px solid #444;
}
.infobox th {
background:#2b3137;
color:#ffffff;
}
.infobox td {
background:#1f2328;
color:#ffffff;
}
.infobox a {
color:#58a6ff;
}
.infobox th[colspan="2"] {
background-color: #2a2a2a !important;
color: #ffffff !important;
}
.infobox th {
color: #ffffff !important;
}
.infobox td {
color: #e6e6e6 !important;
}
.infobox,
.infobox tbody,
.infobox tr,
.infobox th,
.infobox td {
background:#1e1e1e !important;
color:#ffffff !important;
}
.infobox th[colspan="2"] {
background:#2b2b2b !important;
color:#ffffff !important;
font-weight:bold;
}
.pp-protected-icon{
float:right;
margin-left:6px;
background:transparent;
}
.pp-warning{
color:#ff4d4d;
font-size:13px;
font-style:italic;
}
.infobox-person {
width: 22em;
font-size: 90%;
border: 1px solid #a2a9b1;
border-collapse: collapse;
background: #fff;
}
.infobox-title {
text-align: center;
font-size: 125%;
background: #eaecf0;
padding: 6px;
}
.infobox-image {
text-align: center;
padding: 5px;
}
.infobox-header {
background: #eaecf0;
text-align: center;
font-weight: bold;
}
.infobox-label {
background: #f8f9fa;
text-align: left;
padding: 4px;
}
.infobox-data {
padding: 4px;
}
.flatlist {
display: inline;
}
.flatlist ul,
.flatlist li {
display: inline;
list-style: none;
margin: 0;
padding: 0;
}
.flatlist li:not(:last-child):after {
content: " • ";
}
/* Documentation template styling */
.template-documentation {
border: 1px solid #aaa;
background-color: #f9f9f9;
padding: 0.5em;
margin: 1em 0;
clear: both;
}
.template-documentation-header {
font-weight: bold;
margin-bottom: 0.5em;
border-bottom: 1px solid #aaa;
padding-bottom: 0.2em;
}
.template-documentation-icon {
font-size: 1.2em;
margin-right: 0.5em;
}
.template-documentation-footer {
font-size: 0.9em;
color: #666;
margin-top: 0.5em;
border-top: 1px solid #aaa;
padding-top: 0.2em;
}
.flatlist ul {
margin: 0;
padding: 0;
list-style: none;
}
.flatlist li {
display: inline;
}
.flatlist li::after {
content: " • ";
}
.flatlist li:last-child::after {
content: "";
}
.hlist ul {
margin: 0;
padding: 0;
list-style: none;
}
.hlist li {
display: inline;
}
.hlist li::after {
content: " • ";
}
.hlist li:last-child::after {
content: "";
}
.mw-body {
max-width: 1100px;
margin: auto;
}
body {
color: inherit;
background: inherit;
}
@media (prefers-color-scheme: dark) {
body {
background: #202122;
color: #eaecf0;
}
}
/* Reset wiki to standard light theme */
body,
.mw-body,
.mw-body-content,
#content,
.skin-vector {
background-color: #ffffff !important;
color: #202122 !important;
}
/* Fix headings */
h1, h2, h3, h4, h5, h6 {
color: #202122 !important;
}
/* Links like Wikipedia */
a {
color: #3366cc;
}
/* Fix section headers */
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4 {
background: transparent !important;
color: #202122 !important;
border-bottom: 1px solid #a2a9b1;
}
/* Standard wiki infobox style */
.infobox {
background: #f8f9fa !important;
color: #202122 !important;
border: 1px solid #a2a9b1;
}
.infobox th {
background: #eaecf0 !important;
}
/* Light mode (default) */
body,
.mw-body,
#content {
background: #ffffff;
color: #202122;
}
/* DARK MODE */
@media (prefers-color-scheme: dark) {
body,
.mw-body,
#content {
background: #202124;
color: #e8eaed;
}
a {
color: #8ab4f8;
}
/* Infobox in dark mode */
.infobox {
background: #2a2a2a;
color: #e8eaed;
border: 1px solid #444;
}
/* Headers */
h1, h2, h3, h4 {
color: #e8eaed;
border-bottom: 1px solid #444;
}
}
:root {
color-scheme: light dark;
}