Module:Chessboard/styles.css

From RetroWikipedia
Revision as of 17:34, 19 February 2025 by imported>ABreault (WMF) (Fix shift in mobile html. Alternatively, a child combinator could be used. See phab:T386822)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
/* {{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:not(.pcs-image-wrapper) {
	position: absolute;
	z-index: 3;
}