MediaWiki:Common.css: Difference between revisions
From Encyclopedium Universum
No edit summary |
No edit summary |
||
| Line 7: | 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: | font-weight: 400; /* IMPORTANT: match the real font weight */ | ||
font-style: normal; | font-style: normal; | ||
font-display: block; /* no fallback swap */ | |||
} | } | ||
/* Apply | /* 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 *) { | |||
#content | font-family: "yisraeleet400" !important; /* no fallback stack */ | ||
font-family: "yisraeleet400" !important; | |||
} | } | ||
/* | /* Size controls (content only) */ | ||
td, | #mw-content-text .mw-parser-output p, | ||
th | #mw-content-text .mw-parser-output td, | ||
#mw-content-text .mw-parser-output th { | |||
font-size: 20px !important; | font-size: 20px !important; | ||
} | } | ||
/* Ashuri comparison font: ONLY where you explicitly add class="ashuri" */ | |||
.ashuri { | #mw-content-text .mw-parser-output .ashuri, | ||
font-family: | #mw-content-text .mw-parser-output .ashuri * { | ||
font-family: "David Libre" !important; /* Ashuri-only override */ | |||
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;
}