internal/web/assets/theme.css
47 lines · 2869 bytes
1:root {
2 --bg: #0a0a0a;
3 --fg: #dddddd;
4 --muted: #777777;
5 --accent: #ffffff;
6 --gap: 4px;
7 --row-height: 320px;
8 --font: "Helvetica Neue", Arial, sans-serif;
9 --tracking: 0.25em;
10}
11html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; }
12html, body { margin: 0; background: var(--bg); color: var(--fg); font: 13px/1.5 var(--font); }
13a { color: inherit; text-decoration: none; }
14
15nav.site { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px 20px; font-size: 10px; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--muted); }
16nav.site .brand { color: var(--accent); font-weight: 600; margin-right: auto; }
17nav.site a:hover, nav.site a.on { color: var(--accent); }
18
19.title { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px 12px; font-size: 10px; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--muted); }
20.title h1, .title h2 { margin: 0; font: inherit; color: var(--fg); }
21.desc { padding: 0 20px 16px; max-width: 60ch; color: var(--muted); }
22
23.rows { display: flex; flex-wrap: wrap; gap: var(--gap); padding: 0 var(--gap) var(--gap); }
24.tile { display: block; position: relative; height: var(--row-height); width: calc(var(--row-height) * var(--ar)); max-width: 100%; }
25.tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
26.captioned { row-gap: 36px; padding-top: 4px; padding-bottom: 40px; }
27.captioned .label { position: absolute; top: 100%; left: 0; padding-top: 8px; font-size: 10px; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--muted); white-space: nowrap; }
28
29body.photo { display: flex; flex-direction: column; min-height: 100vh; }
30body.photo main { flex: 1; display: flex; flex-direction: column; }
31.stage { flex: 1; margin: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 48px; }
32.stage img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; }
33.stage .prev, .stage .next { position: absolute; top: 0; bottom: 0; width: 48px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--muted); }
34.stage .prev { left: 0; }
35.stage .next { right: 0; }
36.stage .prev:hover, .stage .next:hover { color: var(--accent); }
37.meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 20px 20px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
38.meta span:first-child { color: var(--fg); }
39
40.info { padding: 0 20px 40px; max-width: 60ch; }
41.error { padding: 40px 20px; font-size: 10px; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--muted); }
42
43@media (max-width: 600px) {
44 :root { --row-height: 200px; }
45 .stage { padding: 0; }
46 .stage .prev, .stage .next { display: none; }
47}