Files

95 lines
2.3 KiB
CSS
Raw Permalink Normal View History

2024-12-11 23:54:42 +08:00
#repo-files-table {
width: 100%;
display: grid;
2024-12-15 17:56:56 +01:00
grid-template-columns: 2fr 3fr auto;
border: 1px solid var(--color-secondary);
background: var(--color-box-body);
2024-12-11 23:54:42 +08:00
border-radius: var(--border-radius);
margin: 10px 0; /* match the "clone-panel-popup" margin to avoid "visual double-border" */
}
2024-12-15 17:56:56 +01:00
@media (max-width: 767.98px) {
#repo-files-table {
grid-template-columns: auto 1fr auto;
}
}
2024-12-11 23:54:42 +08:00
#repo-files-table .repo-file-item {
display: contents;
}
2024-12-15 17:56:56 +01:00
#repo-files-table .repo-file-item:hover > .repo-file-cell,
#repo-files-table .parent-link:hover {
background: var(--color-hover-opaque);
2024-12-11 23:54:42 +08:00
}
#repo-files-table .repo-file-line,
#repo-files-table .repo-file-cell {
2024-12-15 17:56:56 +01:00
border-top: 1px solid var(--color-secondary);
2024-12-14 13:43:05 +08:00
padding: 8px 10px;
2024-12-11 23:54:42 +08:00
}
#repo-files-table .repo-file-line:first-child {
border-top: none;
2024-12-15 17:56:56 +01:00
border-radius: var(--border-radius) var(--border-radius) 0 0;
}
#repo-files-table .repo-file-item:last-child .repo-file-cell:first-child {
border-bottom-left-radius: calc(var(--border-radius) - 1px);
}
#repo-files-table .repo-file-item:last-child .repo-file-cell:last-child {
border-bottom-right-radius: calc(var(--border-radius) - 1px);
2024-12-11 23:54:42 +08:00
}
#repo-files-table .repo-file-line {
grid-column: 1 / span 3;
display: flex;
align-items: center;
gap: 0.5em;
}
2024-12-13 14:45:32 +08:00
#repo-files-table .repo-file-last-commit {
2025-01-28 01:09:20 +08:00
min-width: 0; /* otherwise the flex axis is not limited and the text might overflow in Pale Moon */
2024-12-13 14:45:32 +08:00
background: var(--color-box-header);
}
2024-12-11 23:54:42 +08:00
#repo-files-table .repo-file-cell.name {
2025-03-19 00:59:33 +08:00
display: flex;
align-items: center;
gap: 0.5em;
overflow: hidden;
}
#repo-files-table .repo-file-cell.name > a,
#repo-files-table .repo-file-cell.name > span {
flex-shrink: 0;
2024-12-11 23:54:42 +08:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
2025-03-19 00:59:33 +08:00
#repo-files-table .repo-file-cell.name .entry-name {
flex-shrink: 1;
min-width: 1ch; /* leave about one letter space when shrinking, need to fine tune the "shrinks" in this grid in the future */
2025-03-19 00:59:33 +08:00
}
2024-12-15 17:56:56 +01:00
@media (max-width: 767.98px) {
#repo-files-table .repo-file-cell.name {
max-width: 35vw;
}
}
2024-12-11 23:54:42 +08:00
#repo-files-table .repo-file-cell.message {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--color-text-light-1);
}
#repo-files-table .repo-file-cell.age {
2024-12-13 14:45:32 +08:00
text-align: right;
2024-12-11 23:54:42 +08:00
white-space: nowrap;
color: var(--color-text-light-1);
}