Change booking breakdown layout

Make the subtotal line stick out a bit more.
This commit is contained in:
Hannu Lyytikainen 2019-04-04 17:18:56 +03:00
parent 1f0938a87c
commit 551dff00ce
2 changed files with 16 additions and 1 deletions

View file

@ -32,6 +32,21 @@
justify-content: space-between;
}
.subTotalLineItem {
@apply --marketplaceH4FontStyles;
font-weight: var(--fontWeightBold);
margin: 4px 0 1px 0;
@media (--viewportMedium) {
margin: 6px 0 9px 0;
}
display: flex;
flex-direction: row;
justify-content: space-between;
}
.itemLabel {
flex: 1;
margin-top: 1px; /* align with baseline */

View file

@ -81,7 +81,7 @@ const LineItemSubTotalMaybe = props => {
const formattedSubTotal = subTotalLineItems.length > 0 ? formatMoney(intl, subTotal) : null;
return formattedSubTotal && showSubTotal ? (
<div className={css.lineItem}>
<div className={css.subTotalLineItem}>
<span className={css.itemLabel}>
<FormattedMessage id="BookingBreakdown.subTotal" />
</span>