1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
/* These are used by the needtable directive
to style the table representation of the needs.
Note: we use `table.NEEDS_TABLE.NEEDS_TABLE` to select a needtable, to increase the specificity of the selector,
so that it should be generally higher than the specificity of the theme CSS selectors.
This avoids having to use !important.
*/
table.NEEDS_TABLE.NEEDS_TABLE,
table.NEEDS_DATATABLES.NEEDS_DATATABLES {
display: table;
overflow-x: auto;
white-space: normal;
width: 100%;
margin: 0 auto;
}
div.needstable_wrapper {
width: 100%;
overflow-x: auto;
padding: 0;
}
/* These are "overrides" for CSS added by the bundled https://datatables.net JS package */
table.dataTable {
border-collapse: collapse;
border: none;
}
table.dataTable tbody tr {
background-color: var(--sn-color-datatable-body-bg);
}
div.dataTables_length {
margin-bottom: 10px;
}
div.dataTables_wrapper {
overflow-x: auto;
padding: 0px 5px;
/*Space needed for table borders */
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
padding: 0.15em 0.75em;
background: none;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
background: none;
}
div.dataTables_length select {
background: none;
color: var(--sn-color-datatable-label);
border: 1px solid var(--sn-color-datatable-btn-border);
border-radius: 2px;
cursor: pointer;
}
div.dt-buttons {
margin-left: 0.5em;
}
div.dt-buttons button {
padding: 0.1em 1em;
border: 1px solid var(--sn-color-datatable-btn-border);
border-radius: 2px;
font-size: 0.88em;
line-height: inherit;
color: var(--sn-color-datatable-label);
white-space: nowrap;
overflow: hidden;
background-color: inherit;
background-image: none;
}
.dataTables_wrapper .dataTables_filter input {
max-width: 100px;
border: 1px solid var(--sn-color-datatable-btn-border);
margin-bottom: 10px;
background-color: transparent;
border-radius: 2px;
}
.dataTables_wrapper.dataTables_wrapper .dataTables_length,
.dataTables_wrapper.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper.dataTables_wrapper .dataTables_info,
.dataTables_wrapper.dataTables_wrapper .dataTables_processing {
color: var(--sn-color-datatable-label);
}
.dataTables_wrapper.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper.dataTables_wrapper .dataTables_paginate a.paginate_button,
.dataTables_wrapper.dataTables_wrapper .dataTables_paginate a.paginate_button.current {
/* datatables set this as !important, so unfortunately we have to do the same */
color: var(--sn-color-datatable-label) !important;
}
.dataTables_wrapper.dataTables_wrapper .dataTables_paginate a.paginate_button.disabled {
filter: saturate(0.5);
}
/* TODO: Ideally, if there is only one page, then the paginate buttons should be hidden. */
|