MediaWiki:Common.css: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
No edit summary
Line 106: Line 106:
   =========================== */
   =========================== */


wiki-home {
.wiki-home {
--wh-bg: #14161c;
--wh-border-top: #fdf7d4;
--wh-panel: #1c1f28;
--wh-bg: #ffffff;
--wh-border: #2e323d;
--wh-heading: #202122;
--wh-accent: #d4af37;
--wh-rule: #a2a9b1;        
--wh-text: #e8e6e1;
--wh-link: #0645ad;
--wh-text-dim: #a8a8ab;
--wh-link-visited: #0b0080;
--wh-text-dim: #54595d;
 
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
gap: 24px;
gap: 32px;
background: var(--wh-bg);
background: var(--wh-bg);
color: var(--wh-text);
color: #202122;
border: 1px solid var(--wh-border);
border-top: 6px solid var(--wh-border-top);
border-radius: 10px;
padding: 24px 32px 32px;
padding: 28px;
margin: 0 0 1em;
margin: 1em 0;
font-family: sans-serif;
font-family: "Segoe UI", Helvetica, Arial, sans-serif;
}
}
 
/* Shared column styling */
/* ---- Side columns ---- */
.wiki-home-left,
.wiki-home-left,
.wiki-home-right {
.wiki-home-right {
Line 132: Line 132:
min-width: 200px;
min-width: 200px;
}
}
 
.wiki-home-left h2,
.wiki-home-left h2,
.wiki-home-right h2 {
.wiki-home-right h2 {
font-size: 1em;
font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
text-transform: uppercase;
font-weight: normal;
letter-spacing: 0.08em;
font-size: 1.6em;
color: var(--wh-accent);
color: var(--wh-heading);
border-bottom: 1px solid var(--wh-border);
border-bottom: 1px solid var(--wh-rule);
padding-bottom: 6px;
padding-bottom: 4px;
margin: 0 0 10px;
margin: 0 0 10px;
}
}
 
.wiki-home-left h3,
.wiki-home-left h3,
.wiki-home-right h3 {
.wiki-home-right h3 {
font-size: 0.85em;
font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
text-transform: uppercase;
font-weight: normal;
letter-spacing: 0.06em;
font-size: 1.3em;
color: var(--wh-text-dim);
color: var(--wh-heading);
margin: 18px 0 8px;
border-bottom: 1px solid var(--wh-rule);
padding-bottom: 3px;
margin: 22px 0 10px;
}
}
 
.wiki-home-left ul,
.wiki-home-left ul,
.wiki-home-right ul {
.wiki-home-right ul {
Line 159: Line 161:
padding: 0;
padding: 0;
}
}
 
.wiki-home-left ul ul,
.wiki-home-left ul ul,
.wiki-home-right ul ul {
.wiki-home-right ul ul {
margin: 4px 0 4px 12px;
margin: 2px 0 2px 4px;
padding-left: 8px;
border-left: 1px solid var(--wh-border);
}
}
 
.wiki-home-left li,
.wiki-home-left li,
.wiki-home-right li {
.wiki-home-right li {
padding: 4px 0;
position: relative;
font-size: 0.92em;
padding: 3px 0 3px 14px;
font-size: 0.95em;
}
 
.wiki-home-left li::before,
.wiki-home-right li::before {
content: "";
position: absolute;
left: 0;
top: 11px;
width: 6px;
height: 6px;
background: var(--wh-rule);
}
}
 
.wiki-home-left a,
.wiki-home-left a,
.wiki-home-right a {
.wiki-home-right a {
color: var(--wh-text);
color: var(--wh-link);
text-decoration: none;
text-decoration: none;
transition: color 0.15s ease;
}
}
 
.wiki-home-left a:visited,
.wiki-home-right a:visited {
color: var(--wh-link-visited);
}
 
.wiki-home-left a:hover,
.wiki-home-left a:hover,
.wiki-home-right a:hover {
.wiki-home-right a:hover {
color: var(--wh-accent);
text-decoration: underline;
text-decoration: underline;
}
}
   
 
/* Center hero panel */
/* External links (Discord, Website, etc.) */
.wiki-home-left a[href^="http"]::after,
.wiki-home-right a[href^="http"]::after {
content: "";
display: inline-block;
width: 0.7em;
height: 0.7em;
margin-left: 3px;
background: currentColor;
-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path d="M2 2h4v1H3v6h6V6h1v4H2z"/><path d="M6 1h5v5h-1V2.7L5.4 7.3l-.7-.7L9.3 2H6z"/></svg>') no-repeat center / contain;
mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path d="M2 2h4v1H3v6h6V6h1v4H2z"/><path d="M6 1h5v5h-1V2.7L5.4 7.3l-.7-.7L9.3 2H6z"/></svg>') no-repeat center / contain;
opacity: 0.6;
}
 
/* Statistics numbers */
.wiki-home-left b {
color: var(--wh-heading);
}
 
/* ---- Center hero panel ---- */
.wiki-home-center {
.wiki-home-center {
flex: 2 1 320px;
flex: 2 1 340px;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
align-items: center;
align-items: center;
text-align: center;
text-align: center;
background: var(--wh-panel);
border: 1px solid var(--wh-border);
border-radius: 8px;
padding: 24px 20px;
}
}
 
.wiki-home-title {
.wiki-home-title {
font-size: 1em;
font-family: sans-serif;
font-size: 0.85em;
color: var(--wh-text-dim);
color: var(--wh-text-dim);
line-height: 1.4;
line-height: 1.4;
margin-bottom: 14px;
margin-bottom: 4px;
}
}
 
.wiki-home-title span {
.wiki-home-title span {
display: block;
display: block;
font-size: 1.8em;
font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
font-weight: 700;
font-size: 1.7em;
color: var(--wh-accent);
font-weight: bold;
color: var(--wh-heading);
margin-top: 2px;
margin-top: 2px;
letter-spacing: 0.02em;
}
}
 
.wiki-home-logo {
.wiki-home-logo {
margin: 8px 0 16px;
margin: 18px 0 22px;
}
}
 
.wiki-home-logo img {
.wiki-home-logo img {
border-radius: 8px;
max-width: 100%;
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
height: auto;
}
}
 
.wiki-home-description {
.wiki-home-description {
font-size: 0.95em;
font-size: 1em;
color: var(--wh-text-dim);
color: #202122;
max-width: 42em;
max-width: 40em;
line-height: 1.6;
line-height: 1.6;
}
}
 
/* Stats numbers stand out */
/* ---- Responsive stacking ---- */
.wiki-home-left b {
color: var(--wh-accent);
}
/* Stack on small screens */
@media (max-width: 780px) {
@media (max-width: 780px) {
.wiki-home {
.wiki-home {

Revision as of 20:22, 25 July 2026

.character-infobox {
    float: right;
    width: 300px;
    margin: 0 0 1em 1em;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid var(--infobox-color);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    font-size: 90%;
}


/* Title/Header */
.character-infobox-title {
    background: var(--infobox-color);
    color: var(--infobox-text);
    text-align: center;
    font-size: 130%;
    font-weight: bold;
    padding: 10px;
    border-radius: 0;
}


/* Image Area */
.character-infobox-image {
    text-align: center;
    padding: 12px;
    background: #f7f7f7;
}


/* Labels */
.character-infobox th {
    width: 35%;
    text-align: left;
    vertical-align: top;
    padding: 7px;
    background: #eeeeee;
    border-top: 1px solid #d5d5d5;
    font-weight: bold;
}


/* Values */
.character-infobox td {
    padding: 7px;
    border-top: 1px solid #d5d5d5;
    background: #ffffff;
}


/* Remove first row borders */
.character-infobox tr:first-of-type th,
.character-infobox tr:first-of-type td {
    border-top: none;
}


/* Hover effect */
.character-infobox tr:hover th,
.character-infobox tr:hover td {
    background: rgba(0,0,0,0.04);
}


/* Bottom rounded corners */
.character-infobox tr:last-child th {
    border-radius: 0 0 0 8px;
}

.character-infobox tr:last-child td {
    border-radius: 0 0 8px 0;
}


/* Image rounding */
.character-infobox-image img {
    max-width: 100%;
    height: auto;
}


/* Links inside infobox */
.character-infobox a {
    color: inherit;
}


/* Mobile support */
@media screen and (max-width: 700px) {

    .character-infobox {
        float: none;
        width: 100%;
        margin: 1em 0;
    }

}

/* ===========================
   Wiki Home Template Styling
   =========================== */

.wiki-home {
	--wh-border-top: #fdf7d4;
	--wh-bg: #ffffff;
	--wh-heading: #202122;
	--wh-rule: #a2a9b1;         
	--wh-link: #0645ad;
	--wh-link-visited: #0b0080;
	--wh-text-dim: #54595d;

	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	background: var(--wh-bg);
	color: #202122;
	border-top: 6px solid var(--wh-border-top);
	padding: 24px 32px 32px;
	margin: 0 0 1em;
	font-family: sans-serif;
}

/* ---- Side columns ---- */
.wiki-home-left,
.wiki-home-right {
	flex: 1 1 220px;
	min-width: 200px;
}

.wiki-home-left h2,
.wiki-home-right h2 {
	font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
	font-weight: normal;
	font-size: 1.6em;
	color: var(--wh-heading);
	border-bottom: 1px solid var(--wh-rule);
	padding-bottom: 4px;
	margin: 0 0 10px;
}

.wiki-home-left h3,
.wiki-home-right h3 {
	font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
	font-weight: normal;
	font-size: 1.3em;
	color: var(--wh-heading);
	border-bottom: 1px solid var(--wh-rule);
	padding-bottom: 3px;
	margin: 22px 0 10px;
}

.wiki-home-left ul,
.wiki-home-right ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wiki-home-left ul ul,
.wiki-home-right ul ul {
	margin: 2px 0 2px 4px;
}

.wiki-home-left li,
.wiki-home-right li {
	position: relative;
	padding: 3px 0 3px 14px;
	font-size: 0.95em;
}

.wiki-home-left li::before,
.wiki-home-right li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 11px;
	width: 6px;
	height: 6px;
	background: var(--wh-rule);
}

.wiki-home-left a,
.wiki-home-right a {
	color: var(--wh-link);
	text-decoration: none;
}

.wiki-home-left a:visited,
.wiki-home-right a:visited {
	color: var(--wh-link-visited);
}

.wiki-home-left a:hover,
.wiki-home-right a:hover {
	text-decoration: underline;
}

/* External links (Discord, Website, etc.)  */
.wiki-home-left a[href^="http"]::after,
.wiki-home-right a[href^="http"]::after {
	content: "";
	display: inline-block;
	width: 0.7em;
	height: 0.7em;
	margin-left: 3px;
	background: currentColor;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path d="M2 2h4v1H3v6h6V6h1v4H2z"/><path d="M6 1h5v5h-1V2.7L5.4 7.3l-.7-.7L9.3 2H6z"/></svg>') no-repeat center / contain;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path d="M2 2h4v1H3v6h6V6h1v4H2z"/><path d="M6 1h5v5h-1V2.7L5.4 7.3l-.7-.7L9.3 2H6z"/></svg>') no-repeat center / contain;
	opacity: 0.6;
}

/* Statistics numbers */
.wiki-home-left b {
	color: var(--wh-heading);
}

/* ---- Center hero panel ---- */
.wiki-home-center {
	flex: 2 1 340px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.wiki-home-title {
	font-family: sans-serif;
	font-size: 0.85em;
	color: var(--wh-text-dim);
	line-height: 1.4;
	margin-bottom: 4px;
}

.wiki-home-title span {
	display: block;
	font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
	font-size: 1.7em;
	font-weight: bold;
	color: var(--wh-heading);
	margin-top: 2px;
}

.wiki-home-logo {
	margin: 18px 0 22px;
}

.wiki-home-logo img {
	max-width: 100%;
	height: auto;
}

.wiki-home-description {
	font-size: 1em;
	color: #202122;
	max-width: 40em;
	line-height: 1.6;
}

/* ---- Responsive stacking ---- */
@media (max-width: 780px) {
	.wiki-home {
		flex-direction: column;
	}
	.wiki-home-center {
		order: -1;
	}
}