To achieve the desired style, remove the CSS from .datatable-body-row and apply the following CSS to .datatable-row-center:
.datatable-row-center {
border-style: solid;
border-width: 1px;
border-color: #ccc;
margin-top: 1px;
margin-bottom: 1px;
}
.datatable-row-wrapper:hover .datatable-row-center {
border-color: rgb(104, 152, 241);
}
You can adjust the top and bottom margin based on the desired gap between each row, keeping them equal is recommended if possible.
Regarding the dark blue border on selection, it actually comes from the background color of the parent cell rather than a border. The following code should remove it:
.ngx-datatable.material.single-selection .datatable-body-row.active,
.ngx-datatable.material.single-selection .datatable-body-row.active:hover
{
background: none;
}
For the left and right borders, please check out this link. If the borders are not visible, could you provide a screenshot for reference? I made some adjustments by adding margin and removing box shadow from the table container to make the left and right borders more apparent on each row.
In addition, I included the following new CSS rules:
.ngx-datatable.material.single-selection .datatable-body-row.active,
.ngx-datatable.material.single-selection .datatable-body-row.active:hover
{
background: none;
}
.data-container {
margin-left: 24px;
margin-right: 24px;
.ngx-datatable.scroll-vertical {
height: calc(100vh - 10px);
width: $collection-list-table-width;
box-shadow: none;
}
}
https://i.sstatic.net/QS5ca.png