baseddata.io/static/css/tables.css

63 lines
1.1 KiB
CSS
Raw Permalink Normal View History

2024-08-07 15:32:21 +01:00
/* Tables */
2024-09-22 14:27:13 +01:00
.jsonTableContainer {
2024-09-10 09:12:25 +01:00
display: flex;
overflow-y: auto;
2024-08-07 15:32:21 +01:00
}
table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):not(.sorttable_nosort):after {
content: " \25B4\25BE"
}
2024-08-07 15:32:21 +01:00
table {
width: 100%;
border-collapse: collapse;
color: var(--table-font-color);
margin-bottom: var(--article-margin);
}
th {
background-color: var(--table-header-bg);
padding: 5px;
text-align: left;
font-size: var(--table-header-font-size);
}
td {
padding: 5px;
text-align: left;
max-width: 90px;
2024-08-08 14:26:55 +01:00
font-size: var(--table-row-font-size);
2024-08-07 15:32:21 +01:00
}
2024-09-10 09:12:25 +01:00
#scrollable:hover {
scrollbar-width: thin;
}
2024-08-07 15:32:21 +01:00
@media only screen and (max-width: 800px) {
#scrollable {
2024-09-10 09:12:25 +01:00
scrollbar-width: thin;
2024-08-07 15:32:21 +01:00
max-width: 90px;
max-height: 100%;
margin: 0;
padding: 0;
overflow: auto;
white-space: nowrap;
}
}
tr:nth-child(even) {
background-color: var(--table-even-row-bg-color);
font-size: var(--table-row-font-size);
}
tr:nth-child(odd) {
background-color: var(--table-odd-row-bg-color);
font-size: var(--table-row-font-size);
}
2024-09-22 14:27:13 +01:00
tr:hover {
background-color: #f5f5f5;
}
tr.selected {
background-color: #d1ecf1;
}