MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,896:
.ext-aiassistant-cite a { color: var(--ed-link) !important; }
 
/* ── Collapsible inline footnotes ({{footnote}} → <detailsspan class="ed-fn">).
MW 1.43's sanitizer REJECTS <details>/<summary> in wikitext
Readers see a small dotted-underline "note" chip; the chip text is
CSS(verified content,live: NOTtags inrender theas DOMliteral text.), Clickingso expandsthis theis notespans inline+
a tiny MediaWiki:Common.js toggle (adds/removes .ed-fn-open on
in the secondary voice, wrapped in CSS-generated parens. The
chip click). Readers see a small dotted-underline "note" chip; the chip text is
literal "(footnote: " / ")" wrappers stay in the DOM inside
the chip text is CSS content, NOT in the DOM text. Clicking
always-hidden spans, so the bot's HTML retrieval reads exactly the
expands the note inline in the secondary voice, wrapped in CSS-generated parens. The
pre-template format — readers and RAG see different things from
CSS-generated parens. The literal "(footnote: " / ")" wrappers stay in the DOM inside
the same markup. ── */
stay in the DOM inside always-hidden spans, so the bot's HTML retrieval reads exactly the
.ed-fn { display: inline; }
retrieval reads exactly the pre-template format — readers and RAG see different things from
.ed-fn::details-content { display: inline; }
see different things from the same markup. ── */
.ed-fn > summary.ed-fn-chip {
.ed-fn-chip { cursor: pointer; }
display: inline;
.ed-fn > summary.ed-fn-chip::after {
list-style: none; /* no disclosure triangle */
cursor: pointer;
.ed-fn > summary.ed-fn-chip::-webkit-details-marker { display: none; }
.ed-fn > summary.ed-fn-chip::after {
content: "note";
font-family: var(--ed-sans);
Line 1,921 ⟶ 1,917:
text-underline-offset: 2px;
}
.ed-fn[.ed-fn-open] > summary.ed-fn-chip::after { color: var(--ed-link); }
.ed-fn-pre, .ed-fn-close { display: none; } /* DOM text for the bot only */
.ed-fn-body { colordisplay: var(--ed-secondary)none; } /* collapsed by default */
.ed-fn[.ed-fn-open] > .ed-fn-body::before { content: " ("; }
.ed-fn { display: inline; }
.ed-fn[open] > .ed-fn-body::after { content: ")"; }
color: var(--ed-secondary);
.ed-fn.ed-fn-open > .ed-fn-body::before { content: " ("; }
.ed-fn[.ed-fn-open] > .ed-fn-body::after { content: ")"; }
/* no-JS safety net: if site JS ever fails to load, notes stay readable */
.client-nojs .ed-fn-body { display: inline; color: var(--ed-secondary); }
.edclient-fnnojs > summary.ed-fn-chip::-webkit-details-marker { display: none; }
 
/* ── Mobile ── */