1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-15 16:29:16 +01:00

Dev: Update CSS file with the updated formatted used in the source repo

This commit is contained in:
Allan Jardine 2013-07-20 10:46:30 +01:00
parent e8c3a0b96a
commit 2023aafd99

View File

@ -11,112 +11,145 @@ table.dataTable {
*/ */
/* /*
* Body styles * Body styles
*/ } */
table.dataTable thead th, }
table.dataTable thead td, table.dataTable thead th,
table.dataTable tfoot th, table.dataTable thead td,
table.dataTable tfoot td { table.dataTable tfoot th,
padding: 10px 18px; } table.dataTable tfoot td {
table.dataTable thead th, padding: 10px 18px;
table.dataTable tfoot th { }
font-weight: bold; } table.dataTable thead th,
table.dataTable thead th, table.dataTable tfoot th {
table.dataTable thead td { font-weight: bold;
border-bottom: 1px solid #111111; } }
table.dataTable thead th:active, table.dataTable thead th,
table.dataTable thead td:active { table.dataTable thead td {
outline: none; } border-bottom: 1px solid #111111;
table.dataTable tfoot th, }
table.dataTable tfoot td { table.dataTable thead th:active,
border-top: 1px solid #111111; } table.dataTable thead td:active {
table.dataTable thead .sorting_asc, outline: none;
table.dataTable thead .sorting_desc, }
table.dataTable thead .sorting { table.dataTable tfoot th,
cursor: pointer; table.dataTable tfoot td {
*cursor: hand; } border-top: 1px solid #111111;
table.dataTable thead .sorting { }
background: url("../images/sort_both.png") no-repeat center right; } table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_asc { table.dataTable thead .sorting_desc,
background: url("../images/sort_asc.png") no-repeat center right; } table.dataTable thead .sorting {
table.dataTable thead .sorting_desc { cursor: pointer;
background: url("../images/sort_desc.png") no-repeat center right; } *cursor: hand;
table.dataTable thead .sorting_asc_disabled { }
background: url("../images/sort_asc_disabled.png") no-repeat center right; } table.dataTable thead .sorting {
table.dataTable thead .sorting_desc_disabled { background: url("../images/sort_both.png") no-repeat center right;
background: url("../images/sort_desc_disabled.png") no-repeat center right; } }
table.dataTable tbody th, table.dataTable thead .sorting_asc {
table.dataTable tbody td { background: url("../images/sort_asc.png") no-repeat center right;
padding: 8px 10px; } }
table.dataTable th.center, table.dataTable thead .sorting_desc {
table.dataTable td.center, background: url("../images/sort_desc.png") no-repeat center right;
table.dataTable td.dataTables_empty { }
text-align: center; } table.dataTable thead .sorting_asc_disabled {
table.dataTable th.right, background: url("../images/sort_asc_disabled.png") no-repeat center right;
table.dataTable td.right { }
text-align: right; } table.dataTable thead .sorting_desc_disabled {
table.dataTable.row-border tbody th, table.dataTable.row-border tbody td, table.dataTable.display tbody th, table.dataTable.display tbody td { background: url("../images/sort_desc_disabled.png") no-repeat center right;
border-top: 1px solid #dddddd; } }
table.dataTable.row-border tbody tr:first-child th, table.dataTable tbody th,
table.dataTable.row-border tbody tr:first-child td, table.dataTable.display tbody tr:first-child th, table.dataTable tbody td {
table.dataTable.display tbody tr:first-child td { padding: 8px 10px;
border-top: none; } }
table.dataTable.cell-border tbody th, table.dataTable.cell-border tbody td { table.dataTable th.center,
border-top: 1px solid #dddddd; table.dataTable td.center,
border-right: 1px solid #dddddd; } table.dataTable td.dataTables_empty {
table.dataTable.cell-border tbody tr th:first-child, text-align: center;
table.dataTable.cell-border tbody tr td:first-child { }
border-left: 1px solid #dddddd; } table.dataTable th.right,
table.dataTable.cell-border tbody tr:first-child th, table.dataTable td.right {
table.dataTable.cell-border tbody tr:first-child td, text-align: right;
table.dataTable.cell-border tbody tr:last-child th, }
table.dataTable.cell-border tbody tr:last-child td { table.dataTable.row-border tbody th, table.dataTable.row-border tbody td, table.dataTable.display tbody th, table.dataTable.display tbody td {
border-top: none; } border-top: 1px solid #dddddd;
table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd { }
background-color: #f9f9f9; } table.dataTable.row-border tbody tr:first-child th,
table.dataTable.stripe tbody tr.even, table.dataTable.display tbody tr.even { table.dataTable.row-border tbody tr:first-child td, table.dataTable.display tbody tr:first-child th,
background-color: white; } table.dataTable.display tbody tr:first-child td {
table.dataTable.hover tbody tr:hover, border-top: none;
table.dataTable.hover tbody tr.odd:hover, }
table.dataTable.hover tbody tr.even:hover, table.dataTable.display tbody tr:hover, table.dataTable.cell-border tbody th, table.dataTable.cell-border tbody td {
table.dataTable.display tbody tr.odd:hover, border-top: 1px solid #dddddd;
table.dataTable.display tbody tr.even:hover { border-right: 1px solid #dddddd;
background-color: whitesmoke; } }
table.dataTable.sort-column tbody tr > .sorting_1, table.dataTable.cell-border tbody tr th:first-child,
table.dataTable.sort-column tbody tr > .sorting_2, table.dataTable.cell-border tbody tr td:first-child {
table.dataTable.sort-column tbody tr > .sorting_3, table.dataTable.display tbody tr > .sorting_1, border-left: 1px solid #dddddd;
table.dataTable.display tbody tr > .sorting_2, }
table.dataTable.display tbody tr > .sorting_3 { table.dataTable.cell-border tbody tr:first-child th,
background-color: #f9f9f9; } table.dataTable.cell-border tbody tr:first-child td,
table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_1 { table.dataTable.cell-border tbody tr:last-child th,
background-color: #f1f1f1; } table.dataTable.cell-border tbody tr:last-child td {
table.dataTable.display tbody tr.odd > .sorting_2, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_2 { border-top: none;
background-color: #f3f3f3; } }
table.dataTable.display tbody tr.odd > .sorting_3, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_3 { table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
background-color: whitesmoke; } background-color: #f9f9f9;
table.dataTable.display tbody tr.even > .sorting_1, table.dataTable.sort-column.stripe tbody tr.even > .sorting_1 { }
background-color: #f9f9f9; } table.dataTable.stripe tbody tr.even, table.dataTable.display tbody tr.even {
table.dataTable.display tbody tr.even > .sorting_2, table.dataTable.sort-column.stripe tbody tr.even > .sorting_2 { background-color: white;
background-color: #fbfbfb; } }
table.dataTable.display tbody tr.even > .sorting_3, table.dataTable.sort-column.stripe tbody tr.even > .sorting_3 { table.dataTable.hover tbody tr:hover,
background-color: #fdfdfd; } table.dataTable.hover tbody tr.odd:hover,
table.dataTable.display tbody tr:hover > .sorting_1, table.dataTable.hover tbody tr.even:hover, table.dataTable.display tbody tr:hover,
table.dataTable.display tbody tr.odd:hover > .sorting_1, table.dataTable.display tbody tr.odd:hover,
table.dataTable.display tbody tr.even:hover > .sorting_1, table.dataTable.sort-column.hover tbody tr:hover > .sorting_1, table.dataTable.display tbody tr.even:hover {
table.dataTable.sort-column.hover tbody tr.odd:hover > .sorting_1, background-color: whitesmoke;
table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_1 { }
background-color: #eaeaea; } table.dataTable.sort-column tbody tr > .sorting_1,
table.dataTable.display tbody tr:hover > .sorting_2, table.dataTable.sort-column tbody tr > .sorting_2,
table.dataTable.display tbody tr.odd:hover > .sorting_2, table.dataTable.sort-column tbody tr > .sorting_3, table.dataTable.display tbody tr > .sorting_1,
table.dataTable.display tbody tr.even:hover > .sorting_2, table.dataTable.sort-column.hover tbody tr:hover > .sorting_2, table.dataTable.display tbody tr > .sorting_2,
table.dataTable.sort-column.hover tbody tr.odd:hover > .sorting_2, table.dataTable.display tbody tr > .sorting_3 {
table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_2 { background-color: #f9f9f9;
background-color: #ebebeb; } }
table.dataTable.display tbody tr:hover > .sorting_3, table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_1 {
table.dataTable.display tbody tr.odd:hover > .sorting_3, background-color: #f1f1f1;
table.dataTable.display tbody tr.even:hover > .sorting_3, table.dataTable.sort-column.hover tbody tr:hover > .sorting_3, }
table.dataTable.sort-column.hover tbody tr.odd:hover > .sorting_3, table.dataTable.display tbody tr.odd > .sorting_2, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_2 {
table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_3 { background-color: #f3f3f3;
background-color: #eeeeee; } }
table.dataTable.display tbody tr.odd > .sorting_3, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_3 {
background-color: whitesmoke;
}
table.dataTable.display tbody tr.even > .sorting_1, table.dataTable.sort-column.stripe tbody tr.even > .sorting_1 {
background-color: #f9f9f9;
}
table.dataTable.display tbody tr.even > .sorting_2, table.dataTable.sort-column.stripe tbody tr.even > .sorting_2 {
background-color: #fbfbfb;
}
table.dataTable.display tbody tr.even > .sorting_3, table.dataTable.sort-column.stripe tbody tr.even > .sorting_3 {
background-color: #fdfdfd;
}
table.dataTable.display tbody tr:hover > .sorting_1,
table.dataTable.display tbody tr.odd:hover > .sorting_1,
table.dataTable.display tbody tr.even:hover > .sorting_1, table.dataTable.sort-column.hover tbody tr:hover > .sorting_1,
table.dataTable.sort-column.hover tbody tr.odd:hover > .sorting_1,
table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_1 {
background-color: #eaeaea;
}
table.dataTable.display tbody tr:hover > .sorting_2,
table.dataTable.display tbody tr.odd:hover > .sorting_2,
table.dataTable.display tbody tr.even:hover > .sorting_2, table.dataTable.sort-column.hover tbody tr:hover > .sorting_2,
table.dataTable.sort-column.hover tbody tr.odd:hover > .sorting_2,
table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_2 {
background-color: #ebebeb;
}
table.dataTable.display tbody tr:hover > .sorting_3,
table.dataTable.display tbody tr.odd:hover > .sorting_3,
table.dataTable.display tbody tr.even:hover > .sorting_3, table.dataTable.sort-column.hover tbody tr:hover > .sorting_3,
table.dataTable.sort-column.hover tbody tr.odd:hover > .sorting_3,
table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_3 {
background-color: #eeeeee;
}
/* /*
* Control feature layout * Control feature layout
@ -124,115 +157,129 @@ table.dataTable {
.dataTables_wrapper { .dataTables_wrapper {
position: relative; position: relative;
clear: both; clear: both;
*zoom: 1; } *zoom: 1;
.dataTables_wrapper .dataTables_length { }
float: left; } .dataTables_wrapper .dataTables_length {
.dataTables_wrapper .dataTables_filter { float: left;
float: right; }
text-align: right; } .dataTables_wrapper .dataTables_filter {
.dataTables_wrapper .dataTables_info { float: right;
clear: both; text-align: right;
float: left; }
padding-top: 0.55em; } .dataTables_wrapper .dataTables_info {
.dataTables_wrapper .dataTables_paginate { clear: both;
float: right; float: left;
text-align: right; } padding-top: 0.55em;
.dataTables_wrapper .dataTables_paginate .paginate_button { }
box-sizing: border-box; .dataTables_wrapper .dataTables_paginate {
display: inline-block; float: right;
min-width: 1.5em; text-align: right;
padding: 0.5em 1em; }
margin-left: 2px; .dataTables_wrapper .dataTables_paginate .paginate_button {
text-align: center; box-sizing: border-box;
text-decoration: none !important; display: inline-block;
cursor: pointer; min-width: 1.5em;
*cursor: hand; padding: 0.5em 1em;
color: #333 !important; margin-left: 2px;
border: 1px solid transparent; } text-align: center;
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { text-decoration: none !important;
color: white !important; cursor: pointer;
border: 1px solid black; *cursor: hand;
background-color: #474747; color: #333 !important;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #474747), color-stop(100%, black)); border: 1px solid transparent;
/* Chrome,Safari4+ */ }
background: -webkit-linear-gradient(top, #474747 0%, black 100%); .dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
/* Chrome10+,Safari5.1+ */ color: white !important;
background: -moz-linear-gradient(top, #474747 0%, black 100%); border: 1px solid black;
/* FF3.6+ */ background-color: #474747;
background: -ms-linear-gradient(top, #474747 0%, black 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #474747), color-stop(100%, black));
/* IE10+ */ /* Chrome,Safari4+ */
background: -o-linear-gradient(top, #474747 0%, black 100%); background: -webkit-linear-gradient(top, #474747 0%, black 100%);
/* Opera 11.10+ */ /* Chrome10+,Safari5.1+ */
background: linear-gradient(to bottom, #474747 0%, #000000 100%); background: -moz-linear-gradient(top, #474747 0%, black 100%);
/* W3C */ } /* FF3.6+ */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active { background: -ms-linear-gradient(top, #474747 0%, black 100%);
color: #666 !important; /* IE10+ */
border: 1px solid transparent; background: -o-linear-gradient(top, #474747 0%, black 100%);
background: transparent; /* Opera 11.10+ */
box-shadow: none; } background: linear-gradient(to bottom, #474747 0%, black 100%);
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { /* W3C */
border: 1px solid gainsboro; }
background-color: white; .dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, gainsboro)); color: #666 !important;
/* Chrome,Safari4+ */ border: 1px solid transparent;
background: -webkit-linear-gradient(top, white 0%, gainsboro 100%); background: transparent;
/* Chrome10+,Safari5.1+ */ box-shadow: none;
background: -moz-linear-gradient(top, white 0%, gainsboro 100%); }
/* FF3.6+ */ .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
background: -ms-linear-gradient(top, white 0%, gainsboro 100%); border: 1px solid gainsboro;
/* IE10+ */ background-color: white;
background: -o-linear-gradient(top, white 0%, gainsboro 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, gainsboro));
/* Opera 11.10+ */ /* Chrome,Safari4+ */
background: linear-gradient(to bottom, #ffffff 0%, #dcdcdc 100%); background: -webkit-linear-gradient(top, white 0%, gainsboro 100%);
/* W3C */ } /* Chrome10+,Safari5.1+ */
.dataTables_wrapper .dataTables_paginate .paginate_button:active { background: -moz-linear-gradient(top, white 0%, gainsboro 100%);
outline: none; /* FF3.6+ */
background-color: #f6f6f6; background: -ms-linear-gradient(top, white 0%, gainsboro 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f6f6f6), color-stop(100%, #d7d7d7)); /* IE10+ */
/* Chrome,Safari4+ */ background: -o-linear-gradient(top, white 0%, gainsboro 100%);
background: -webkit-linear-gradient(top, #f6f6f6 0%, #d7d7d7 100%); /* Opera 11.10+ */
/* Chrome10+,Safari5.1+ */ background: linear-gradient(to bottom, white 0%, gainsboro 100%);
background: -moz-linear-gradient(top, #f6f6f6 0%, #d7d7d7 100%); /* W3C */
/* FF3.6+ */ }
background: -ms-linear-gradient(top, #f6f6f6 0%, #d7d7d7 100%); .dataTables_wrapper .dataTables_paginate .paginate_button:active {
/* IE10+ */ outline: none;
background: -o-linear-gradient(top, #f6f6f6 0%, #d7d7d7 100%); background-color: #f6f6f6;
/* Opera 11.10+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f6f6f6), color-stop(100%, #d7d7d7));
background: linear-gradient(to bottom, #f6f6f6 0%, #d7d7d7 100%); /* Chrome,Safari4+ */
/* W3C */ background: -webkit-linear-gradient(top, #f6f6f6 0%, #d7d7d7 100%);
box-shadow: inset 0 0 3px #111; } /* Chrome10+,Safari5.1+ */
.dataTables_wrapper .dataTables_processing { background: -moz-linear-gradient(top, #f6f6f6 0%, #d7d7d7 100%);
position: absolute; /* FF3.6+ */
top: 50%; background: -ms-linear-gradient(top, #f6f6f6 0%, #d7d7d7 100%);
left: 50%; /* IE10+ */
width: 100%; background: -o-linear-gradient(top, #f6f6f6 0%, #d7d7d7 100%);
height: 40px; /* Opera 11.10+ */
margin-left: -50%; background: linear-gradient(to bottom, #f6f6f6 0%, #d7d7d7 100%);
margin-top: -25px; /* W3C */
padding-top: 20px; box-shadow: inset 0 0 3px #111;
text-align: center; }
font-size: 1.2em; .dataTables_wrapper .dataTables_processing {
background-color: white; position: absolute;
background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(25%, rgba(255, 255, 255, 0.9)), color-stop(75%, rgba(255, 255, 255, 0.9)), color-stop(100%, rgba(255, 255, 255, 0))); top: 50%;
/* Chrome,Safari4+ */ left: 50%;
background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); width: 100%;
/* Chrome10+,Safari5.1+ */ height: 40px;
background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); margin-left: -50%;
/* FF3.6+ */ margin-top: -25px;
background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); padding-top: 20px;
/* IE10+ */ text-align: center;
background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); font-size: 1.2em;
/* Opera 11.10+ */ background-color: white;
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(25%, rgba(255, 255, 255, 0.9)), color-stop(75%, rgba(255, 255, 255, 0.9)), color-stop(100%, rgba(255, 255, 255, 0)));
/* W3C */ } /* Chrome,Safari4+ */
.dataTables_wrapper .dataTables_length, background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
.dataTables_wrapper .dataTables_filter, /* Chrome10+,Safari5.1+ */
.dataTables_wrapper .dataTables_info, background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
.dataTables_wrapper .dataTables_processing, /* FF3.6+ */
.dataTables_wrapper .dataTables_paginate { background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
color: #333333; } /* IE10+ */
.dataTables_wrapper .dataTables_scroll { background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
clear: both; } /* Opera 11.10+ */
.dataTables_wrapper .dataTables_scrollBody { background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
*margin-top: -1px; /* W3C */
-webkit-overflow-scrolling: touch; } }
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
color: #333333;
}
.dataTables_wrapper .dataTables_scroll {
clear: both;
}
.dataTables_wrapper .dataTables_scrollBody {
*margin-top: -1px;
-webkit-overflow-scrolling: touch;
}