The second half of the superadministrator's job: not just who may do things, but
what they get to do that nobody else does.
**Identidad** is everything that used to be frozen in config.yaml — the name and
the one-line tagline in all three languages, the association's accounts
elsewhere, a public email, a city and street, a share picture and the footer
line. It commits data/site.yaml the way Marca commits data/brand.yaml.
Hugo cannot have config.yaml overridden by a data file, so the name and tagline
are read through two new partials that prefer the data file and fall back to the
config; every template showing either calls one, so they cannot drift. A site
with no data/site.yaml builds byte-for-byte what it built before — asserted by
building both ways and diffing with the stylesheet fingerprint normalised.
The contact fields are not decoration: they become ContactPoint and
PostalAddress in the Organization schema, which is what puts an association in a
local result rather than only a web one, and the social links become sameAs,
which is how an engine knows an Instagram account and this site are one body.
**Marca** grows a typeface and a roundness. Four system stacks — nothing
downloaded, which is deliberate and a GDPR matter — or an uploaded .woff2,
sniffed by its wOF2 signature, capped at 400 KB, named ahead of the old stack so
a font that fails to load leaves a readable site. The fold-out warning covers
missing accented glyphs, file size, synthesised bold, and licensing: a font is
software, a desktop licence is not a webfont licence, and that liability follows
the platform to every organisation it is installed for. SIL OFL and Apache-2.0
are named, with seven places to find them.
**Three tools.** Estado del sistema exercises the content token against the
repository rather than checking it is non-empty — "present" was never the
problem, a wrong scope broke publishing for three phases while looking fine —
and reports mail, backups, disk and every documented setting the container does
not have. It changes nothing on purpose. Registro de actividad records the dozen
acts that change who can do what; the actor is cleared and not cascaded on
erasure, and log() never raises, because an administrator who could not be
appointed because the note about it could not be saved is worse than a gap in
the notes. Biblioteca de medios lists every picture with the posts that use it
and, finally, shows the orphans — a picture whose post was deleted has stayed in
the repository, deployed and unreferenced, for the life of this site with no way
to see one.
Two bugs found by looking at the rendered pages rather than at the tests:
**Gestión had disappeared from the superadministrator's own navigation.**
base.html asked `g.member.role in ('owner', 'admin')`, right until a role
appeared above both. 622 tests passed while it was broken, because every one of
them signed in as an admin or below. The templates now call the same
`is_at_least` the handlers do, and test_navigation.py covers the tier above
admin — verified by reintroducing the tuple and watching it fail.
And the status screen counted the tombstone as a suspended member.
Migration 8 is plain ADD COLUMNs; `activity` and `site` are new tables, so
CREATE TABLE IF NOT EXISTS covers them with no step at all. The erase guard
caught both the moment they existed, which is that test doing its job.
627 tests pass. Hugo builds clean with the pipeline's flags, both with and
without the two data files.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
882 lines
27 KiB
CSS
882 lines
27 KiB
CSS
/* =========================================================
|
|
Members area — stylesheet.
|
|
|
|
The :root block below is copied from
|
|
themes/vienalatina/assets/css/main.css, which already duplicates it for the
|
|
same reason: each stylesheet stands on its own. The two files are served by
|
|
different things — Hugo fingerprints one, Flask serves the other — so
|
|
sharing a file would couple the app's deploy to the site's build for no gain.
|
|
If the brand colours change, change them in both.
|
|
========================================================= */
|
|
|
|
:root {
|
|
color-scheme: light;
|
|
|
|
--brand: #c0391c;
|
|
--brand-dark: #9a2a0f;
|
|
--brand-soft: #fbe2db;
|
|
--brand-softer: #fdf1ed;
|
|
|
|
--bg: #f8f3ef;
|
|
--surface: #ffffff;
|
|
--surface-soft: #f2ebe6;
|
|
--border: #c2a89f;
|
|
--border-light: #e0cec8;
|
|
|
|
--text: #1a0d09;
|
|
--muted: #5c3d37;
|
|
--subtle: #9a7870;
|
|
|
|
--danger: #a11b1b;
|
|
|
|
--shadow: 0 2px 16px rgba(60, 20, 10, 0.09);
|
|
--shadow-sm: 0 1px 6px rgba(60, 20, 10, 0.06);
|
|
--radius-xl: 18px;
|
|
--radius-lg: 12px;
|
|
--radius-md: 8px;
|
|
--radius-sm: 5px;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
"Helvetica Neue", Arial, sans-serif;
|
|
color: var(--text);
|
|
background: var(--bg);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
|
|
a { color: var(--brand-dark); }
|
|
button, input, select, textarea { font: inherit; }
|
|
|
|
/* --- chrome ---------------------------------------------------------- */
|
|
|
|
.site-bar {
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.site-bar__inner {
|
|
max-width: 860px;
|
|
margin: 0 auto;
|
|
padding: 1rem 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
/* A long display name beside a logo has nowhere to go on a phone otherwise,
|
|
and `space-between` pushes the brand off the left edge rather than
|
|
wrapping. */
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.site-bar__brand { text-decoration: none; }
|
|
.site-bar__brand-text { color: var(--brand); font-weight: 700; font-size: 1.25rem; }
|
|
|
|
.site-bar__account { display: flex; align-items: center; gap: 0.75rem; }
|
|
.site-bar__account form { margin: 0; }
|
|
.who { color: var(--muted); font-size: 0.9rem; }
|
|
|
|
.site-bar__pages { border-top: 1px solid var(--border-light); background: var(--surface); }
|
|
.page-nav {
|
|
max-width: 860px;
|
|
margin: 0 auto;
|
|
padding: 0.6rem 16px;
|
|
list-style: none;
|
|
display: flex;
|
|
gap: 0.5rem 1.5rem;
|
|
/* Six sections and their badges do not fit across a phone. Without this the
|
|
row overflowed and took the whole page sideways with it — a members area
|
|
you had to scroll right to read.
|
|
Wrapping rather than a strip you swipe: two lines show all six, and a
|
|
horizontal scroll would have left Calendario and Gestión off the right
|
|
edge with nothing to say they were there. On a laptop it is one line
|
|
either way. */
|
|
flex-wrap: wrap;
|
|
}
|
|
.page-nav a { color: var(--muted); text-decoration: none; }
|
|
.page-nav a:hover { color: var(--brand); }
|
|
|
|
.page-shell { max-width: 860px; margin: 0 auto; padding: 2rem 16px 4rem; }
|
|
|
|
.site-foot {
|
|
margin-top: 3rem;
|
|
padding-top: 1.5rem;
|
|
border-top: 1px solid var(--border-light);
|
|
text-align: center;
|
|
font-size: 0.9rem;
|
|
color: var(--subtle);
|
|
}
|
|
.site-foot a { color: var(--subtle); }
|
|
.site-foot__legal { margin-top: 0.5rem; }
|
|
|
|
/* --- cards ----------------------------------------------------------- */
|
|
|
|
.feed-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.feed-head h1 { margin: 0; }
|
|
/* Two things on the right of a heading — a link and a button — kept on one
|
|
line and aligned to each other rather than to the heading's baseline. */
|
|
.feed-head__actions { display: flex; align-items: center; gap: 1rem; }
|
|
|
|
.card {
|
|
background: var(--surface);
|
|
border-radius: var(--radius-xl);
|
|
box-shadow: var(--shadow-sm);
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
.card--center { text-align: center; }
|
|
.card--comment { background: var(--surface); border-left: 3px solid var(--border-light); }
|
|
|
|
.card__meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.85rem;
|
|
color: var(--subtle);
|
|
}
|
|
.card__title { margin: 0.4rem 0 0.6rem; font-size: 1.35rem; }
|
|
.card__title a { color: var(--text); text-decoration: none; }
|
|
.card__title a:hover { color: var(--brand); }
|
|
.card__excerpt { margin: 0; color: var(--muted); }
|
|
.card__foot { margin: 0.8rem 0 0; font-size: 0.85rem; color: var(--subtle); }
|
|
|
|
.section-head { margin: 2rem 0 1rem; font-size: 1.05rem; color: var(--muted); }
|
|
|
|
.tag {
|
|
background: var(--brand-soft);
|
|
color: var(--brand-dark);
|
|
border-radius: 999px;
|
|
padding: 0.15rem 0.6rem;
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.tag--quiet { background: var(--surface-soft); color: var(--muted); }
|
|
|
|
/* --- prose ----------------------------------------------------------- */
|
|
|
|
.prose { line-height: 1.65; }
|
|
.prose :first-child { margin-top: 0; }
|
|
.prose :last-child { margin-bottom: 0; }
|
|
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
|
|
.prose pre {
|
|
background: var(--surface-soft);
|
|
padding: 0.9rem;
|
|
border-radius: var(--radius-md);
|
|
overflow-x: auto;
|
|
}
|
|
.prose code { background: var(--surface-soft); padding: 0.1rem 0.3rem; border-radius: var(--radius-sm); }
|
|
.prose pre code { background: none; padding: 0; }
|
|
.prose blockquote {
|
|
margin: 1rem 0;
|
|
padding-left: 1rem;
|
|
border-left: 3px solid var(--border-light);
|
|
color: var(--muted);
|
|
}
|
|
|
|
/* --- forms and buttons ------------------------------------------------ */
|
|
|
|
label { display: block; margin: 1rem 0 0.35rem; font-weight: 600; font-size: 0.9rem; }
|
|
label.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }
|
|
label.check input { margin: 0; }
|
|
|
|
/* Everything a person types in, named by what it is NOT.
|
|
*
|
|
* This was a list — text, email, date and inputs with no type at all — and a
|
|
* list of accepted types is wrong the moment somebody adds one. It was: the
|
|
* password box on the sign-in page was a browser default sitting under a
|
|
* full-width username box, because `password` was never added, and so was the
|
|
* number box for a page's order. Nothing errors; the form just looks unfinished
|
|
* in a way only a person looking at it can catch.
|
|
*
|
|
* The controls below are excluded because they are not text boxes and would be
|
|
* disfigured by this: a checkbox, a radio, a file picker (styled separately),
|
|
* and the button-like types. Anything else — password, number, url, search,
|
|
* tel, whatever arrives next — is a field somebody types in and gets the same
|
|
* box without this rule having to be edited again. */
|
|
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="hidden"]),
|
|
select, textarea {
|
|
width: 100%;
|
|
padding: 0.6rem 0.75rem;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
input[type="checkbox"], input[type="radio"] { width: auto; }
|
|
textarea { resize: vertical; line-height: 1.55; }
|
|
|
|
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
background: var(--brand);
|
|
color: #fff;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
padding: 0.6rem 1.4rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
.btn:hover { background: var(--brand-dark); }
|
|
|
|
/* A button sitting straight in a card, rather than in an .actions row, still
|
|
* needs air above it. Five of them did not have any — the one under the "escribir
|
|
* a" picker was flush against the select — because the space every other form
|
|
* has comes from .actions, not from the button.
|
|
*
|
|
* Matching .actions' own margin so the two look the same, and a direct-child
|
|
* selector so a button inside .actions is never given both: it is a child of the
|
|
* row, not of the card. */
|
|
.card > .btn { margin-top: 1.25rem; }
|
|
|
|
.linkish {
|
|
background: none;
|
|
border: 0;
|
|
padding: 0;
|
|
color: var(--brand-dark);
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
}
|
|
.linkish--danger { color: var(--danger); }
|
|
|
|
.actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-top: 1.25rem;
|
|
}
|
|
.actions form { margin: 0; }
|
|
.actions--row { margin-top: 0; gap: 0.75rem; }
|
|
|
|
.pager { display: flex; justify-content: space-between; margin-top: 2rem; }
|
|
|
|
/* --- tables, flashes, odds and ends ----------------------------------- */
|
|
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: var(--surface);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
.table th, .table td {
|
|
text-align: left;
|
|
padding: 0.75rem 1rem;
|
|
border-bottom: 1px solid var(--border-light);
|
|
font-size: 0.92rem;
|
|
vertical-align: top;
|
|
}
|
|
.table th { background: var(--surface-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
|
|
.table tr:last-child td { border-bottom: 0; }
|
|
.row--off { opacity: 0.55; }
|
|
|
|
.flash {
|
|
padding: 0.85rem 1.1rem;
|
|
border-radius: var(--radius-md);
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
.flash--ok { background: var(--brand-softer); color: var(--brand-dark); }
|
|
.flash--error { background: #fdecea; color: var(--danger); }
|
|
|
|
.muted { color: var(--muted); }
|
|
.small { font-size: 0.85rem; }
|
|
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
|
|
|
|
.password {
|
|
font-size: 1.3rem;
|
|
letter-spacing: 0.06em;
|
|
background: var(--surface-soft);
|
|
padding: 1rem;
|
|
border-radius: var(--radius-md);
|
|
user-select: all;
|
|
word-break: break-all;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.feed-head { flex-direction: column; align-items: flex-start; }
|
|
.table { display: block; overflow-x: auto; }
|
|
}
|
|
|
|
/* --- editor ----------------------------------------------------------- */
|
|
|
|
.tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
.tab {
|
|
padding: 0.4rem 1rem;
|
|
border-radius: 999px;
|
|
text-decoration: none;
|
|
color: var(--muted);
|
|
background: var(--surface-soft);
|
|
font-size: 0.9rem;
|
|
}
|
|
.tab--on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
|
|
|
|
.fieldset {
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.85rem 1rem 1rem;
|
|
margin: 1rem 0 0;
|
|
}
|
|
.fieldset legend { padding: 0 0.4rem; font-weight: 600; font-size: 0.9rem; }
|
|
.fieldset .check { margin: 0.35rem 0; }
|
|
|
|
input[type="file"] {
|
|
width: 100%;
|
|
padding: 0.5rem 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Attached pictures. A row that wraps, thumbnails rather than full-bleed:
|
|
a thread with four photos should still read as a conversation. */
|
|
.shots {
|
|
list-style: none;
|
|
margin: 0.75rem 0 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
.shots img {
|
|
display: block;
|
|
max-height: 220px;
|
|
max-width: 100%;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
|
|
/* One picture rather than a gallery: a proposal carries at most a single
|
|
image, and it is shown at reading size while it is being reviewed. */
|
|
.attachment {
|
|
display: block;
|
|
margin: 0.75rem 0;
|
|
max-height: 320px;
|
|
max-width: 100%;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
|
|
/* A name that leads somewhere. Underlined only on hover, because on a busy
|
|
wall every name being a permanent link turns the page into a rash. */
|
|
.who-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--border); }
|
|
.who-link:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }
|
|
|
|
/* --- the corner account menu ----------------------------------------- */
|
|
/*
|
|
* A <details> element, because the Content-Security-Policy has no
|
|
* 'unsafe-inline' and a menu that needs an onclick="" attribute is a menu the
|
|
* browser silently refuses to open. The summary is the whole control; the
|
|
* panel is positioned relative to it.
|
|
*/
|
|
.account { position: relative; }
|
|
.account__name {
|
|
cursor: pointer;
|
|
list-style: none; /* Firefox's default marker */
|
|
color: var(--muted);
|
|
font-size: 0.9rem;
|
|
padding: 0.25rem 0;
|
|
}
|
|
.account__name::-webkit-details-marker { display: none; }
|
|
.account__name::after { content: " ▾"; color: var(--subtle); }
|
|
.account[open] .account__name { color: var(--brand); }
|
|
.account__menu {
|
|
position: absolute;
|
|
right: 0;
|
|
z-index: 20;
|
|
min-width: 13rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.15rem;
|
|
padding: 0.5rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.account__menu a,
|
|
.account__menu button {
|
|
text-align: left;
|
|
padding: 0.4rem 0.5rem;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.92rem;
|
|
text-decoration: none;
|
|
color: var(--text);
|
|
}
|
|
.account__menu a:hover,
|
|
.account__menu button:hover { background: var(--surface-soft); }
|
|
.account__menu form { margin: 0; }
|
|
|
|
/* --- Inicio's panels -------------------------------------------------- */
|
|
|
|
.panel {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-sm);
|
|
padding: 1rem 1.25rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
/* Anything the member is expected to act on, rather than read. */
|
|
.panel--attention { border-color: var(--brand); background: var(--brand-softer); }
|
|
.panel__head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.panel__head h2 { margin: 0; font-size: 1.05rem; }
|
|
.panel__row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 0.5rem;
|
|
margin: 0.35rem 0;
|
|
padding-bottom: 0.35rem;
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
.panel__row:last-child { border-bottom: none; padding-bottom: 0; }
|
|
|
|
/* --- where a proposal has got to -------------------------------------- */
|
|
|
|
.tag--pending { background: var(--surface-soft); color: var(--muted); }
|
|
.tag--approved { background: var(--brand-soft); color: var(--brand-dark); }
|
|
.tag--rejected { background: #f7dcdc; color: var(--danger); }
|
|
|
|
/* A role picker sitting in a table cell beside the other row actions. */
|
|
.inline-form { display: flex; align-items: center; gap: 0.35rem; margin: 0; }
|
|
.inline-form select { padding: 0.2rem 0.35rem; font-size: 0.85rem; }
|
|
|
|
/* Present for a screen reader, absent for everybody else — a <select> in a
|
|
table of actions has no room for a visible label but still needs one. */
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px; height: 1px;
|
|
padding: 0; margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
/* --- 👍 ---------------------------------------------------------------- */
|
|
|
|
.reaction { margin: 0; }
|
|
.reaction__button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
padding: 0.2rem 0.6rem;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 999px;
|
|
background: var(--surface);
|
|
color: var(--muted);
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
line-height: 1.6;
|
|
}
|
|
.reaction__button:hover { border-color: var(--brand); color: var(--brand-dark); }
|
|
/* Mine: filled, so "did I already?" is answered at a glance rather than by
|
|
counting. */
|
|
.reaction__button--mine {
|
|
background: var(--brand-soft);
|
|
border-color: var(--brand);
|
|
color: var(--brand-dark);
|
|
}
|
|
.reaction__count { font-variant-numeric: tabular-nums; }
|
|
|
|
.card__foot { display: flex; align-items: center; gap: 0.75rem; }
|
|
|
|
/* --- the member directory --------------------------------------------- */
|
|
|
|
.people {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: grid;
|
|
/* auto-fill with a minimum, so it is three across on a laptop and one on a
|
|
phone without a media query deciding where the breaks are. */
|
|
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
.person-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-sm);
|
|
/* No padding of its own: the whole card is one link, and the padding lives
|
|
on the anchor so that a click an eighth of an inch from the name still
|
|
opens the page. */
|
|
padding: 0;
|
|
}
|
|
.person-card--off { opacity: 0.55; }
|
|
.person-card__link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 1rem;
|
|
border-radius: var(--radius-lg);
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
.person-card__link:hover,
|
|
.person-card__link:focus-visible {
|
|
background: var(--brand-softer);
|
|
}
|
|
.person-card__link:hover .person-card__name { color: var(--brand-dark); }
|
|
.person-card__head { display: flex; align-items: center; gap: 0.75rem; }
|
|
.person-card__photo {
|
|
width: 56px;
|
|
height: 56px;
|
|
flex: 0 0 56px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
.person-card__photo--none {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--brand-soft);
|
|
color: var(--brand-dark);
|
|
font-size: 1.4rem;
|
|
font-weight: 700;
|
|
}
|
|
/* min-width so a long name wraps instead of pushing the card wider; the spans
|
|
are blocks because the name and the line under it are two lines, and a card
|
|
this small does not need a heading element to say so. */
|
|
.person-card__who { display: block; min-width: 0; }
|
|
.person-card__who > span { display: block; }
|
|
.person-card__name { margin: 0; font-size: 1.05rem; font-weight: 600; }
|
|
.person-card__name .muted { font-weight: 400; }
|
|
|
|
/* --- one person's page ------------------------------------------------- */
|
|
|
|
.person-head { display: flex; align-items: flex-start; gap: 1rem; }
|
|
.person-head__photo {
|
|
width: 88px;
|
|
height: 88px;
|
|
flex: 0 0 88px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
.person-head__photo--none {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--brand-soft);
|
|
color: var(--brand-dark);
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
}
|
|
.person-head__who { min-width: 0; }
|
|
.person-head__who > :first-child { margin-top: 0; }
|
|
.person-head__links { margin: 0.5rem 0 0; padding-left: 1.1rem; }
|
|
.person-head__foot { margin: 0.75rem 0 0; }
|
|
.section-title { margin: 1.5rem 0 0.25rem; font-size: 1.1rem; }
|
|
.person-block { margin-top: 1.25rem; }
|
|
.person-block summary { cursor: pointer; color: var(--subtle); font-size: 0.85rem; }
|
|
.person-block p { margin: 0.5rem 0; }
|
|
|
|
.person-card__admin { margin-top: 1.25rem; border-top: 1px solid var(--border-light); padding-top: 0.5rem; }
|
|
.person-card__admin summary {
|
|
cursor: pointer;
|
|
color: var(--subtle);
|
|
font-size: 0.85rem;
|
|
}
|
|
/* The one place the old table went wrong: four forms in a column two inches
|
|
wide. Here they are one per line, with room for the words. */
|
|
.person-card__actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
.person-card__actions form { margin: 0; }
|
|
.person-card__actions p { margin: 0; }
|
|
|
|
/* --- the writing boxes ------------------------------------------------- */
|
|
|
|
.md-bar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.25rem;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
.md-bar__button {
|
|
min-width: 2rem;
|
|
padding: 0.25rem 0.5rem;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface);
|
|
color: var(--muted);
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
line-height: 1.4;
|
|
}
|
|
.md-bar__button:hover { border-color: var(--brand); color: var(--brand-dark); }
|
|
.md-bar__button--wide { margin-left: auto; }
|
|
|
|
.md-preview {
|
|
margin: 0.5rem 0 1rem;
|
|
padding: 0.85rem 1rem;
|
|
border: 1px dashed var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface-soft);
|
|
line-height: 1.6;
|
|
}
|
|
.md-preview :first-child { margin-top: 0; }
|
|
.md-preview :last-child { margin-bottom: 0; }
|
|
.md-preview img { max-width: 100%; border-radius: var(--radius-sm); }
|
|
|
|
/* What you just chose, before it is uploaded. */
|
|
.file-strip {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.6rem;
|
|
margin: 0.5rem 0 0;
|
|
}
|
|
.file-strip__item { margin: 0; width: 120px; }
|
|
.file-strip__item img {
|
|
display: block;
|
|
width: 120px;
|
|
height: 90px;
|
|
object-fit: cover;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
.file-strip__item figcaption {
|
|
margin-top: 0.2rem;
|
|
font-size: 0.72rem;
|
|
color: var(--subtle);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
/* --- the private calendar ---------------------------------------------- */
|
|
|
|
.cal-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
.cal-bar__today { text-align: center; margin: 0 0 1rem; }
|
|
|
|
.cal {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
table-layout: fixed;
|
|
}
|
|
.cal th {
|
|
padding: 0.4rem;
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--muted);
|
|
text-align: left;
|
|
}
|
|
.cal__day, .cal__pad {
|
|
vertical-align: top;
|
|
height: 92px;
|
|
padding: 0.35rem;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface);
|
|
font-size: 0.8rem;
|
|
}
|
|
.cal__pad { background: transparent; border-color: transparent; }
|
|
.cal__day--today { border-color: var(--brand); background: var(--brand-softer); }
|
|
.cal__number { color: var(--subtle); font-weight: 700; }
|
|
|
|
.cal__event {
|
|
display: block;
|
|
margin-top: 0.25rem;
|
|
color: var(--brand-dark);
|
|
text-decoration: none;
|
|
line-height: 1.3;
|
|
}
|
|
.cal__event:hover { text-decoration: underline; }
|
|
.cal__event time { font-weight: 700; }
|
|
/* A public event is the association speaking to everybody; an internal one is
|
|
not. The distinction has to survive a glance. */
|
|
.cal__event--public { color: var(--muted); }
|
|
|
|
.cal__add {
|
|
display: none;
|
|
float: right;
|
|
color: var(--subtle);
|
|
text-decoration: none;
|
|
font-weight: 700;
|
|
}
|
|
.cal__day:hover .cal__add { display: inline; }
|
|
.cal__add:hover { color: var(--brand); }
|
|
|
|
.event-facts p { margin: 0 0 0.25rem; }
|
|
|
|
/* Seven columns of nothing is what a month grid is on a phone. */
|
|
@media (max-width: 640px) {
|
|
.cal, .cal tbody, .cal tr, .cal td { display: block; width: auto; }
|
|
.cal thead { display: none; }
|
|
.cal__pad { display: none; }
|
|
.cal__day { height: auto; margin-bottom: 0.4rem; }
|
|
.cal__day:not(:has(.cal__event)) { display: none; }
|
|
.cal__number { display: inline-block; margin-right: 0.5rem; }
|
|
.cal__add { display: inline; }
|
|
}
|
|
|
|
/* --- Gestión → Marca ---------------------------------------------------- */
|
|
|
|
/* Constrained in height rather than width: a wordmark is wide and a square
|
|
icon is not, and both have to sit in a bar 56px tall without pushing it
|
|
open. An admin who wants it bigger has the custom CSS box, and the
|
|
placeholder in that box is this very rule. */
|
|
.site-bar__logo { display: block; max-height: 36px; max-width: 240px; width: auto; }
|
|
|
|
.swatches {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
|
|
gap: 1rem;
|
|
margin: 0.75rem 0 1.25rem;
|
|
}
|
|
.swatch label { margin-bottom: 0.25rem; }
|
|
.swatch p { margin: 0.25rem 0 0; }
|
|
/* The input rule above gives every field width:100%, which on a colour picker
|
|
produces a swatch the width of the column. */
|
|
.swatch input[type="color"] {
|
|
width: 100%;
|
|
height: 2.75rem;
|
|
padding: 0.2rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* The preview block. Every colour inside it comes from a custom property, so
|
|
board.js can restyle the whole thing by setting six of them on this one
|
|
element — which is also what makes it an honest preview rather than a
|
|
drawing of one. */
|
|
.brand-preview {
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
.brand-preview__bar {
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
color: var(--brand);
|
|
font-weight: 700;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
.brand-preview__card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text);
|
|
margin: 1rem;
|
|
padding: 1rem;
|
|
}
|
|
.brand-preview__meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.5rem; }
|
|
.brand-preview__card p:last-of-type { margin: 0 0 0.75rem; }
|
|
.brand-preview__btn {
|
|
display: inline-block;
|
|
background: var(--brand);
|
|
border-radius: 999px;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
padding: 0.4rem 1rem;
|
|
}
|
|
|
|
.brand-current { max-height: 72px; max-width: 100%; width: auto; }
|
|
.brand-current--small { max-height: 48px; }
|
|
|
|
.brand-advanced { margin-top: 1.5rem; border-top: 1px solid var(--border-light); padding-top: 0.75rem; }
|
|
.brand-advanced summary { cursor: pointer; color: var(--subtle); }
|
|
|
|
.btn--danger { background: var(--danger); }
|
|
.btn--danger:hover { background: var(--danger); filter: brightness(0.9); }
|
|
|
|
/* --- the typeface picker ------------------------------------------------ */
|
|
|
|
/* Each option shown in the face it offers. Classes rather than a style
|
|
attribute on the label, because the Content-Security-Policy has no
|
|
'unsafe-inline' and style-src falls under default-src: an inline style here
|
|
is dropped and all four options render identically, which is a picker that
|
|
tells you nothing. The stacks are the ones in brand.TYPEFACES. */
|
|
.face { font-size: 1.05rem; }
|
|
.face--sans { font-family: "Montserrat", -apple-system, BlinkMacSystemFont,
|
|
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
|
|
.face--serif { font-family: Georgia, Cambria, "Times New Roman", Times, serif; }
|
|
.face--redonda { font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif; }
|
|
.face--sistema { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
|
|
|
|
/* The font warning. One line closed, which is the point: it is four paragraphs
|
|
nobody needs until the moment they are uploading a typeface. */
|
|
.brand-warning {
|
|
margin: 0.75rem 0 1.5rem;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-md);
|
|
padding: 0.6rem 0.9rem;
|
|
background: var(--surface-soft);
|
|
}
|
|
.brand-warning summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; }
|
|
.brand-warning p { font-size: 0.9rem; color: var(--muted); margin: 0.75rem 0 0; }
|
|
.brand-warning p:last-child { margin-bottom: 0.25rem; }
|
|
|
|
/* --- the media library -------------------------------------------------- */
|
|
|
|
.media-grid {
|
|
list-style: none;
|
|
margin: 1rem 0 0;
|
|
padding: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
.media-item {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-lg);
|
|
padding: 0.75rem;
|
|
}
|
|
/* Orphans are the only rows anybody has to act on, so they say so twice: first
|
|
in the order (they sort to the top) and then in the colour. */
|
|
.media-item--orphan { border-color: var(--brand); background: var(--brand-softer); }
|
|
.media-item img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 120px;
|
|
object-fit: cover;
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface-soft);
|
|
}
|
|
.media-item p { margin: 0.4rem 0 0; word-break: break-all; }
|
|
.media-item form { margin-top: 0.5rem; }
|
|
|
|
/* --- the status screen -------------------------------------------------- */
|
|
|
|
.tag--ok { background: #e4f2e4; color: #1b5e20; }
|
|
.tag--warn { background: var(--brand-soft); color: var(--brand-dark); }
|
|
.tag--bad { background: #f6dcdc; color: var(--danger); }
|