MediaWiki:Common.css

From Encyclopedium Universum
Revision as of 00:41, 7 February 2026 by Yehudhah (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
@font-face {
  font-family: "yisraeleet400";
  src: url("/fonts/yisraeleet.eot");
  src: url("/fonts/yisraeleet.eot?#iefix") format("embedded-opentype"),
       url("/fonts/yisraeleet.woff2") format("woff2"),
       url("/fonts/yisraeleet.woff") format("woff"),
       url("/fonts/yisraeleet.ttf") format("truetype"),
       url("/fonts/yisraeleet.svg#yisraeleeth") format("svg");
  font-weight: 400; /* IMPORTANT: match the real font weight */
  font-style: normal;
  font-display: block; /* no fallback swap */
}

/* Apply YOUR script to content only (not the whole MediaWiki UI) */
#mw-content-text .mw-parser-output,
#mw-content-text .mw-parser-output *:not(.ashuri):not(.ashuri *) {
  font-family: "yisraeleet400" !important; /* no fallback stack */
}

/* Size controls (content only) */
#mw-content-text .mw-parser-output p,
#mw-content-text .mw-parser-output td,
#mw-content-text .mw-parser-output th {
  font-size: 20px !important;
}

/* Ashuri comparison font: ONLY where you explicitly add class="ashuri" */
#mw-content-text .mw-parser-output .ashuri,
#mw-content-text .mw-parser-output .ashuri * {
  font-family: "David Libre" !important; /* Ashuri-only override */
  font-size: 110%;
  letter-spacing: 0.05em;
}