Module:Chem2/styles.css: Difference between revisions
From Vigyanwiki
m (1 revision imported) |
(Left-align stacked superscripts and subscripts. Otherwise they can be centred if they appear in centred content.) |
||
Line 8: | Line 8: | ||
.template-chem2-su > span { | .template-chem2-su > span { | ||
display: block; | display: block; | ||
text-align: left; | |||
} | } | ||
Revision as of 03:01, 26 November 2022
.template-chem2-su { /* {{pp-template}} */
display: inline-block;
font-size: 80%;
line-height: 1;
vertical-align: -0.35em;
}
.template-chem2-su > span {
display: block;
text-align: left;
}
/* Ignore the linter error about this selector being "overqualified"; this is the
correct selector to override the default stylesheet. */
sub.template-chem2-sub {
font-size: 80%;
vertical-align: -0.35em;
}
sup.template-chem2-sup {
font-size: 80%;
vertical-align: 0.65em;
}