MediaWiki:Common.css

From ProtoFab
Revision as of 15:43, 7 April 2026 by Vraj (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Global */
.mw-page-container {
	max-width: 100%;
}

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

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

pre,
code {
	overflow-x: auto;
}

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

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

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

.mp-toplinks > div:last-child {
	border-right: none;
}

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

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

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

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

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

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

@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;
	}

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

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

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