MediaWiki:Common.css: Difference between revisions

From Encyclopedium Universum
Created page with "→‎CSS placed here will be applied to all skins: @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: normal; font-style: norm..."
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
@font-face {
@font-face {
   font-family: "yisraeleet400";
   font-family: "yisraeleet400";
Line 10: Line 7:
       url("/fonts/yisraeleet.ttf") format("truetype"),
       url("/fonts/yisraeleet.ttf") format("truetype"),
       url("/fonts/yisraeleet.svg#yisraeleeth") format("svg");
       url("/fonts/yisraeleet.svg#yisraeleeth") format("svg");
   font-weight: normal;
   font-weight: 400; /* IMPORTANT: match the real font weight */
   font-style: normal;
   font-style: normal;
  font-display: block; /* no fallback swap */
}
}


/* Apply yisraeleet400 as the sole font site-wide */
/* Apply YOUR script to content only (not the whole MediaWiki UI) */
body,
#mw-content-text .mw-parser-output,
#mw-content-text,
#mw-content-text .mw-parser-output *:not(.ashuri):not(.ashuri *) {
.mw-body-content,
   font-family: "yisraeleet400" !important; /* no fallback stack */
h1, h2, h3, h4, h5, h6,
#mw-panel,
.vector-body,
.vector-body p,
.vector-body li {
   font-family: "yisraeleet400" !important;
}
}


/* Ashuri comparison font */
/* 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 {
/* Ashuri comparison font: ONLY where you explicitly add class="ashuri" */
   font-family: 'Frank Ruhl Libre' !important;
#mw-content-text .mw-parser-output .ashuri,
   font-weight: 400;
#mw-content-text .mw-parser-output .ashuri * {
   font-family: "David Libre" !important; /* Ashuri-only override */
   font-size: 110%;
  letter-spacing: 0.05em;
}
}

Latest revision as of 00:41, 7 February 2026

@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;
}