Skip to content

Commit

Permalink
Remove striping and improve overall table layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Feb 27, 2024
1 parent 02e7683 commit 9bea2bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/data-tables/table.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<j:if test="${model.tableConfiguration.useButtons}">
<div class="table-buttons-container clearfix"/>
</j:if>
<table class="table table-hover table-striped data-table dt-responsive nowrap ${class}"
<table class="table table-hover data-table dt-responsive nowrap ${class}"
data-columns-definition="${model.columnsDefinition}" id="${model.id}"
data-table-configuration="${model.tableConfigurationDefinition}"
style="width: 100%;">
Expand Down
29 changes: 14 additions & 15 deletions src/main/webapp/css/jenkins-style.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
/* Styling without stripes */

/*table {*/
/* border-collapse:collapse;*/
/*}*/
table {
border-collapse:collapse;
}

/*tr {*/
/* border-bottom: 1pt solid var(--bs-table-border-color);*/
/*}*/
tr {
border-bottom: 1pt solid var(--bs-table-border-color);
}

/*tr.dt-hasChild {*/
/* border-bottom: 0;*/
/*}*/
tr.dt-hasChild {
border-bottom: 0;
}

/*tr:last-child {*/
/* border-bottom: .5pt solid var(--medium-grey);*/
/*}*/
tr:last-child {
border-bottom: .5pt solid var(--medium-grey);
}

/* Add rounded border for table header hover */
table.dataTable thead > tr > th.dt-orderable-asc:hover, table.dataTable thead > tr > th.dt-orderable-desc:hover,
table.dataTable thead > tr > th.dt-orderable-asc:hover,
table.dataTable thead > tr > th.dt-orderable-desc:hover,
table.dataTable thead > tr > td.dt-orderable-asc:hover,
table.dataTable thead > tr > td.dt-orderable-desc:hover {
outline: 1.5px solid var(--bs-table-border-color);
Expand Down

0 comments on commit 9bea2bc

Please sign in to comment.