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 th,
table.dataTable thead td, table.dataTable thead td,
table.dataTable tfoot th, table.dataTable tfoot th,
table.dataTable tfoot td { table.dataTable tfoot td {
padding: 10px 18px; } padding: 10px 18px;
}
table.dataTable thead th, table.dataTable thead th,
table.dataTable tfoot th { table.dataTable tfoot th {
font-weight: bold; } font-weight: bold;
}
table.dataTable thead th, table.dataTable thead th,
table.dataTable thead td { table.dataTable thead td {
border-bottom: 1px solid #111111; } border-bottom: 1px solid #111111;
}
table.dataTable thead th:active, table.dataTable thead th:active,
table.dataTable thead td:active { table.dataTable thead td:active {
outline: none; } outline: none;
}
table.dataTable tfoot th, table.dataTable tfoot th,
table.dataTable tfoot td { table.dataTable tfoot td {
border-top: 1px solid #111111; } border-top: 1px solid #111111;
}
table.dataTable thead .sorting_asc, table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc, table.dataTable thead .sorting_desc,
table.dataTable thead .sorting { table.dataTable thead .sorting {
cursor: pointer; cursor: pointer;
*cursor: hand; } *cursor: hand;
}
table.dataTable thead .sorting { table.dataTable thead .sorting {
background: url("../images/sort_both.png") no-repeat center right; } background: url("../images/sort_both.png") no-repeat center right;
}
table.dataTable thead .sorting_asc { table.dataTable thead .sorting_asc {
background: url("../images/sort_asc.png") no-repeat center right; } background: url("../images/sort_asc.png") no-repeat center right;
}
table.dataTable thead .sorting_desc { table.dataTable thead .sorting_desc {
background: url("../images/sort_desc.png") no-repeat center right; } background: url("../images/sort_desc.png") no-repeat center right;
}
table.dataTable thead .sorting_asc_disabled { table.dataTable thead .sorting_asc_disabled {
background: url("../images/sort_asc_disabled.png") no-repeat center right; } background: url("../images/sort_asc_disabled.png") no-repeat center right;
}
table.dataTable thead .sorting_desc_disabled { table.dataTable thead .sorting_desc_disabled {
background: url("../images/sort_desc_disabled.png") no-repeat center right; } background: url("../images/sort_desc_disabled.png") no-repeat center right;
}
table.dataTable tbody th, table.dataTable tbody th,
table.dataTable tbody td { table.dataTable tbody td {
padding: 8px 10px; } padding: 8px 10px;
}
table.dataTable th.center, table.dataTable th.center,
table.dataTable td.center, table.dataTable td.center,
table.dataTable td.dataTables_empty { table.dataTable td.dataTables_empty {
text-align: center; } text-align: center;
}
table.dataTable th.right, table.dataTable th.right,
table.dataTable td.right { table.dataTable td.right {
text-align: right; } text-align: right;
}
table.dataTable.row-border tbody th, table.dataTable.row-border tbody td, table.dataTable.display tbody th, table.dataTable.display tbody 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: 1px solid #dddddd; } border-top: 1px solid #dddddd;
}
table.dataTable.row-border tbody tr:first-child th, table.dataTable.row-border tbody tr:first-child th,
table.dataTable.row-border tbody tr:first-child td, table.dataTable.display tbody tr:first-child th, table.dataTable.row-border tbody tr:first-child td, table.dataTable.display tbody tr:first-child th,
table.dataTable.display tbody tr:first-child td { table.dataTable.display tbody tr:first-child td {
border-top: none; } border-top: none;
}
table.dataTable.cell-border tbody th, table.dataTable.cell-border tbody td { table.dataTable.cell-border tbody th, table.dataTable.cell-border tbody td {
border-top: 1px solid #dddddd; border-top: 1px solid #dddddd;
border-right: 1px solid #dddddd; } border-right: 1px solid #dddddd;
}
table.dataTable.cell-border tbody tr th:first-child, table.dataTable.cell-border tbody tr th:first-child,
table.dataTable.cell-border tbody tr td:first-child { table.dataTable.cell-border tbody tr td:first-child {
border-left: 1px solid #dddddd; } border-left: 1px solid #dddddd;
}
table.dataTable.cell-border tbody tr:first-child th, table.dataTable.cell-border tbody tr:first-child th,
table.dataTable.cell-border tbody tr:first-child td, table.dataTable.cell-border tbody tr:first-child td,
table.dataTable.cell-border tbody tr:last-child th, table.dataTable.cell-border tbody tr:last-child th,
table.dataTable.cell-border tbody tr:last-child td { table.dataTable.cell-border tbody tr:last-child td {
border-top: none; } border-top: none;
}
table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd { table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
background-color: #f9f9f9; } background-color: #f9f9f9;
}
table.dataTable.stripe tbody tr.even, table.dataTable.display tbody tr.even { table.dataTable.stripe tbody tr.even, table.dataTable.display tbody tr.even {
background-color: white; } background-color: white;
}
table.dataTable.hover tbody tr:hover, table.dataTable.hover tbody tr:hover,
table.dataTable.hover tbody tr.odd:hover, table.dataTable.hover tbody tr.odd:hover,
table.dataTable.hover tbody tr.even:hover, table.dataTable.display tbody tr:hover, table.dataTable.hover tbody tr.even:hover, table.dataTable.display tbody tr:hover,
table.dataTable.display tbody tr.odd:hover, table.dataTable.display tbody tr.odd:hover,
table.dataTable.display tbody tr.even:hover { table.dataTable.display tbody tr.even:hover {
background-color: whitesmoke; } background-color: whitesmoke;
}
table.dataTable.sort-column tbody tr > .sorting_1, table.dataTable.sort-column tbody tr > .sorting_1,
table.dataTable.sort-column tbody tr > .sorting_2, table.dataTable.sort-column tbody tr > .sorting_2,
table.dataTable.sort-column tbody tr > .sorting_3, table.dataTable.display tbody tr > .sorting_1, table.dataTable.sort-column tbody tr > .sorting_3, table.dataTable.display tbody tr > .sorting_1,
table.dataTable.display tbody tr > .sorting_2, table.dataTable.display tbody tr > .sorting_2,
table.dataTable.display tbody tr > .sorting_3 { table.dataTable.display tbody tr > .sorting_3 {
background-color: #f9f9f9; } background-color: #f9f9f9;
}
table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_1 { table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_1 {
background-color: #f1f1f1; } background-color: #f1f1f1;
}
table.dataTable.display tbody tr.odd > .sorting_2, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_2 { table.dataTable.display tbody tr.odd > .sorting_2, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_2 {
background-color: #f3f3f3; } background-color: #f3f3f3;
}
table.dataTable.display tbody tr.odd > .sorting_3, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_3 { table.dataTable.display tbody tr.odd > .sorting_3, table.dataTable.sort-column.stripe tbody tr.odd > .sorting_3 {
background-color: whitesmoke; } background-color: whitesmoke;
}
table.dataTable.display tbody tr.even > .sorting_1, table.dataTable.sort-column.stripe tbody tr.even > .sorting_1 { table.dataTable.display tbody tr.even > .sorting_1, table.dataTable.sort-column.stripe tbody tr.even > .sorting_1 {
background-color: #f9f9f9; } background-color: #f9f9f9;
}
table.dataTable.display tbody tr.even > .sorting_2, table.dataTable.sort-column.stripe tbody tr.even > .sorting_2 { table.dataTable.display tbody tr.even > .sorting_2, table.dataTable.sort-column.stripe tbody tr.even > .sorting_2 {
background-color: #fbfbfb; } background-color: #fbfbfb;
}
table.dataTable.display tbody tr.even > .sorting_3, table.dataTable.sort-column.stripe tbody tr.even > .sorting_3 { table.dataTable.display tbody tr.even > .sorting_3, table.dataTable.sort-column.stripe tbody tr.even > .sorting_3 {
background-color: #fdfdfd; } background-color: #fdfdfd;
}
table.dataTable.display tbody tr:hover > .sorting_1, table.dataTable.display tbody tr:hover > .sorting_1,
table.dataTable.display tbody tr.odd: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.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.odd:hover > .sorting_1,
table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_1 { table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_1 {
background-color: #eaeaea; } background-color: #eaeaea;
}
table.dataTable.display tbody tr:hover > .sorting_2, table.dataTable.display tbody tr:hover > .sorting_2,
table.dataTable.display tbody tr.odd: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.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.odd:hover > .sorting_2,
table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_2 { table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_2 {
background-color: #ebebeb; } background-color: #ebebeb;
}
table.dataTable.display tbody tr:hover > .sorting_3, table.dataTable.display tbody tr:hover > .sorting_3,
table.dataTable.display tbody tr.odd: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.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.odd:hover > .sorting_3,
table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_3 { table.dataTable.sort-column.hover tbody tr.even:hover > .sorting_3 {
background-color: #eeeeee; } background-color: #eeeeee;
}
/* /*
* Control feature layout * Control feature layout
@ -124,19 +157,24 @@ table.dataTable {
.dataTables_wrapper { .dataTables_wrapper {
position: relative; position: relative;
clear: both; clear: both;
*zoom: 1; } *zoom: 1;
}
.dataTables_wrapper .dataTables_length { .dataTables_wrapper .dataTables_length {
float: left; } float: left;
}
.dataTables_wrapper .dataTables_filter { .dataTables_wrapper .dataTables_filter {
float: right; float: right;
text-align: right; } text-align: right;
}
.dataTables_wrapper .dataTables_info { .dataTables_wrapper .dataTables_info {
clear: both; clear: both;
float: left; float: left;
padding-top: 0.55em; } padding-top: 0.55em;
}
.dataTables_wrapper .dataTables_paginate { .dataTables_wrapper .dataTables_paginate {
float: right; float: right;
text-align: right; } text-align: right;
}
.dataTables_wrapper .dataTables_paginate .paginate_button { .dataTables_wrapper .dataTables_paginate .paginate_button {
box-sizing: border-box; box-sizing: border-box;
display: inline-block; display: inline-block;
@ -148,7 +186,8 @@ table.dataTable {
cursor: pointer; cursor: pointer;
*cursor: hand; *cursor: hand;
color: #333 !important; color: #333 !important;
border: 1px solid transparent; } border: 1px solid transparent;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { .dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
color: white !important; color: white !important;
border: 1px solid black; border: 1px solid black;
@ -163,13 +202,15 @@ table.dataTable {
/* IE10+ */ /* IE10+ */
background: -o-linear-gradient(top, #474747 0%, black 100%); background: -o-linear-gradient(top, #474747 0%, black 100%);
/* Opera 11.10+ */ /* Opera 11.10+ */
background: linear-gradient(to bottom, #474747 0%, #000000 100%); background: linear-gradient(to bottom, #474747 0%, black 100%);
/* W3C */ } /* W3C */
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active { .dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
color: #666 !important; color: #666 !important;
border: 1px solid transparent; border: 1px solid transparent;
background: transparent; background: transparent;
box-shadow: none; } box-shadow: none;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
border: 1px solid gainsboro; border: 1px solid gainsboro;
background-color: white; background-color: white;
@ -183,8 +224,9 @@ table.dataTable {
/* IE10+ */ /* IE10+ */
background: -o-linear-gradient(top, white 0%, gainsboro 100%); background: -o-linear-gradient(top, white 0%, gainsboro 100%);
/* Opera 11.10+ */ /* Opera 11.10+ */
background: linear-gradient(to bottom, #ffffff 0%, #dcdcdc 100%); background: linear-gradient(to bottom, white 0%, gainsboro 100%);
/* W3C */ } /* W3C */
}
.dataTables_wrapper .dataTables_paginate .paginate_button:active { .dataTables_wrapper .dataTables_paginate .paginate_button:active {
outline: none; outline: none;
background-color: #f6f6f6; background-color: #f6f6f6;
@ -200,7 +242,8 @@ table.dataTable {
/* Opera 11.10+ */ /* Opera 11.10+ */
background: linear-gradient(to bottom, #f6f6f6 0%, #d7d7d7 100%); background: linear-gradient(to bottom, #f6f6f6 0%, #d7d7d7 100%);
/* W3C */ /* W3C */
box-shadow: inset 0 0 3px #111; } box-shadow: inset 0 0 3px #111;
}
.dataTables_wrapper .dataTables_processing { .dataTables_wrapper .dataTables_processing {
position: absolute; position: absolute;
top: 50%; top: 50%;
@ -224,15 +267,19 @@ table.dataTable {
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%); 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%);
/* Opera 11.10+ */ /* Opera 11.10+ */
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: 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%);
/* W3C */ } /* W3C */
}
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate { .dataTables_wrapper .dataTables_paginate {
color: #333333; } color: #333333;
}
.dataTables_wrapper .dataTables_scroll { .dataTables_wrapper .dataTables_scroll {
clear: both; } clear: both;
}
.dataTables_wrapper .dataTables_scrollBody { .dataTables_wrapper .dataTables_scrollBody {
*margin-top: -1px; *margin-top: -1px;
-webkit-overflow-scrolling: touch; } -webkit-overflow-scrolling: touch;
}