MediaWiki:DataTable.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Table Styles */
.table-wrapper{
margin: 10px 70px 70px;
box-shadow: 0px 35px 50px rgba( 0, 0, 0, 0.2 );
}
.data-table {
border-radius: 5px;
font-weight: normal;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
border-collapse: collapse;
width: 100%;
max-width: 100%;
background-color: white;
}
.skin-theme-clientpref-night .data-table {
background-color: black;
}
.data-table td, .data-table th {
text-align: left;
padding: 8px;
}
.data-table td {
border-right: 1px solid #f8f8f8;
}
.data-table thead th {
color: #ffffff;
background: #4FC3A1;
}
.data-table thead th:nth-child(odd) {
color: #ffffff;
background: #324960;
}
.data-table tr:nth-child(even) {
background: #F8F8F8;
}
.skin-theme-clientpref-night .data-table tr:nth-child(even) {
background: #4E4E4E;
}
/* Responsive */
/* Disable for now cause mobile looks wrecked
@media (max-width: 767px) {
.data-table {
display: block;
width: 100%;
}
.table-wrapper:before{
content: "Scroll horizontally >";
display: block;
text-align: right;
font-size: 11px;
color: white;
padding: 0 0 10px;
}
.data-table thead, .data-table tbody, .data-table thead th {
display: block;
}
.data-table thead th:last-child{
border-bottom: none;
}
.data-table thead {
float: left;
}
.data-table tbody {
width: auto;
position: relative;
overflow-x: auto;
}
.data-table td, .data-table th {
padding: 20px .625em .625em .625em;
height: 60px;
vertical-align: middle;
box-sizing: border-box;
overflow-x: hidden;
overflow-y: auto;
width: 120px;
text-overflow: ellipsis;
}
.data-table thead th {
text-align: left;
border-bottom: 1px solid #f7f7f9;
}
.data-table tbody tr {
display: table-cell;
}
.data-table tbody tr:nth-child(odd) {
background: none;
}
.data-table tr:nth-child(even) {
background: transparent;
}
.data-table tr td:nth-child(odd) {
background: #F8F8F8;
border-right: 1px solid #E6E4E4;
}
.skin-theme-clientpref-night .data-table tr td:nth-child(odd) {
background: #4E4E4E;
}
.data-table tr td:nth-child(even) {
border-right: 1px solid #E6E4E4;
}
.data-table tbody td {
display: block;
text-align: center;
}
}
*/
/* [[Category:Stylesheets]] */