feat: filebrowser shows only images; info.md moves to a side panel in Libre Baskerville
This commit is contained in:
@@ -6,6 +6,30 @@
|
||||
remove this file → original shibui look returns.
|
||||
══════════════════════════════════════════════════════════════ */
|
||||
|
||||
/* self-hosted serif, used only for the project-info side panel */
|
||||
@font-face {
|
||||
font-family: "Libre Baskerville";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url("/fonts/libre-baskerville-400.woff2") format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Libre Baskerville";
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url("/fonts/libre-baskerville-400italic.woff2") format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Libre Baskerville";
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: url("/fonts/libre-baskerville-700.woff2") format("woff2");
|
||||
}
|
||||
:root { --font-family-serif: "Libre Baskerville", Georgia, serif; }
|
||||
|
||||
/* ─────────────────────── SHELL PROMPT ─────────────────────── */
|
||||
.prompt {
|
||||
font-family: var(--font-family-mono);
|
||||
@@ -143,6 +167,40 @@ body:not(.home) .menu { display: none; }
|
||||
.tui__text > :first-child { margin-top: 0; }
|
||||
.tui__text > :last-child { margin-bottom: 0; }
|
||||
|
||||
/* ─────────────────── PROJECT INFO PANEL ─────────────────── */
|
||||
/* info.md (the project description / about text) lives outside the
|
||||
filebrowser now — on wide viewports it sits to the right of the whole
|
||||
file list, clearing the "$ ls" / "total N" shell lines up top; on narrow
|
||||
ones there's no room for two columns, so it just stacks below instead. */
|
||||
.proj-layout { display: block; }
|
||||
.proj-info {
|
||||
margin: 1.5rem 0 0;
|
||||
font-family: var(--font-family-serif);
|
||||
font-size: 1.05em;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.proj-info > :first-child { margin-top: 0; }
|
||||
.proj-info > :last-child { margin-bottom: 0; }
|
||||
|
||||
@media (min-width: 900px) {
|
||||
.proj-layout {
|
||||
width: 100vw;
|
||||
margin-left: calc(50% - 50vw);
|
||||
margin-right: calc(50% - 50vw);
|
||||
padding: 0 1.5rem;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
gap: 2.5rem;
|
||||
}
|
||||
.proj-layout .filebrowser { flex: 0 1 var(--container-width); min-width: 0; }
|
||||
.proj-info {
|
||||
flex: 0 1 calc(var(--container-width) - 4rem); /* slightly narrower than the content column */
|
||||
margin-top: 3.6rem; /* clear the two shell lines above the file list */
|
||||
}
|
||||
}
|
||||
|
||||
/* prev/next as shell "cd" commands — same vocabulary as the rest of the site */
|
||||
.proj-nav {
|
||||
font-family: var(--font-family-mono);
|
||||
|
||||
Reference in New Issue
Block a user