Jump to content

MediaWiki:Common.css: Difference between revisions

From Project Arise Wiki
Content deleted Content added
Initial wiki setup
 
Templates for items, creatures and loot
Line 1: Line 1:
/* Main page: no "Main Page" heading */
/* Main page: no "Main Page" heading */
.page-Main_Page .mw-first-heading { display: none; }
.page-Main_Page .mw-first-heading { display: none; }

/* Infoboxes ({{Infobox item}}, {{Infobox creature}}) */
.infobox {
float: right; clear: right; width: 260px; margin: 0 0 1em 1.5em;
border: 1px solid var(--border-color-subtle, #c8ccd1);
background: var(--background-color-neutral-subtle, #f8f9fa);
font-size: 0.9em;
}
.infobox-title { padding: .5em .75em; font-weight: 700; font-size: 1.1em; border-bottom: 3px solid #e8571c; }
.infobox-image { text-align: center; padding: .5em; }
.infobox-row { display: grid; grid-template-columns: 90px 1fr; gap: .5em; padding: .35em .75em; border-top: 1px solid var(--border-color-subtle, #eaecf0); }
.infobox-row > span:first-child { font-weight: 600; }
@media (max-width: 720px) { .infobox { float: none; width: auto; margin: 0 0 1em; } }

/* {{Rarity}} */
.rarity { font-weight: 600; }
.rarity-common { color: #72777d; }
.rarity-uncommon { color: #2a8a3a; }
.rarity-rare { color: #2a6fdb; }
.rarity-heroic { color: #b8860b; }
.rarity-epic { color: #8e44c9; }
.rarity-legendary { color: #e8571c; }

Revision as of 17:30, 16 November 2026

/* Main page: no "Main Page" heading */
.page-Main_Page .mw-first-heading { display: none; }

/* Infoboxes ({{Infobox item}}, {{Infobox creature}}) */
.infobox {
	float: right; clear: right; width: 260px; margin: 0 0 1em 1.5em;
	border: 1px solid var(--border-color-subtle, #c8ccd1);
	background: var(--background-color-neutral-subtle, #f8f9fa);
	font-size: 0.9em;
}
.infobox-title { padding: .5em .75em; font-weight: 700; font-size: 1.1em; border-bottom: 3px solid #e8571c; }
.infobox-image { text-align: center; padding: .5em; }
.infobox-row { display: grid; grid-template-columns: 90px 1fr; gap: .5em; padding: .35em .75em; border-top: 1px solid var(--border-color-subtle, #eaecf0); }
.infobox-row > span:first-child { font-weight: 600; }
@media (max-width: 720px) { .infobox { float: none; width: auto; margin: 0 0 1em; } }

/* {{Rarity}} */
.rarity { font-weight: 600; }
.rarity-common { color: #72777d; }
.rarity-uncommon { color: #2a8a3a; }
.rarity-rare { color: #2a6fdb; }
.rarity-heroic { color: #b8860b; }
.rarity-epic { color: #8e44c9; }
.rarity-legendary { color: #e8571c; }