/******************************************************************************
 *                                                                            *
 *    This file is part of RPB Chessboard, a Wordpress plugin.                *
 *    Copyright (C) 2013  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/>.   *
 *                                                                            *
 ******************************************************************************/


/******************************************************************************/
/*** Reset the CSS attributes that may affect the <img> tag ***/

.ChessWidget img {
	box-shadow: none;
	border: 0 none;
	margin-top   : 0px;
	margin-left  : 0px;
	margin-bottom: 0px;
	margin-right : 0px;
}



/******************************************************************************/
/*** General aspect of the chessboard ***/

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

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

.ChessWidget-row {
	display: table-row;
}

.ChessWidget-row-header,
.ChessWidget-column-header,
.ChessWidget-corner-header,
.ChessWidget-fake-header,
.ChessWidget-fake-cell,
.ChessWidget-cell {
	display: table-cell;
}

.ChessWidget-row-header,
.ChessWidget-fake-cell,
.ChessWidget-cell {
	vertical-align: middle;
	line-height: 0px;
}

.ChessWidget-corner-header,
.ChessWidget-fake-header,
.ChessWidget-column-header {
	vertical-align: baseline;
	line-height: 1ex;
}

.ChessWidget-row-header {
	padding-left : 5px;
	padding-right: 5px;
}

.ChessWidget-column-header {
	padding-top   : 6px;
	padding-bottom: 6px;
}

.ChessWidget-fake-cell img {
	margin-left: 8px;
}
