MediaWiki:Gadget-figureSource.js: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 310:
parts.push('chunk ' + entry.loc.chunk);
}
// one line, middle-dot separated ("Solvency II ratio (%) · FY24 · …")
: '';
}
Line 463 ⟶ 464:
'.fig-src:hover{text-decoration:underline;' +
'text-decoration-color:' + coral + ';text-underline-offset:3px}' +
// full-bleed crop: the popover's own ink border frames the image
// (no inner padding/margins); only the text block below is inset.
// All popover text follows the house small size, footer in page ink.
// color pinned to the house ink: the popover attaches to body,
// OUTSIDE the content area, so "inherit" would pick up the skin's
// #202122 body color instead of --text-dark
'.fig-popover{position:absolute;z-index:200;width:420px;' +
'background:#fff;border:1px solid #0d0d0d;padding:
'color:var(--text-dark,#0d0d0d);' +
'box-shadow:0 2px 10px rgba(0,0,0,.15)}' +
// border:0/margin:0 and color:inherit are DECLARED, not omitted — an
'.fig-popover .fig-crop canvas{max-width:100%;display:block;' +▼
// omitted property lets a stale stacked stylesheet's rule survive
'border:1px solid #ddd;margin-bottom:8px}' +▼
'.fig-popover .fig-
'.fig-popover .fig-crop{border-bottom:1px solid #ddd}' +
'.fig-popover .fig-tags{font-size:var(--ed-small,14px);' +
'line-height:1.45;padding:8px 10px 0}' +
'.fig-popover .fig-foot{display:flex;justify-content:space-between;' +
'
'margin-top:0;color:inherit}' +
// one explicit size for every bar item — name, page label, buttons —
// so nothing inherits a divergent size from the surrounding skin
| |||