MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,259:
--ed-paper: #fbfaf7; /* page canvas (set #fff to disable the tint) */
--ed-infobox-w: 18.5rem; /* infobox total width (border-box) */
--ed-measure: calc((100% - var(--ed-infobox-w)) * 0.9); /* prose endsstops ON~10% the infoboxshort border */of
the infobox — tighter readable line + a gutter before the card */
--ed-body: 1rem; /* body size (16px — the "90% zoom" preference) */
--ed-small: 0.8125rem; /* THE small size: tables, infobox, TOC, footer */
Line 1,905 ⟶ 1,906:
.ed-fn-body { display: none; }
 
/* Touch devices have no hover → synthesise the tooltipnote from attr(title) on
on tap/focus (the termcue span carries tabindex=0). Desktop uses the native title
native title tooltip instead, so this block is touch-only. */The old tooltip-above-the-cue
was usually clipped on a phone, so on touch the note shows as a FULL-WIDTH
dark banner pinned to the top of the viewport, white text. NO JS: the banner
is pointer-events:none, so a tap ANYWHERE — even over the banner — falls
through to the page, blurs the focused cue, and dismisses it. */
@media (hover: none) and (pointer: coarse) {
.ed-fn { position: relative; }
.ed-fn[title]::after {
content: attr(title);
position: absolutefixed;
lefttop: 50%0;
bottomleft: calc(100% + 8px)0;
transformright: translateX(-50%)0;
width: 100%;
z-index: 1100;
widthbox-sizing: maxborder-contentbox;
padding: calc(0.9em + env(safe-area-inset-top)) 1.2em 0.9em;
max-width: min(20rem, 80vw);
background: rgba(20, 18, 16, 0.92); /* near-black, slightly transparent */
padding: 0.5em 0.7em;
backgroundcolor: #fff;
colorfont-family: var(--ed-inksans);
font-size: 0.85rem95rem;
border: 1px solid var(--ed-hairline-strong);
line-height: 1.45;
border-left: 3px solid var(--ed-accent);
border-radius: 4px;
box-shadow: 0 4px 16px rgba(43, 41, 38, 0.18);
font-family: var(--ed-serif);
font-size: 0.85rem;
line-height: 1.4;
white-space: normal;
text-align: left;
white-space: normal;
pointer-events: none; /* tap anywhere dismisses (blurs the cue) */
opacity: 0;
visibility: hidden;