Skip to content

Commit

Permalink
Merge pull request #355 from jenkinsci/theme-design
Browse files Browse the repository at this point in the history
Adapt tables to Jenkins design language (light and dark theme)
  • Loading branch information
uhafner authored May 19, 2023
2 parents b507592 + e14b65f commit 6bb5f7c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
2 changes: 1 addition & 1 deletion go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

JENKINS_HOME=../docker/volumes/jenkins-home

mvn clean install || { echo "Build failed"; exit 1; }
mvn -o clean install || { echo "Build failed"; exit 1; }

echo "Installing plugin in $JENKINS_HOME"

Expand Down
40 changes: 21 additions & 19 deletions src/main/webapp/css/jenkins-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,10 @@ tfoot {
font-weight: bold;
}

/* Change color of active pagination, to fit to the material blue grey css */
.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
background-color: #b4b4b4;
border-color: #b4b4b4;
}

/* Change color of inactive pagination, to fit to the material blue grey css */
.pagination > li > a, .pagination > li > span {
color: #b4b4b4;
}

/* Change color of active pagination, to fit to the material blue grey css */
.page-item.active .page-link {
background-color: #b4b4b4;
border-color: #b4b4b4;
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
margin: 2px 4px 4px 0;
white-space: nowrap;
justify-content: flex-end;
}

/* Add color for search (filter) highlighting */
Expand Down Expand Up @@ -83,10 +72,23 @@ div.details-control {
/* ------------------------------------------------------------------------------------------------------------------- */
/* DataTables select */
/* ------------------------------------------------------------------------------------------------------------------- */
table.dataTable tbody > tr.selected, table.dataTable tbody > tr > .selected {
background-color: #b4b4b4 !important;

table.dataTable.table-striped > tbody > tr.odd > * {
box-shadow: inset 0 0 0 9999px var(--table-background);
color: var(--text-color)
}

table.dataTable.table-striped > tbody > tr.even > * {
box-shadow: inset 0 0 0 9999px var(--background);
color: var(--text-color)
}

table.dataTable.table-striped > tbody > tr.odd.selected > * {
box-shadow: inset 0 0 0 9999px var(--medium-grey);
color: var(--text-color)
}

table.dataTable tbody tr.selected, table.dataTable tbody th.selected, table.dataTable tbody td.selected {
color: black !important;
table.dataTable.table-striped > tbody > tr.even.selected > * {
box-shadow: inset 0 0 0 9999px var(--medium-grey);
color: var(--text-color)
}
2 changes: 1 addition & 1 deletion src/main/webapp/js/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jQuery3(document).ready(function () {
return '-';
}
const dateTime = luxon.DateTime.fromMillis(data * 1000);
return '<span data-bs-toggle="tooltip" data-bs-placement="bottom" title="'
return '<span data-bs-toggle="tooltip" data-bs-placement="top" title="'
+ dateTime.toLocaleString(luxon.DateTime.DATETIME_SHORT) + '">'
+ dateTime.toRelative({locale: 'en'}) + '</span>';
}
Expand Down

0 comments on commit 6bb5f7c

Please sign in to comment.