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}} → <
MW 1.43's sanitizer REJECTS <details>/<summary> in wikitext
Readers see a small dotted-underline "note" chip; the chip text is▼
a tiny MediaWiki:Common.js toggle (adds/removes .ed-fn-open on
in the secondary voice, wrapped in CSS-generated parens. The▼
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▼
pre-template format — readers and RAG see different things from▼
the same markup. ── */▼
.ed-fn { display: inline; }▼
▲ see different things from the same markup. ── */
.ed-fn-chip { cursor: pointer; }▼
▲ 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-pre, .ed-fn-close { display: none; } /* DOM text for the bot only */
.ed-fn-body {
.ed-fn
.ed-fn[open] > .ed-fn-body::after { content: ")"; }▼
color: var(--ed-secondary);
▲}
.ed-fn.ed-fn-open > .ed-fn-body::before { 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); }
/* ── Mobile ── */
| |||