MediaWiki:Datatables.css
From WikiMSK
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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
.datatable {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.datatable thead {
width: 260px;
order: 0;
}
.datatable thead .sorting, table.dataTable thead .sorting_asc {
background-position: 0 50%!important;
background-position: center left!important;
}
.datatable thead tr {
display: flex;
flex-direction: column;
}
.datatable thead tr th {
border: 0 !important;
}
.datatable tbody {
display: flex;
flex-direction: column;
width: calc(100% - 260px);
order: 1;
}
@media only screen and (max-width: 1000px) {
.datatable tbody {
width: 100%;
}
}
.datatable tbody tr {
display: flex;
flex-direction: column;
width: 100%;
flex: 1;
border: 1px solid #aaa;
padding: 6px;
margin-bottom: 1rem;
}
.datatable td {
padding: 4px 1rem;
display: flex;
gap: 2px;
}
.datatable td:empty {
display: none;
}
.datatable tr td:not(:first-of-type) b {
flex-basis: 120px;
min-width: 120px;
}
#joints thead .sorting, #muscles thead .sorting {
background-position: center left!important;
}