2025-03-03
Some checks failed
ci/woodpecker/push/publish_instable Pipeline failed

This commit is contained in:
gcch 2025-03-03 17:28:18 +01:00
commit 11fa3d1558
38 changed files with 819 additions and 148 deletions

96
public/sortable-table.css Normal file
View file

@ -0,0 +1,96 @@
.sr-only {
position: absolute;
top: -30em;
}
table.sortable td, table.sortable th {
width: 8em;
padding: 0.125em 0.25em;
}
table.sortable th {
position: relative;
border-bottom: thin solid #888;
font-weight: bold;
}
table.sortable th.no-sort {
padding-top: 0.35em;
}
table.sortable th:nth-child(5) {
width: 10em;
}
table.sortable th button {
cursor: pointer;
inset: 0;
display: inline;
width: 100%;
margin: 1px;
padding: 4px;
border: none;
font-size: 100%;
font-weight: bold;
text-align: left;
background: transparent;
outline: none;
}
table.sortable th button span {
position: absolute;
right: 4px;
}
table.sortable th[aria-sort="descending"] span::after {
content: "▼";
top: 0;
font-size: 100%;
color: currentcolor;
}
table.sortable th[aria-sort="ascending"] span::after {
content: "▲";
top: 0;
font-size: 100%;
color: currentcolor;
}
table.show-unsorted-icon th:not([aria-sort]) button span::after {
content: "♢";
position: relative;
top: -3px;
left: -4px;
font-size: 100%;
color: currentcolor;
}
table.sortable td.num {
text-align: right;
}
table.sortable tbody tr:nth-child(odd) {
background-color: #ddd;
}
/* Focus and hover styling */
table.sortable th button:focus, table.sortable th button:hover {
padding: 2px;
border: 2px solid currentcolor;
background-color: #e5f4ff;
}
table.sortable th button:focus span, table.sortable th button:hover span {
right: 2px;
}
table.sortable th:not([aria-sort]) button:focus span::after, table.sortable
th:not([aria-sort])
button:hover
span::after {
content: "▼";
top: 0;
font-size: 100%;
color: currentcolor;
}