mediawiki-skins-Citizen/skinStyles/jquery/datatables.less

296 lines
8.7 KiB
Plaintext
Raw Normal View History

/*
* Citizen
*
* SkinStyles for dataTables
* Shared by Extension:Cargo and Extension:SemanticResultFormats
*
* Date: 2024-03-19
*/
/* jquery.dataTables.css */
table.dataTable {
display: table;
max-width: 100%;
overflow: auto;
font-size: var( --font-size-small );
}
table.dataTable thead th,
table.dataTable tfoot th {
font-weight: var( --font-weight-semibold );
}
table.dataTable thead th,
table.dataTable thead td {
padding: var( --space-xs ) var( --space-sm );
font-size: var( --font-size-x-small );
font-weight: var( --font-weight-normal );
color: var( --color-base--subtle );
text-align: start;
letter-spacing: 0.05em;
border-bottom-color: var( --border-color-base );
}
table.dataTable tfoot th,
table.dataTable tfoot td {
border-top-color: var( --border-color-base );
}
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
&:hover {
background-color: var( --background-color-quiet--hover );
}
&:active {
background-color: var( --background-color-quiet--active );
}
}
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
// 19px is the icon size
padding-right: ~'calc( 19px + var( --space-sm ) )';
background-position-x: ~'calc( 100% - var( --space-xs ) )';
}
table.dataTable tbody tr {
background-color: var( --color-surface-0 );
}
table.dataTable tbody tr.selected {
background-color: var( --background-color-quiet--hover );
}
table.dataTable tbody th,
table.dataTable tbody td {
padding: var( --space-xs ) var( --space-sm );
}
table.dataTable.row-border tbody th,
table.dataTable.row-border tbody td,
table.dataTable.display tbody th,
table.dataTable.display tbody td {
border-top-color: var( --border-color-base );
}
table.dataTable.cell-border tbody th,
table.dataTable.cell-border tbody td {
border-top-color: var( --border-color-base );
border-right-color: var( --border-color-base );
}
table.dataTable.cell-border tbody tr th:first-child,
table.dataTable.cell-border tbody tr td:first-child {
border-left-color: var( --border-color-base );
}
table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd {
background-color: var( --color-surface-2 );
}
table.dataTable.stripe tbody tr.odd.selected,
table.dataTable.display tbody tr.odd.selected {
background-color: var( --background-color-quiet--hover );
}
table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover,
table.dataTable.hover tbody tr:hover.selected,
table.dataTable.display tbody tr:hover.selected {
background-color: var( --background-color-quiet--hover );
}
table.dataTable.order-column tbody tr > .sorting_1,
table.dataTable.order-column tbody tr > .sorting_2,
table.dataTable.order-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_3 {
background-color: var( --color-surface-3 );
}
table.dataTable.order-column tbody tr.selected > .sorting_1,
table.dataTable.order-column tbody tr.selected > .sorting_2,
table.dataTable.order-column tbody tr.selected > .sorting_3,
table.dataTable.display tbody tr.selected > .sorting_1,
table.dataTable.display tbody tr.selected > .sorting_2,
table.dataTable.display tbody tr.selected > .sorting_3 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.odd > .sorting_1,
table.dataTable.order-column.stripe tbody tr.odd > .sorting_1 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.odd > .sorting_2,
table.dataTable.order-column.stripe tbody tr.odd > .sorting_2 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.odd > .sorting_3,
table.dataTable.order-column.stripe tbody tr.odd > .sorting_3 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.odd.selected > .sorting_1,
table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_1 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.odd.selected > .sorting_2,
table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_2 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.odd.selected > .sorting_3,
table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_3 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.even > .sorting_1,
table.dataTable.order-column.stripe tbody tr.even > .sorting_1 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.even > .sorting_2,
table.dataTable.order-column.stripe tbody tr.even > .sorting_2 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.even > .sorting_3,
table.dataTable.order-column.stripe tbody tr.even > .sorting_3 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.even.selected > .sorting_1,
table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_1 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.even.selected > .sorting_2,
table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_2 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr.even.selected > .sorting_3,
table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_3 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr:hover > .sorting_1,
table.dataTable.order-column.hover tbody tr:hover > .sorting_1 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr:hover > .sorting_2,
table.dataTable.order-column.hover tbody tr:hover > .sorting_2 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr:hover > .sorting_3,
table.dataTable.order-column.hover tbody tr:hover > .sorting_3 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr:hover.selected > .sorting_1,
table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_1 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr:hover.selected > .sorting_2,
table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_2 {
background-color: var( --color-surface-3 );
}
table.dataTable.display tbody tr:hover.selected > .sorting_3,
table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_3 {
background-color: var( --color-surface-3 );
}
table.dataTable.no-footer {
border-bottom-color: var( --border-color-base );
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
font-weight: var( --font-weight-medium );
color: var( --color-base--emphasized ) !important;
border-radius: var( --border-radius--small );
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
color: var( --color-base--emphasized ) !important;
background: var( --background-color-primary--active );
border-color: transparent;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
color: var( --color-base--subtle ) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
color: var( --color-base--emphasized ) !important;
background: var( --background-color-quiet--hover );
border-color: transparent;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:active {
background: var( --background-color-quiet--active );
box-shadow: none;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
font-size: var( --font-size-small );
color: var( --color-base );
}
.dataTables_wrapper .dataTables_filter + .dataTable {
// Add top border as divider if there are filter on top
border-top: 1px solid var( --border-color-base );
}
/* Search pane */
div.dtsp-topRow.dtsp-bordered {
border: 1px solid var( --border-color-base );
border-radius: var( --border-radius--medium );
&:hover {
border: 1px solid var( --border-color-base );
border-radius: var( --border-radius--medium );
background-color: var( --background-color-quiet--hover );
opacity: 1;
}
}
div.dtsp-panesContainer {
div.dtsp-searchPanes {
div.dtsp-searchPane {
div.dataTables_wrapper {
border: 1px solid var( --border-color-base );
border-radius: var( --border-radius--medium );
&:hover {
border: 1px solid var( --border-color-base );
}
}
}
}
div.dataTables_wrapper div.dataTables_scrollBody {
background: transparent !important;
}
}