Rather than use actual text, move the parentheses that serve as
presentation into the CSS.
Bug: T205581
Change-Id: I4ae645ca0edf0001a20c228f90f8d43a10cfff71
} else {
$formattedSizeClass = 'mw-plusminus-neg';
}
+ $formattedSizeClass .= ' mw-diff-bytes';
$formattedTotalSize = $context->msg( 'rc-change-size-new' )->numParams( $new )->text();
return Html::element( $tag,
[ 'dir' => 'ltr', 'class' => $formattedSizeClass, 'title' => $formattedTotalSize ],
- $context->msg( 'parentheses', $formattedSize )->plain() ) . $lang->getDirMark();
+ $formattedSize ) . $lang->getDirMark();
}
/**
content: '. .';
}
-.mw-changeslist-links {
- display: inline-block;
-
+.mw-changeslist-links,
+.mw-diff-bytes {
&:before {
content: '@{msg-parentheses-start}';
}
&:after {
content: '@{msg-parentheses-end}';
}
+}
+
+.mw-changeslist-links {
+ display: inline-block;
> span:not( :first-child ):before {
content: '@{msg-pipe-separator}';