frontend/sass/content/repo.scss
.jj-repo-info {
width: 100%;
margin-top: 6rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
h1 {
margin: 0;
}
.stats {
display: flex;
flex-wrap: wrap;
justify-content: center;
.item {
display: flex;
align-items: center;
margin-right: 1rem;
svg {
margin-right: 0.25rem;
}
}
}
.actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.75rem;
button {
width: 4rem;
padding: 0.5rem 0.75rem;
background: var(--bg-1);
border: 1px solid var(--border-color);
border-radius: 6px;
color: var(--text-0);
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
&:hover {
background: var(--bg-2);
border-color: var(--text-2);
}
}
}
}
@media (max-width: 768px) {
.jj-repo-info {
flex-direction: column;
align-items: flex-start;
}
.actions {
width: 100%;
}
}
.explorer {
margin-top: 3rem;
overflow: hidden;
font-family: var(--mono-text-font, monospace);
font-size: 0.85rem;
.breadcrumb {
padding: 0.5rem 1rem;
background: var(--bg-1);
color: var(--fg-muted, #888);
border-bottom: 1px solid var(--border, #333);
a {
color: var(--accent, #7aa2f7);
text-decoration: none;
cursor: pointer;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}
.table {
width: 100%;
border-collapse: collapse;
background: var(--bg-1);
.dir {
cursor: pointer;
td {
padding: 0.4rem 1rem;
width: 1.5rem;
color: var(--fg-muted, #666);
&:hover {
text-decoration: underline;
}
}
}
.file {
cursor: pointer;
td {
padding: 0.4rem 1rem;
width: 1.5rem;
color: var(--fg-muted, #666);
&:hover {
text-decoration: underline;
}
}
}
}
.viewer {
background: var(--bg-1);
border-top: 1px solid var(--border, #333);
padding: 1rem;
.header {
color: var(--fg-muted, #888);
margin-bottom: 0.75rem;
font-size: 0.8rem;
}
pre {
background: var(--bg-1);
margin: 0;
overflow-x: auto;
code {
.hljs-ln-numbers {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-align: center;
color: #ccc;
border-right: 1px solid #ccc;
vertical-align: top;
padding-right: 5px;
}
.hljs-ln-code {
padding-left: 10px;
}
margin: 0;
padding: 0;
background: var(--bg-1);
font-family: var(--mono-text-font, monospace);
font-size: 0.85rem;
}
}
}
}