Files

108 lines
1.9 KiB
CSS
Raw Permalink Normal View History

2024-12-06 23:29:04 +09:00
.repo-grid-filelist-sidebar {
display: grid;
2025-01-24 18:35:28 +01:00
grid-template-columns: auto 280px;
2024-12-06 23:29:04 +09:00
grid-template-rows: auto auto 1fr;
2025-01-24 18:35:28 +01:00
gap: var(--page-spacing);
2024-12-06 23:29:04 +09:00
}
2024-12-15 11:01:46 +01:00
.repo-home-filelist {
2024-12-06 23:29:04 +09:00
min-width: 0;
grid-column: 1;
grid-row: 1 / 4;
}
2024-12-15 11:01:46 +01:00
.repo-home-sidebar-top {
2024-12-06 23:29:04 +09:00
grid-column: 2;
grid-row: 1;
}
2024-12-15 11:01:46 +01:00
.repo-home-sidebar-bottom {
2024-12-06 23:29:04 +09:00
grid-column: 2;
grid-row: 2;
}
2024-12-15 11:01:46 +01:00
.repo-home-sidebar-bottom .flex-list > :first-child {
2024-12-06 23:29:04 +09:00
border-top: 1px solid var(--color-secondary); /* same to .flex-list > .flex-item + .flex-item */
}
@media (max-width: 767.98px) {
.repo-grid-filelist-sidebar {
grid-template-columns: 100%;
grid-template-rows: auto auto auto;
}
2024-12-15 11:01:46 +01:00
.repo-home-filelist {
2024-12-06 23:29:04 +09:00
grid-column: 1;
grid-row: 2;
}
2024-12-15 11:01:46 +01:00
.repo-home-sidebar-top {
2024-12-06 23:29:04 +09:00
grid-column: 1;
grid-row: 1;
padding-left: 0;
}
2024-12-15 11:01:46 +01:00
.repo-home-sidebar-bottom {
2024-12-06 23:29:04 +09:00
grid-column: 1;
grid-row: 3;
padding-left: 0;
}
.repo-home-sidebar-bottom .flex-list > :first-child {
2024-12-06 23:29:04 +09:00
border-top: 0;
}
}
2025-03-15 16:26:49 +08:00
.repo-view-container {
display: flex;
gap: var(--page-spacing);
}
.repo-view-file-tree-container {
display: flex;
flex-direction: column;
2025-03-17 22:55:15 +08:00
flex: 0 0 15%;
2025-03-15 16:26:49 +08:00
min-width: 0;
max-height: 100vh;
position: sticky;
top: 0;
bottom: 0;
height: 100%;
overflow-y: hidden;
2025-03-15 16:26:49 +08:00
}
@media (max-width: 767.98px) {
.repo-view-file-tree-container {
display: none;
}
}
2025-03-15 16:26:49 +08:00
.repo-view-content {
flex: 1;
2025-06-12 10:09:42 +08:00
min-width: 0;
2025-03-15 16:26:49 +08:00
}
2024-12-06 23:29:04 +09:00
.language-stats {
display: flex;
gap: 2px;
padding: 0;
height: 10px;
white-space: nowrap;
border-radius: 5px;
overflow: hidden;
width: 100%;
margin-top: 1rem;
margin-bottom: 5px;
}
.language-stats-details {
display: flex;
flex-wrap: wrap;
}
.language-stats-details .item {
height: 30px;
display: flex;
align-items: center;
justify-content: center;
gap: 0.25em;
padding: 0 0.5em; /* make the UI look better for narrow (mobile) view */
text-decoration: none;
}