Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:Video game reviews/sandbox/styles.css

From Wikipedia, the free encyclopedia
.video-game-reviews {
	float: right;
	clear: right;
	margin: 0 1em 1em;
	text-align: center;
	padding: 0;
}

/* As with width below, .vgr-left and .vgr-none maybe shouldn't exist. Someone
   who really needs this to be left rather than right can always plop it
   in its own div... */
.vgr-left {
	float: left;
	clear: left;
	margin: 0 1em 1em 0;
}

.vgr-none {
	float: none;
	clear: left;
	margin: 0 1em 1em 0;
}

.vgr-single {
	width: 23em;
}

.vgr-edit-on-wikidata {
	border: 1px solid #a2a9b1;
	border-top: none;
	padding: 0.2em;
	/* Revisit background color because Wikidata link is only about 4.0 contrast.
	   Something for the talk page. */
	background: #d1dbdf;
    color: #333;
	font-size: 88%;
	font-weight: bold;
}

.video-game-reviews table {
	border: 1px solid #a2a9b1;
	/* @noflip */
	margin: 0;
	font-size: 88%;
	width: 100%;
}

.video-game-reviews td,
.video-game-reviews th,
.video-game-reviews caption {
	border: 1px solid #a2a9b1;
	vertical-align: middle;
}

.video-game-reviews caption {
	border-bottom: none;
	background: #d1dbdf;
    color: #333;
	text-align: center;
	padding: 0.2em 0.4em;
}

.video-game-reviews th {
	background: var(--background-color-neutral, #eaecf0);
	color: #333;
}

.vgr-awards td {
	background: #f2f2f2;
	color: #333;
}

.vgr-hrow th {
	background: #e8f4f8;
	color: #333;
}

.video-game-reviews .table-na {
	color: #707070
}

.vgr-reviews,
.vgr-reviews tr:last-child td,
.vgr-reviews tr:last-child th {
	border-bottom: none;
}

.vgr-title,
.vgr-subtitle,
.vgr-awards tr td:first-child {
	font-weight: bold;
}

.mw-collapsed .vgr-title {
	display: inline; /* so that it doesn't "wrap" to the next line */
}

.video-game-reviews table tr td:first-child,
.vgr-awards td {
	text-align: left;
}

.video-game-reviews table tr td.vgr-center {
	/* Needed to override text-align left above	in one particular case where 
	   it looks prettier. Usually it would make more sense to make a semantic name */
	text-align: center;
}

.video-game-reviews .vgr-stacked {
	border-top: none;
}

@media (max-width: 720px) {
	.video-game-reviews {
		width: 100%;
		float: none; /* set float/clear explicitly to override earlier */
		clear: both;
		margin: 0;
	}
	
	.video-game-reviews table {
		display: table; /* Minerva is silly */
	}
	
	.video-game-reviews caption {
		display: table-caption; /* Minerva is still silly */
	}
}

/* Dark mode fixes */
@media screen {
	html.skin-theme-clientpref-night .video-game-reviews caption,
	html.skin-theme-clientpref-night .vgr-edit-on-wikidata {
		background: #3b3e44;
	}
	
	html.skin-theme-clientpref-night .vgr-edit-on-wikidata,
	html.skin-theme-clientpref-night .video-game-reviews caption,
	html.skin-theme-clientpref-night .video-game-reviews,
	html.skin-theme-clientpref-night .vgr-awards td,
	html.skin-theme-clientpref-night .vgr-hrow th,
	html.skin-theme-clientpref-night  .video-game-reviews th {
		color: #d6d9dc;
	}
	
	html.skin-theme-clientpref-night .vgr-hrow th {
		background: #1b223d;
	}
	
	html.skin-theme-clientpref-night .vgr-awards td {
		background: #252627;
	}
}

@media screen and ( prefers-color-scheme: dark ) {
	html.skin-theme-clientpref-os .video-game-reviews caption,
	html.skin-theme-clientpref-os .vgr-edit-on-wikidata {
		background: #3b3e44;
	}
	
	html.skin-theme-clientpref-os .vgr-edit-on-wikidata,
	html.skin-theme-clientpref-os .video-game-reviews caption,
	html.skin-theme-clientpref-os .video-game-reviews,
	html.skin-theme-clientpref-os .vgr-awards td,
	html.skin-theme-clientpref-os .vgr-hrow th,
	html.skin-theme-clientpref-os  .video-game-reviews th {
		color: #d6d9dc;
	}
	
	html.skin-theme-clientpref-os .vgr-hrow th {
		background: #1b223d;
	}
	
	html.skin-theme-clientpref-os .vgr-awards td {
		background: #252627;
	}
}