Jump to content

Module:Chessboard/styles.css

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SD0001 (talk | contribs) at 12:34, 25 January 2025 (fix regression for narrow viewports in Timeless skin, Template talk:Chess diagram#Timeless). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
/* {{pp-template}} */
.chessboard table {
	font-size: 88%;
	border: 1px #c8ccd1 solid;
	padding: 0;
	margin: auto;
}

.chessboard table tr {
	vertical-align: middle;
}

.chessboard table td {
	padding: 0;
	vertical-align: inherit;
	text-align: center;
}

/* td containing the chess pieces should not center aligned, causes issues in Timeless */
.chessboard table td[rowspan] {
	text-align: unset;
}

.chessboard .chess-pieces div {
	position: absolute;
	z-index: 3;
}