Add the photo picker, poster builder and licences pages
A pick is a repository edit, so the picker shows the Commons candidates cropped to the poster's frame, natural or bw as the service treats them, beside the picks of the circuit's other layouts, and gives the entry to copy (the picks file's "$comment" kept first). The builder sends every option of docs/posters.md as a query parameter, renders only on request and shows the answer's X-Credits and X-License. The licences page shows /licences: each source, its credit and the licence a picture made from it gets. Every page now carries the Formula 1 disclaimer at its foot, as F1's guidelines ask of an unofficial site, and the posters page lists the backgrounds the design keeps (no Esri). Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
This commit is contained in:
@@ -44,6 +44,9 @@
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
/* An element hidden by the page stays hidden, whatever display its class gives it. */
|
||||
[hidden] { display: none !important; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
@@ -353,3 +356,80 @@ a.tile-link:hover .tile-frame { outline: 3px solid var(--accent); }
|
||||
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 4s; } }
|
||||
.waiting { display: flex; gap: 1rem; align-items: center; }
|
||||
.waiting p { margin: 0.2rem 0; }
|
||||
|
||||
/* ---- the Formula 1 disclaimer, at the foot of every page ---- */
|
||||
|
||||
footer.disclaimer {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 1.5rem 2.5rem;
|
||||
font-size: 0.78rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
footer.disclaimer p { margin: 0.3rem 0; max-width: 60rem; }
|
||||
|
||||
/* ---- segmented toggles (picker, builder) ---- */
|
||||
|
||||
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
|
||||
.seg button { border: none; border-radius: 0; border-right: 1px solid var(--line); }
|
||||
.seg button:last-child { border-right: none; }
|
||||
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
|
||||
|
||||
/* ---- photo picker ---- */
|
||||
|
||||
.photos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
|
||||
.photos.thumb { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
|
||||
.photo-card {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
padding: 0.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.35rem;
|
||||
min-width: 0;
|
||||
background: var(--card);
|
||||
}
|
||||
.photo-card.chosen { outline: 3px solid var(--accent); }
|
||||
.photo-card.picked { border-color: var(--ok); border-width: 2px; }
|
||||
.photo-frame { background: #000; border-radius: 6px; overflow: hidden; aspect-ratio: 2 / 3; }
|
||||
.photos.thumb .photo-frame { aspect-ratio: 16 / 9; }
|
||||
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
|
||||
.treat-bw .photo-frame img { filter: url(#bw); }
|
||||
.photo-card .name { font-weight: 650; font-size: 0.85rem; line-height: 1.3; overflow-wrap: anywhere; }
|
||||
.photo-card .meta { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
|
||||
.photo-card .meta b { color: var(--text); font-weight: 600; }
|
||||
.photo-card .tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }
|
||||
.tag { font-size: 0.7rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.45rem; color: var(--muted); }
|
||||
.tag.mark { border-color: var(--ok); color: var(--ok); }
|
||||
.tag.warn { border-color: var(--warn); color: var(--warn); }
|
||||
.photo-card .actions { display: flex; gap: 0.5rem; align-items: center; margin-top: auto; font-size: 0.8rem; }
|
||||
.photo-card .actions button { font-size: 0.8rem; padding: 0.2rem 0.6rem; }
|
||||
.photos.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
|
||||
|
||||
.copy-block { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.6rem 0; }
|
||||
.copy-block .head { display: flex; gap: 0.5rem; align-items: center; justify-content: space-between; }
|
||||
.copy-block .head span { font-size: 0.85rem; color: var(--muted); }
|
||||
|
||||
/* ---- poster builder ---- */
|
||||
|
||||
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem 1.25rem; }
|
||||
.option { border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; }
|
||||
.option .opt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
|
||||
.option .opt-head code { font-weight: 700; }
|
||||
.option .opt-head small { color: var(--muted); font-size: 0.75rem; text-align: right; }
|
||||
.option .opt-body { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center; font-size: 0.88rem; }
|
||||
.option .opt-body label { display: inline-flex; align-items: center; gap: 0.3rem; }
|
||||
.option.set { border-color: var(--accent); }
|
||||
.option select { max-width: 100%; min-width: 0; }
|
||||
.option .opt-body > select { flex: 1; }
|
||||
.option input[type="color"] { padding: 0.1rem; width: 3rem; height: 2rem; }
|
||||
.option input[type="range"] { flex: 1; min-width: 8rem; }
|
||||
.credits { margin-top: 0.75rem; }
|
||||
.credits table th { width: 9rem; }
|
||||
.credits td code { white-space: normal; overflow-wrap: anywhere; }
|
||||
details.result-raw { margin-top: 0.75rem; }
|
||||
details.result-raw summary { cursor: pointer; color: var(--muted); font-size: 0.88rem; margin-bottom: 0.5rem; }
|
||||
table.sources td code { white-space: normal; overflow-wrap: anywhere; }
|
||||
table.sources th:nth-child(3), table.sources td:nth-child(3) { min-width: 9rem; }
|
||||
table.sources th:nth-child(4), table.sources td:nth-child(4) { width: 34%; }
|
||||
.card > div + p.hint { margin-top: 0.75rem; }
|
||||
|
||||
Reference in New Issue
Block a user