spotz / centos / centos.org

Forked from centos/centos.org a year ago
Clone
Blob Blame History Raw
/*
 *  Tidy Table
 *  Generate a sortable HTML table from JSON
 *
 *  Copyright 2012-2013, Marc S. Brooks (http://mbrooks.info)
 *  Licensed under the MIT license:
 *  http://www.opensource.org/licenses/mit-license.php
 *
 *  Dependencies:
 *    jquery.js
 */

table.tidy_table {
	background-color: rgba(0,0,0, 0.2);
	border-collapse: collapse;
/*	border: 1px solid rgba(0,0,0,0.2); */
	cursor: pointer;
	white-space: nowrap;
}

table.tidy_table thead {
	border: none;
}

table.tidy_table tr.check_on {
	background-color: rgba(255,255,255,0.5);
}

table.tidy_table tr.check_off {
	background-color: rgba(0,0,0,0.4);
}

table.tidy_table th {
	background-color: rgba(0,0,0,0.6);
}

table.tidy_table th.sort_asc {
	background: rgba(0,0,0,0.8) url( /images/arrow_asc.gif ) no-repeat right center;
}

table.tidy_table th.sort_desc {
	background: rgba(0,0,0,0.8) url( /images/arrow_desc.gif ) no-repeat right center;
}

table.tidy_table th,
table.tidy_table td {
	padding: 6px 20px 6px 20px;
}

table.tidy_table td {
	border-right: none;
	padding: 7px 20px 7px 20px;
}

table.tidy_table th:nth-child(1),
table.tidy_table td:nth-child(1) {
	width: 10px;
}

table.tidy_table td:nth-child(1) {
/*	border-right: 1px solid rgba(0,0,; */
}

table.tidy_table input[type=checkbox],
table.tidy_table input[type=checkbox] {
	display: block;
	margin: 0px auto 0px auto;
}

table.tidy_table td:nth-last-child(1) {
/* 	border-right: none; */
}

table.tidy_table td {
/*	border-top: 1px solid rgba(0,0,0,0.2);  */
}