/******************************************************************************
 *                                                                            *
 *    This file is part of RPB Chessboard, a Wordpress plugin.                *
 *    Copyright (C) 2013-2014  Yoann Le Montagner <yo35 -at- melix.net>       *
 *                                                                            *
 *    This program is free software: you can redistribute it and/or modify    *
 *    it under the terms of the GNU General Public License as published by    *
 *    the Free Software Foundation, either version 3 of the License, or       *
 *    (at your option) any later version.                                     *
 *                                                                            *
 *    This program is distributed in the hope that it will be useful,         *
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of          *
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
 *    GNU General Public License for more details.                            *
 *                                                                            *
 *    You should have received a copy of the GNU General Public License       *
 *    along with this program.  If not, see <http://www.gnu.org/licenses/>.   *
 *                                                                            *
 ******************************************************************************/


.uichess-chessboard {
	display: block;
	text-align: center;
	margin-top   : 5px;
	margin-bottom: 5px;
}

.uichess-chessboard-table {
	display: inline-table;
	border-collapse: collapse;
	font-size: 80%;
}

.uichess-chessboard-row,
.uichess-chessboard-lastRow {
	display: table-row;
}

.uichess-chessboard-rowHeader,
.uichess-chessboard-columnHeader,
.uichess-chessboard-cornerHeader,
.uichess-chessboard-cell,
.uichess-chessboard-turnHeader,
.uichess-chessboard-turnCell {
	display: table-cell;
}

.uichess-chessboard-rowHeader,
.uichess-chessboard-turnCell,
.uichess-chessboard-cell {
	vertical-align: middle;
	line-height: 0px;
}

.uichess-chessboard-cornerHeader,
.uichess-chessboard-turnHeader,
.uichess-chessboard-columnHeader {
	vertical-align: baseline;
	line-height: 1ex;
}

.uichess-chessboard-rowHeader {
	padding-left : 5px;
	padding-right: 5px;
}

.uichess-chessboard-columnHeader {
	padding-top   : 6px;
	padding-bottom: 6px;
}

.uichess-chessboard-turnCell .uichess-chessboard-turnFlag {
	margin-left: 8px;
}
