**A signed-in member sees the members area from anywhere.** A slim bar above the
public header, with the same five sections /comunidad/ has. Those pages are
files on disk and get cached, so it is drawn in the browser: memberbar.js asks
/comunidad/sesion.json who is reading, and that endpoint is the only thing that
decides — a visitor is told `{"signed_in": false}` and the answer is never
cached. Sign-in also sets vl_sesion=1, a cookie holding one digit that scripts
can read, and without it the script makes no request at all: a stranger reading
one article costs the app nothing. It is a hint, never a credential — the
session cookie stays HttpOnly and signed, and a forged hint earns a reply saying
you are not signed in. Comunidad is now in the public menu in all three
languages, signed in or not.
**The public menu is built from the pages.** It was three names per language in
config.yaml, so a page published through Contenido never appeared on the site at
all and the German and Portuguese menus had to be kept in step by hand. Pages
carry `parent` (another page's basename — the one translate.py already uses to
pair siblings, so it holds in all three languages) and `weight`, both chosen in
the editor, and header.html builds two levels from them. URLs do not change: a
subpage is still /page/<slug>/, only the menu nests, so nothing in the Caddyfile
or the pipeline learns about folders. The dropdown is the theme's own, ported
from WordPress — hover, focus-within, inline on a phone, no script. A parent that
has been deleted is kept and labelled rather than silently dropped on the next
save.
**Sharing and the rest of SEO/GEO.** The groundwork was already here — hreflang,
Open Graph, Twitter card, BlogPosting, llms.txt, robots.txt naming the AI
crawlers — so this closes the gaps. Static pages had *none* of it and shared as
bare links; they now carry WebPage schema and the full set of tags. Both branches
gain og:image with an alt and a twitter:image, falling back to params.defaultImage
(empty until there is a logo, which is the one line to fill in then). The home
page gains Organization with areaServed Wien and a sameAs list; posts and pages
gain BreadcrumbList, and an article's structured data now carries the author's
profile URL. An optional FAQ — `pregunta|respuesta` per line — renders at the
foot of the page and as FAQPage schema, because current guidance for generative
engines puts exactly that shape at the top of what gets quoted, and schema
describing something invisible is what search engines penalise. translate.py
carries both new fields: image_alt joins the translated keys, and faq is
translated half by half so the separator survives.
**The writing boxes.** A markdown toolbar and a Vista previa on every box where
somebody writes prose, opted in with data-markdown. The preview POSTs to
/comunidad/previsualizar and renders with render.to_html — the same function the
board and the site use, so it cannot promise something publishing will not
deliver; a markdown parser in the browser would be a second opinion about what
somebody's text means. Choosing a picture now shows a thumbnail with its name and
size before anything is uploaded, which is the only reason `blob:` joins img-src:
a handle to bytes already in the page, reaching no network.
All of it ours, no dependency added, under a policy that loads scripts from this
origin only. Verified by building the site with Hugo 0.135, the version the
pipeline runs: the nested menu, the page's share tags, the FAQ schema matching
the rendered section, and llms.txt listing the pages.
463 tests pass.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
600 lines
16 KiB
CSS
600 lines
16 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;
|
|
}
|
|
|
|
.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: 1.5rem;
|
|
}
|
|
.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; }
|
|
|
|
input[type="text"], input[type="email"], input[type="date"],
|
|
input:not([type]), 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"] { 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); }
|
|
|
|
.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);
|
|
padding: 1rem;
|
|
}
|
|
.person-card--off { opacity: 0.55; }
|
|
.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;
|
|
}
|
|
.person-card__who { min-width: 0; } /* so a long name wraps instead of pushing */
|
|
.person-card__name { margin: 0; font-size: 1.05rem; }
|
|
.person-card__name .muted { font-weight: 400; }
|
|
.person-card__who p { margin: 0.15rem 0 0; }
|
|
.person-card__bio {
|
|
margin: 0.75rem 0 0;
|
|
color: var(--muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
.person-card__foot {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
.person-card__admin { margin-top: 0.75rem; 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;
|
|
}
|