Add superscript and subscript inline text styles

Resolves MS-631 #complete
This commit is contained in:
Ramon Wenger 2023-04-11 16:45:27 +02:00
parent be0cc877f1
commit 05a7c3fc6f
2 changed files with 16 additions and 2 deletions

View File

@ -82,6 +82,20 @@ button {
box-sizing: border-box; box-sizing: border-box;
} }
sup,
sub {
font-size: toRem(14px);
line-height: normal;
}
sup {
vertical-align: super;
}
sub {
vertical-align: sub;
}
.small-emph { .small-emph {
font-size: toRem($base-font-size-pixels); font-size: toRem($base-font-size-pixels);
margin-bottom: 7.5px; margin-bottom: 7.5px;

View File

@ -1,2 +1,2 @@
DEFAULT_RICH_TEXT_FEATURES = ['ul', 'bold'] DEFAULT_RICH_TEXT_FEATURES = ["ul", "bold", "subscript", "superscript"]
INSTRUMENTS_RICH_TEXT_FEATURES = ['bold', 'ul', 'brand', 'secondary'] INSTRUMENTS_RICH_TEXT_FEATURES = DEFAULT_RICH_TEXT_FEATURES + ["brand", "secondary"]