Difference between revisions of "Template:Math/styles.css"

From blackwiki
Jump to navigation Jump to search
imported>Izno
(add -big)
imported>Izno
(implement mvar here too)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* {{pp|small=yes}} */
+
/* {{pp|small=yes}}
 +
* See [[Template:Math#Notes]] for why this is named .texhtml
 +
*/
 
.texhtml {
 
.texhtml {
 
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
 
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
Line 28: Line 30:
 
.texhtml-big {
 
.texhtml-big {
 
font-size: 165%;
 
font-size: 165%;
 +
}
 +
 +
.mvar {
 +
font-style: italic;
 
}
 
}

Latest revision as of 22:21, 16 February 2021

/* {{pp|small=yes}}
 * See [[Template:Math#Notes]] for why this is named .texhtml
 */
.texhtml {
	font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
	font-size: 118%;
	line-height: 1;
	white-space: nowrap;
	/*
	TemplateStyles does not support vendor-specific parameters.
	However, prior research shows WMF serves only about 1-2% of its traffic
	to browsers needing vendor-specific font-feature-settings.
	*/
	/*
	-moz-font-feature-settings: "lnum", "tnum", "kern" 0;
	-webkit-font-feature-settings: "lnum", "tnum", "kern" 0;
	*/
	
	/* font-feature-settings, font-variant-numeric, font-kerning actually
	 * supported. CodeEditor just doesn't like them */
	font-feature-settings: "lnum", "tnum", "kern" 0;
	font-variant-numeric: lining-nums tabular-nums;
	font-kerning: none;
}

.texhtml .texhtml {
	font-size: 100%;
}

.texhtml-big {
	font-size: 165%;
}

.mvar {
	font-style: italic;
}