diff --git a/package.json b/package.json index 18ecc156..87184152 100644 --- a/package.json +++ b/package.json @@ -100,6 +100,7 @@ "cssnano": "^6.1.0", "datatables.net-bs5": "^2.0.8", "datatables.net-dt": "^2.0.8", + "datatables.net-select": "^2.1.0", "esbuild": "^0.20.1", "eslint": "^9.11.1", "eslint-config-standard": "^17.0.0", diff --git a/scss/libraries/_datatables.scss b/scss/libraries/_datatables.scss index 8ab60c73..31254498 100644 --- a/scss/libraries/_datatables.scss +++ b/scss/libraries/_datatables.scss @@ -30,9 +30,23 @@ div.dt-container div { } table.table.dataTable { - &.table-striped>tbody>tr:nth-of-type(odd)>* { - box-shadow: unset; - background: var(--bs-secondary-bg); + &.table-striped>tbody>tr { + &.selected>* { + box-shadow: unset !important; + } + + &.selected .bg-selected { + background-color: var(--bs-primary) !important; + color: var(--bs-primary-contrast) !important; + font-weight: bold !important; + } + } + + &.table-striped>tbody>tr:nth-of-type(odd) { + >* { + box-shadow: unset; + background: var(--bs-secondary-bg); + } } td.dt-type-date, diff --git a/yarn.lock b/yarn.lock index cea07fe2..247bf299 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2211,6 +2211,7 @@ __metadata: cssnano: "npm:^6.1.0" datatables.net-bs5: "npm:^2.0.8" datatables.net-dt: "npm:^2.0.8" + datatables.net-select: "npm:^2.1.0" easymde: "npm:^2.16.1" esbuild: "npm:^0.20.1" eslint: "npm:^9.11.1" @@ -2677,6 +2678,16 @@ __metadata: languageName: node linkType: hard +"datatables.net-select@npm:^2.1.0": + version: 2.1.0 + resolution: "datatables.net-select@npm:2.1.0" + dependencies: + datatables.net: "npm:^2" + jquery: "npm:>=1.7" + checksum: 10c0/a6e379c49e6d14e563c91b66a67337d9ea8bcdc8c00febc9f048b7083236961dc7219c354e662954e60783a5034aaa66f85a02fb0751317f132ce15202f2378c + languageName: node + linkType: hard + "datatables.net@npm:2.1.7": version: 2.1.7 resolution: "datatables.net@npm:2.1.7" @@ -2686,6 +2697,15 @@ __metadata: languageName: node linkType: hard +"datatables.net@npm:^2": + version: 2.1.8 + resolution: "datatables.net@npm:2.1.8" + dependencies: + jquery: "npm:>=1.7" + checksum: 10c0/0c669c84c03bc63610bb885f5d0e84829221e26ae1e15d9568544b6acd9df3e89aac3b74f367af4267850498cd56feb591fbcf70c8cda0b114ca325ea94da473 + languageName: node + linkType: hard + "debug@npm:4, debug@npm:^4, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:^4.3.6": version: 4.3.7 resolution: "debug@npm:4.3.7"