MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 54: | Line 54: | ||
--infobox-bg: #1e1e1e; | --infobox-bg: #1e1e1e; | ||
--infobox-text: #e0e0e0; | --infobox-text: #e0e0e0; | ||
} | |||
.cs-comment-wrapper { | |||
background-color: #f7f7f7; | |||
border: 1px solid #ccc; | |||
padding: 10px; | |||
border-radius: 6px; | |||
margin-top: 20px; | |||
} | } | ||
Revision as of 11:51, 16 October 2025
/* CSS placed here will be applied to all skins */
/* ====== Universal Infobox Styles ====== */
.infobox {
border: 1px solid #aaa;
background-color: var(--infobox-bg, #f9f9f9);
color: var(--infobox-text, #000);
padding: 10px;
margin: 1em 0;
width: 280px;
font-size: 90%;
line-height: 1.6em;
border-radius: 6px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Header styling */
.infobox-header {
font-weight: bold;
font-size: 120%;
text-align: center;
margin-bottom: 8px;
padding: 4px;
border-bottom: 1px solid #ccc;
}
/* Image block */
.infobox-image {
text-align: center;
margin: 10px 0;
}
.infobox-image img {
max-width: 250px;
height: auto;
border: 1px solid #ddd;
border-radius: 4px;
background: #fff;
padding: 2px;
}
/* Row styling */
.infobox-row {
margin: 6px 0;
}
/* ====== Specific Classes (all inherit base .infobox) ====== */
.mod-infobox { background-color: var(--infobox-bg, #f9f9f9); }
.enemy-infobox { background-color: var(--infobox-bg, #f9f9f9); }
.utility-infobox { background-color: var(--infobox-bg, #f9f9f9); }
.modder-infobox { background-color: var(--infobox-bg, #f9f9f9); }
/* ====== Dark mode overrides (if skin supports CSS variables) ====== */
html[data-theme='dark'] {
--infobox-bg: #1e1e1e;
--infobox-text: #e0e0e0;
}
.cs-comment-wrapper {
background-color: #f7f7f7;
border: 1px solid #ccc;
padding: 10px;
border-radius: 6px;
margin-top: 20px;
}