MediaWiki:Common.css: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 102: Line 102:
}
}


.wiki-welcome {
/* ===========================
    display: flex;
  Wiki Home Template Styling
    gap: 25px;
  =========================== */
    padding: 25px;
    margin: 20px auto;
    max-width: 1200px;
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-family: sans-serif;
}


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


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


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


.wiki-welcome-center {
.wiki-home-left h2,
    flex: 1.2;
.wiki-home-right h2 {
    text-align: center;
font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
    padding: 10px;
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,
  Titles
.wiki-home-right ul {
  =========================== */
list-style: none;
margin: 0;
padding: 0;
}


.wiki-welcome h2 {
.wiki-home-left ul ul,
    margin-top: 0;
.wiki-home-right ul ul {
    padding-bottom: 8px;
margin: 2px 0 2px 4px;
    border-bottom: 2px solid #54595d;
    font-size: 1.4em;
    color: #202122;
}
}


.wiki-welcome h3 {
.wiki-home-left li,
    margin-top: 25px;
.wiki-home-right li {
    font-size: 1.15em;
position: relative;
    color: #54595d;
padding: 3px 0 3px 14px;
font-size: 0.95em;
}
}


 
.wiki-home-left li::before,
/* ===========================
.wiki-home-right li::before {
  Lists
content: "";
  =========================== */
position: absolute;
 
left: 0;
.wiki-welcome ul {
top: 11px;
    list-style: none;
width: 6px;
    padding-left: 0;
height: 6px;
background: var(--wh-rule);
}
}


.wiki-welcome li {
.wiki-home-left a,
    margin: 8px 0;
.wiki-home-right a {
    padding: 6px 10px;
color: var(--wh-link);
    background: white;
text-decoration: none;
    border-radius: 6px;
    border: 1px solid #eaecf0;
    transition: 0.2s ease;
}
}


.wiki-welcome li:hover {
.wiki-home-left a:visited,
    background: #eaecf0;
.wiki-home-right a:visited {
    transform: translateX(3px);
color: var(--wh-link-visited);
}
}


.wiki-welcome li ul {
.wiki-home-left a:hover,
    margin-top: 8px;
.wiki-home-right a:hover {
    margin-left: 15px;
text-decoration: underline;
}
}


.wiki-welcome li ul li {
/* External links (Discord, Website, etc.)  */
    background: #f8f9fa;
.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 {
  Center Welcome Section
color: var(--wh-heading);
  =========================== */
 
.wiki-welcome-title {
    font-size: 2em;
    font-weight: bold;
    line-height: 1.2;
    color: #202122;
    margin-bottom: 20px;
}
}


.wiki-welcome-title span {
/* ---- Center hero panel ---- */
    font-size: 1.3em;
.wiki-home-center {
    color: #3366cc;
flex: 2 1 340px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
}


 
.wiki-home-title {
.wiki-welcome-logo img {
font-family: sans-serif;
    max-width: 250px;
font-size: 0.85em;
    height: auto;
color: var(--wh-text-dim);
    margin: 15px auto;
line-height: 1.4;
    display: block;
margin-bottom: 4px;
}
}


 
.wiki-home-title span {
.wiki-welcome-description {
display: block;
    margin-top: 20px;
font-family: "Linux Libertine", Georgia, "Times New Roman", serif;
    padding: 15px;
font-size: 1.7em;
    background: white;
font-weight: bold;
    border-radius: 8px;
color: var(--wh-heading);
    border: 1px solid #eaecf0;
margin-top: 2px;
    font-size: 1.05em;
    line-height: 1.5;
}
}


 
.wiki-home-logo {
/* Links */
margin: 18px 0 22px;
 
.wiki-welcome a {
    color: #3366cc;
    text-decoration: none;
}
}


.wiki-welcome a:hover {
.wiki-home-logo img {
    text-decoration: underline;
width: 340px;
max-width: 100%;
height: auto;
}
}




/* Statistics */
.wiki-home-description {
 
font-size: 1em;
.wiki-welcome-left b {
color: #202122;
    color: #202122;
max-width: 40em;
line-height: 1.6;
}
}


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

Latest revision as of 20:35, 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-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;
	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 {
	width: 340px;
	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;
	}
}