MediaWiki:Common.css: Difference between revisions

From Encyclopedium Universum
No edit summary
No edit summary
 
(5 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) */
span,
#mw-content-text .mw-parser-output,
body,
#mw-content-text .mw-parser-output *:not(.ashuri):not(.ashuri *) {
#content,
   font-family: "yisraeleet400" !important; /* no fallback stack */
div,
table,
td,
th,
p,
li,
ol,
ul,
h1, h2, h3, h4, h5, h6 {
   font-family: "yisraeleet400" !important;
}
}


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