MediaWiki:Common.css: Difference between revisions

From ProtoFab
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* Global */

.mw-page-container {
.mw-page-container {
max-width: 100%;
max-width: 100%;
}

.vector-header-container,
.vector-sticky-header-container {
border-bottom: 1px solid #eaecf0;
}
}


Line 7: Line 13:
font-size: 0.98rem;
font-size: 0.98rem;
line-height: 1.6;
line-height: 1.6;
}

.wikitable {
font-size: 0.95rem;
border-collapse: collapse;
}

.wikitable th,
.wikitable td {
padding: 0.5em 0.75em;
}
}


Line 21: Line 37:
}
}


/* Main page */
/* Main page layout */
.mp-banner {
.mp-banner {
background: #cfe8f1;
background: lightblue;
border: 1px solid #222;
border: 1px solid #000;
padding: 2rem 1rem;
padding: 2rem 1rem;
text-align: center;
text-align: center;
font-size: 2.2rem;
font-size: 2.2rem;
font-weight: 700;
font-weight: 700;
color: #000;
margin: 0 0 1rem 0;
margin: 0 0 1rem 0;
}
}
Line 35: Line 52:
display: grid;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-columns: repeat(3, 1fr);
background: #cfe8f1;
background: lightblue;
border: 1px solid #222;
border: 1px solid #000;
margin: 0 0 1.5rem 0;
margin: 0 0 1.25rem 0;
}
}


.mp-toplinks > div {
.mp-toplink {
padding: 1.5rem 1rem;
text-align: center;
border-right: 1px solid #222;
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
min-height: 90px;
text-align: center;
min-height: 100px;
padding: 1rem;
border-right: 2px solid #000;
box-sizing: border-box;
}
}


.mp-toplinks > div:last-child {
.mp-toplink:last-child {
border-right: none;
border-right: none;
}
}
Line 57: Line 75:
display: grid;
display: grid;
grid-template-columns: 1fr 1fr 0.8fr;
grid-template-columns: 1fr 1fr 0.8fr;
border: 1px solid #a2a9b1;
border: 1px solid #cedff2;
background: #f8f9fa;
background: #f5fffa;
}
}


Line 64: Line 82:
padding: 1rem;
padding: 1rem;
border-right: 1px solid #a2a9b1;
border-right: 1px solid #a2a9b1;
box-sizing: border-box;
}
}


Line 72: Line 91:
.mp-section h2 {
.mp-section h2 {
margin: 0 0 0.75rem 0;
margin: 0 0 0.75rem 0;
padding: 0.5rem 0.75rem;
font-size: 1.3rem;
text-align: center;
text-align: center;
font-size: 1.25rem;
border-bottom: 1px solid #a2a9b1;
background: #eaecf0;
padding-bottom: 0.5rem;
border: 1px solid #a2a9b1;
}
}


Line 85: Line 105:
.mp-section li {
.mp-section li {
margin: 0.45rem 0;
margin: 0.45rem 0;
}

.mp-section a {
white-space: normal;
word-break: break-word;
}
}


Line 97: Line 122:
font-size: 1.5rem;
font-size: 1.5rem;
padding: 1.2rem 0.8rem;
padding: 1.2rem 0.8rem;
line-height: 1.4;
}
}


Line 104: Line 130:
}
}


.mp-toplinks > div,
.mp-toplink,
.mp-section {
.mp-section {
border-right: none;
border-right: none;
Line 110: Line 136:
}
}


.mp-toplinks > div:last-child,
.mp-toplink:last-child,
.mp-section:last-child {
.mp-section:last-child {
border-bottom: none;
border-bottom: none;

Revision as of 15:44, 7 April 2026

/* CSS placed here will be applied to all skins */

.mw-page-container {
	max-width: 100%;
}

.vector-header-container,
.vector-sticky-header-container {
	border-bottom: 1px solid #eaecf0;
}

.mw-body {
	font-size: 0.98rem;
	line-height: 1.6;
}

.wikitable {
	font-size: 0.95rem;
	border-collapse: collapse;
}

.wikitable th,
.wikitable td {
	padding: 0.5em 0.75em;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

pre,
code {
	overflow-x: auto;
}

/* Main page layout */
.mp-banner {
	background: lightblue;
	border: 1px solid #000;
	padding: 2rem 1rem;
	text-align: center;
	font-size: 2.2rem;
	font-weight: 700;
	color: #000;
	margin: 0 0 1rem 0;
}

.mp-toplinks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: lightblue;
	border: 1px solid #000;
	margin: 0 0 1.25rem 0;
}

.mp-toplink {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 100px;
	padding: 1rem;
	border-right: 2px solid #000;
	box-sizing: border-box;
}

.mp-toplink:last-child {
	border-right: none;
}

.mp-sections {
	display: grid;
	grid-template-columns: 1fr 1fr 0.8fr;
	border: 1px solid #cedff2;
	background: #f5fffa;
}

.mp-section {
	padding: 1rem;
	border-right: 1px solid #a2a9b1;
	box-sizing: border-box;
}

.mp-section:last-child {
	border-right: none;
}

.mp-section h2 {
	margin: 0 0 0.75rem 0;
	padding: 0.5rem 0.75rem;
	text-align: center;
	font-size: 1.25rem;
	background: #eaecf0;
	border: 1px solid #a2a9b1;
}

.mp-section ul {
	margin: 0;
	padding-left: 1.2rem;
}

.mp-section li {
	margin: 0.45rem 0;
}

.mp-section a {
	white-space: normal;
	word-break: break-word;
}

@media (max-width: 768px) {
	.mw-body,
	.vector-body {
		padding-left: 0.75rem !important;
		padding-right: 0.75rem !important;
	}

	.mp-banner {
		font-size: 1.5rem;
		padding: 1.2rem 0.8rem;
		line-height: 1.4;
	}

	.mp-toplinks,
	.mp-sections {
		grid-template-columns: 1fr;
	}

	.mp-toplink,
	.mp-section {
		border-right: none;
		border-bottom: 1px solid #a2a9b1;
	}

	.mp-toplink:last-child,
	.mp-section:last-child {
		border-bottom: none;
	}
}