c46f9a48f7
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
397 lines
12 KiB
CSS
397 lines
12 KiB
CSS
/* ══════════════════════════════════════════════════════════════
|
|
custom.css — extends shibui WITHOUT touching the theme.
|
|
- top bar reads like a terminal prompt: "/ karimgabrielevarano_ ls"
|
|
- clicking "ls" lists the pages, stacked, inverted on hover
|
|
- only the work index breaks the narrow column
|
|
remove this file → original shibui look returns.
|
|
══════════════════════════════════════════════════════════════ */
|
|
|
|
/* ─────────────────────── SHELL PROMPT ─────────────────────── */
|
|
.prompt {
|
|
font-family: var(--font-family-mono);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
gap: 0;
|
|
line-height: 1.5;
|
|
}
|
|
.prompt__user { font-weight: 700; }
|
|
.prompt__path { color: var(--color-text-muted); }
|
|
/* breadcrumb segments look like plain prompt text at rest, fill on hover */
|
|
.prompt__seg {
|
|
margin-left: 0;
|
|
border-bottom: none;
|
|
background: none;
|
|
color: inherit;
|
|
}
|
|
.prompt__seg:hover {
|
|
background: var(--color-text-primary);
|
|
color: var(--color-bg-primary);
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* the typeable command — looks like shell text, native caret hidden so our
|
|
blinking "_" is the cursor */
|
|
.prompt__input {
|
|
margin-left: 0.6ch;
|
|
min-width: 0;
|
|
font-weight: 700;
|
|
color: var(--color-text-primary);
|
|
white-space: pre;
|
|
outline: none;
|
|
caret-color: transparent;
|
|
}
|
|
/* a command "typed" by the file browser on hover/freeze — dimmed so it reads
|
|
as a hint, not something you committed. any real keystroke discards it. */
|
|
.prompt__input.is-ghost { color: var(--color-text-muted); font-weight: 400; }
|
|
|
|
/* blinking terminal cursor, sits right after the typed text */
|
|
.caret {
|
|
font-weight: 700;
|
|
color: var(--color-text-primary);
|
|
animation: blink 1.1s steps(1) infinite;
|
|
}
|
|
@keyframes blink { 50% { opacity: 0; } }
|
|
|
|
/* always-open file menu (the shell's "ls") — only shown on the home page;
|
|
on subpages it stays in the DOM (hidden) so typed commands still resolve */
|
|
.menu { margin: var(--spacing-sm) 0 0; }
|
|
body:not(.home) .menu { display: none; }
|
|
|
|
/* easter-egg output line — takes no space until it actually has output */
|
|
.prompt__out {
|
|
font-family: var(--font-family-mono);
|
|
color: var(--color-text-muted);
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
}
|
|
.prompt__out:not(:empty) { margin: 0.35rem 0 0; }
|
|
|
|
/* ─────────────────────── HOME IMAGE ─────────────────────── */
|
|
/* sits low enough that opening the ls overlay never moves it */
|
|
.home .hero__img { margin: 2rem 0 0; text-align: left; }
|
|
.hero__img img { width: 100%; height: auto; margin: 0; }
|
|
|
|
/* ─────────────────── WORK INDEX (ls -l style) ─────────────────── */
|
|
.tui { font-family: var(--font-family-mono); }
|
|
.tui__cmd { margin: 0; color: var(--color-text-muted); }
|
|
.tui__sym { color: var(--color-text-muted); }
|
|
.tui__total { margin: 0 0 0.6rem; }
|
|
|
|
.tui__ls { list-style: none; margin: 0; padding: 0; }
|
|
.tui__ls li { margin: 0; }
|
|
.tui__ls a {
|
|
display: grid;
|
|
grid-template-columns: 11ch 5ch 1fr;
|
|
gap: 0 1ch;
|
|
margin: 0;
|
|
padding: 0 0.25em;
|
|
border-bottom: none;
|
|
color: var(--color-text-primary);
|
|
white-space: nowrap;
|
|
}
|
|
.tui__perm,
|
|
.tui__date { color: var(--color-text-muted); }
|
|
.tui__ls a:hover,
|
|
.tui__ls a.is-selected {
|
|
background: var(--color-text-primary);
|
|
color: var(--color-bg-primary);
|
|
}
|
|
.tui__ls a:hover .tui__perm,
|
|
.tui__ls a:hover .tui__date,
|
|
.tui__ls a:hover .tui__name,
|
|
.tui__ls a.is-selected .tui__perm,
|
|
.tui__ls a.is-selected .tui__date,
|
|
.tui__ls a.is-selected .tui__name { color: var(--color-bg-primary); }
|
|
|
|
/* preview pane (ranger-style) below the listing */
|
|
.tui__preview { margin: 1.25rem 0 0; }
|
|
.tui__preview img {
|
|
width: 100%;
|
|
aspect-ratio: 3 / 2;
|
|
object-fit: cover;
|
|
height: auto;
|
|
margin: 0;
|
|
display: block;
|
|
transition: opacity 0.25s ease;
|
|
}
|
|
|
|
/* project page: image files (no date column), show full image (contain) */
|
|
.tui--files .tui__ls a { grid-template-columns: 11ch 1fr; }
|
|
/* long listings (>8 entries) scroll instead of pushing the preview down */
|
|
.tui--files .tui__ls {
|
|
max-height: 12em; /* ~8 rows at line-height 1.5 */
|
|
overflow-y: auto;
|
|
}
|
|
.tui--files .tui__preview img {
|
|
aspect-ratio: auto; /* keep each image's own ratio — no letterboxing */
|
|
width: auto;
|
|
max-width: 100%;
|
|
max-height: 80vh;
|
|
height: auto;
|
|
object-fit: contain;
|
|
background: none;
|
|
}
|
|
/* info.md text preview */
|
|
.tui__text { font-size: var(--font-size-base); text-align: left; }
|
|
.tui__text p { text-align: left; }
|
|
.tui__text > :first-child { margin-top: 0; }
|
|
.tui__text > :last-child { margin-bottom: 0; }
|
|
|
|
/* prev/next as shell "cd" commands — same vocabulary as the rest of the site */
|
|
.proj-nav {
|
|
font-family: var(--font-family-mono);
|
|
margin: 1.5rem 0 0;
|
|
display: flex;
|
|
gap: 1.5ch;
|
|
}
|
|
.proj-nav a[rel="next"] { margin-left: auto; } /* → always pinned right */
|
|
.proj-nav a {
|
|
border-bottom: none;
|
|
color: var(--color-text-muted);
|
|
}
|
|
.proj-nav a:hover {
|
|
background: var(--color-text-primary);
|
|
color: var(--color-bg-primary);
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* studies path → clickable taxonomy filters, but indistinguishable from plain
|
|
text (no underline, no hover, inherits the surrounding colour) */
|
|
.proj-path__seg,
|
|
.proj-path__seg:hover {
|
|
margin-left: 0;
|
|
border-bottom: none;
|
|
background: none;
|
|
color: inherit;
|
|
}
|
|
.proj-path__seg--last { font-weight: 700; }
|
|
|
|
/* secret `doom` — a small window floating over the site, sized to the 4:3 game */
|
|
.doom-window {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: min(92vw, 640px);
|
|
z-index: 9999;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #000;
|
|
border: 1px solid var(--color-text-primary);
|
|
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
|
|
}
|
|
.doom-window__bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.25rem 0.25rem 0.25rem 0.6rem;
|
|
font-family: var(--font-family-mono);
|
|
font-size: var(--font-size-small);
|
|
color: #fff;
|
|
background: #000;
|
|
cursor: move;
|
|
user-select: none;
|
|
}
|
|
.doom-window__close {
|
|
cursor: pointer;
|
|
color: #fff;
|
|
background: none;
|
|
border: none;
|
|
font: inherit;
|
|
line-height: 1;
|
|
padding: 0 0.6ch;
|
|
}
|
|
.doom-window__close:hover { color: #000; background: #fff; }
|
|
.doom-window iframe {
|
|
width: 100%;
|
|
aspect-ratio: 4 / 3;
|
|
height: auto;
|
|
border: 0;
|
|
background: #000;
|
|
display: block;
|
|
}
|
|
|
|
/* about: terminal-style metadata / contact list */
|
|
.meta {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
column-gap: 1.5ch;
|
|
row-gap: 0.15rem;
|
|
font-family: var(--font-family-mono);
|
|
margin: var(--spacing-base) 0 0;
|
|
}
|
|
.meta dt { color: var(--color-text-muted); }
|
|
.meta dd { margin: 0; }
|
|
.meta a { margin-left: 0; }
|
|
|
|
/* `dark` / `light` theme toggle — overrides the theme's colour variables */
|
|
html.dark {
|
|
color-scheme: dark;
|
|
--color-bg-primary: hsl(0 0% 8%);
|
|
--color-bg-secondary: hsl(0 0% 12%);
|
|
--color-border: hsl(0 0% 22%);
|
|
--color-selection-bg: hsl(0 0% 32%);
|
|
--color-text-primary: hsl(0 0% 92%);
|
|
--color-text-muted: hsl(0 0% 58%);
|
|
--color-text-code: hsl(0 0% 78%);
|
|
}
|
|
|
|
/* `sl` — a steam locomotive that rolls across the screen */
|
|
.sl {
|
|
position: fixed;
|
|
top: 38%;
|
|
left: 0;
|
|
margin: 0;
|
|
z-index: 9998;
|
|
white-space: pre;
|
|
font-family: var(--font-family-mono);
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
color: var(--color-text-primary);
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* boot splash — systemd/Arch-style log, but in the site's own look:
|
|
light background, same mono font, constrained to the site column width */
|
|
#boot { display: none; }
|
|
html.booting #boot {
|
|
display: block;
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 10000;
|
|
overflow-y: auto;
|
|
scrollbar-width: none;
|
|
padding: 0.8rem 0;
|
|
background: var(--color-bg-primary);
|
|
cursor: none;
|
|
}
|
|
html.booting #boot::-webkit-scrollbar { display: none; }
|
|
.boot__log {
|
|
width: 100%;
|
|
max-width: var(--container-width);
|
|
margin: 0 auto;
|
|
padding: 0 1.5rem;
|
|
border: 0;
|
|
background: none;
|
|
box-shadow: none;
|
|
border-radius: 0;
|
|
font-family: var(--font-family-mono);
|
|
font-size: var(--font-size-small);
|
|
line-height: 1.6;
|
|
color: var(--color-text-primary);
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
.boot__line { white-space: pre-wrap; }
|
|
.boot__ok { font-weight: 700; }
|
|
.boot__dim { color: var(--color-text-muted); }
|
|
|
|
/* text isn't selectable anywhere — except the command line, which you type in */
|
|
body {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
user-select: none;
|
|
}
|
|
.prompt__input {
|
|
-webkit-user-select: text;
|
|
-moz-user-select: text;
|
|
user-select: text;
|
|
}
|
|
|
|
/* dotted content + footer links: unchanged at rest, invert to black on hover */
|
|
main a:hover,
|
|
footer a:hover {
|
|
background: var(--color-text-primary);
|
|
color: var(--color-bg-primary);
|
|
border-bottom-color: transparent;
|
|
}
|
|
|
|
/* self-hosted video — custom terminal-style player (no native controls, so
|
|
only our own cursor shows; same-origin keeps the pixel cursor working) */
|
|
.player {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
background: #000;
|
|
font-family: var(--font-family-mono);
|
|
overflow: hidden;
|
|
}
|
|
.player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
|
|
.player__big {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 2.4rem;
|
|
color: #fff;
|
|
background: none;
|
|
border: 0;
|
|
}
|
|
.player.is-playing .player__big { display: none; }
|
|
.player__bar {
|
|
position: absolute;
|
|
left: 0; right: 0; bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1ch;
|
|
padding: 0.5rem 1ch;
|
|
color: #fff;
|
|
font-size: var(--font-size-small);
|
|
background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
.player:hover .player__bar,
|
|
.player:not(.is-playing) .player__bar { opacity: 1; }
|
|
.player__bar button { font: inherit; color: #fff; background: none; border: 0; padding: 0 0.4ch; line-height: 1; }
|
|
.player__bar button:hover { background: #fff; color: #000; }
|
|
.player__scrub { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.3); position: relative; }
|
|
.player__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
|
|
.player__time { white-space: nowrap; font-variant-numeric: tabular-nums; color: #fff; }
|
|
.player:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; }
|
|
|
|
/* all images always in colour (selection drives what's shown, not hover) */
|
|
img { filter: none; }
|
|
|
|
/* make the [hidden] attribute win over .tui__preview img { display:block } */
|
|
[hidden] { display: none !important; }
|
|
.tui__status {
|
|
font-family: var(--font-family-mono);
|
|
font-size: var(--font-size-small);
|
|
color: var(--color-text-muted);
|
|
margin-top: 0.4rem;
|
|
}
|
|
/* frozen/locked preview indicator */
|
|
.filebrowser.is-frozen .tui__status { color: var(--color-text-primary); }
|
|
.filebrowser.is-frozen .tui__status::after { content: " ● locked"; }
|
|
|
|
/* hide every scrollbar site-wide — content still scrolls (wheel/touch/keys),
|
|
just no native chrome. keeps the clean terminal surface everywhere. */
|
|
* {
|
|
scrollbar-width: none; /* Firefox */
|
|
-ms-overflow-style: none; /* old Edge/IE */
|
|
}
|
|
*::-webkit-scrollbar { /* WebKit/Blink */
|
|
display: none;
|
|
}
|
|
|
|
/* ─────────────────── LANGUAGE SWITCH ─────────────────── */
|
|
/* top-right toggle on the shell row: shows only the *other* language,
|
|
click to switch. you never see both at once. */
|
|
.topbar { position: relative; }
|
|
.lang-switch {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
margin-left: 0;
|
|
font-family: var(--font-family-mono);
|
|
color: var(--color-text-muted);
|
|
border-bottom: 1px dotted;
|
|
z-index: 2;
|
|
}
|
|
.lang-switch:hover { color: var(--color-text-primary); border-bottom: 1px solid; }
|
|
/* keep the prompt text clear of the toggle so long paths never slide under it */
|
|
.prompt { padding-right: 3.5ch; }
|