MediaWiki:Common.css

Revision as of 18:40, 19 January 2026 by MikeParker (talk | contribs)

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {


	/* Responsive tables - horizontal scroll on mobile */
	/* Wrap tables in a scrollable container */
	.mw-parser-output table.wikitable {
		display: block !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
		width: 100% !important;
		margin-bottom: 3rem !important;
		border: 1px solid #ccc !important;
	}
	
	/* Ensure table structure is maintained */
	.mw-parser-output table.wikitable > tbody,
	.mw-parser-output table.wikitable > thead {
		display: table !important;
		width: 100% !important;
		min-width: 800px !important; /* Prevents excessive compression */
	}
	
	.mw-parser-output table.wikitable > caption {
		display: table-caption !important;
		font-size: 4.4rem !important;
		font-weight: bold !important;
		padding: 15px 10px !important;
		text-align: center !important;
		background-color: #f5f5f5 !important;
	}
	
	/* Table cells */
	.mw-parser-output table.wikitable th,
	.mw-parser-output table.wikitable td {
		padding: 12px !important;
		font-size: 3.4rem !important;
		line-height: 1.6 !important;
		vertical-align: top !important;
	}
	
	/* Table headers */
	.mw-parser-output table.wikitable th {
		font-size: 3.8rem !important;
		font-weight: bold !important;
		background-color: #99B36C !important;
		color: white !important;
		text-align: center !important;
	}
	
	/* Add shadow to indicate scrollability */
	.mw-parser-output table.wikitable {
		box-shadow: inset -10px 0 8px -8px rgba(0,0,0,0.15) !important;
	}

}